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
DNS is The horizontal naming system.

Q. Explain Arithmetic Data Processing Instructions? These instructions carry outlogical and arithmetic operations on data. Arithmetic: The four fundamental operations are

The alignment of a type 'c' field in a report is? ? Left Aligned.

Researching strategy - artificial intelligence: If our search and researching strategy and swot of it is surety to find all types of hints such the solutions eventually, then

Define swapping.  A process needs to be in memory to be implemented. Though a process can be swapped temporarily out of memory to a backing store and then brought back into mem

What is microfilm? This is a photographic reproduction of a document greatly decreased in size from the original on fine grain, high resolution film. Microfilm needs a reader f

Q. What do you mean by Decoders? Decoder transforms one kind of coded information to other form. A decoder has n inputs and one enable line (sort of selection line) and 2 n ou

Explain the mechanisms of propagation of radio communication. Radio communication deals along with electronic radiation of electromagnetic energy from one point to other by the

Translation Look aside Buffer :    A TLB is a cache that holds only page table mapping If there is no matching entry in the TLB for a page ,the page table have to

Q. Describe about Digital Audio Tape? The most proper tape for backing up data from a disk today is Digital Audio Tape (DAT). It employs a 4mm tape covered in a cartridge. It e