print the sum of the numbers in the file, Computer Engineering

Make a file which kepts on every line a letter, a space, and a real number.  For example, it may look like this:
e 5.4
f 3.3
c 2.2
f 1.1
c 2.2
Write a script that uses textscan to read from this file.  It will print the sum of the numbers in the file.  The script should error-check the file open and close, and print error messages as essential.

Posted Date: 3/20/2013 2:00:37 AM | Location : United States







Related Discussions:- print the sum of the numbers in the file, Assignment Help, Ask Question on print the sum of the numbers in the file, Get Answer, Expert's Help, print the sum of the numbers in the file Discussions

Write discussion on print the sum of the numbers in the file
Your posts are moderated
Related Questions
Define the Unified Modelling Language  (UML) is used to express construct and relationships of complex systems. This was created in response to a request for proposal (RFP) fro

IT Management 1. Describe how the IT infrastructure is designed. 2. Explain briefly the audit planning phase in IT Audit 3. Explain localized and distributed load balanci

Define deadlock? Deadlock is a condition, wherein processes never finish executing and system resources are tied up, preventing another job from beginning. A process requests r

What is reduction?  A reduction is a way of changing one problem into another in such a way that a solution to the second problem can be used to explain the first problem.

Which the digital logic family has the lowest propagation delay time ? Ans. ECL is the digital logic family that has the lowest propagation delay time. In ECL lowest propagati

Which is the best programming language to learn?

Q. Show the Noframes Tag? tag can be used for those browsers which aren't able to interpret tags. Even though most, if not all, of your visitors would

Microprocessor is a program-controlled device, which fetches the instructions from memory, decodes and implements the instructions. Most Micro Processor is single- chip devices.

Compare pre-emptive and non-preemptive scheduling policies. We preempt the currently executing process in preemptive scheduling. In non-preemptive we permit the current process

Register-to-Register Architecture : In this organization, results and operands are accessed not directly from the main memory by the scalar or vector registers. The vectors which a