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
What is meant by refreshing of the screen?  Some method is required for maintaining the picture on the screen. Refreshing of screen is completed by keeping the phosphorus glowi

What is Circular shift The circular shift is also called as rotate operation. It circulates bits of the register around two ends and there is no loss of information. This is do

What is the number of control lines for a 8 - to - 1 multiplexer ? Ans. There are 3 control lines, for an 8 to 1 Multiplexer. The control signals are utilized to steer any one

a) Input names of students from the user, terminated by "ZZZ", 0, 0, 0 and create a data file grades with records of the following form: Student (string), test1 (integer), test2 (i

System.Data.DLinq.dll gives functionality to work with LINQ to SQL.

how to breadboARD THE 4 BIT COMPARATOR

Describe the advantage of using Booth algorithm? Ans:  a) It achieves efficiency in the number of additions needed when the multiplier has a few large blocks of 1's. b) It

What is Page-Stealer process? This is the Kernel process that makes rooms for the incoming pages, by swapping the memory pages that are not the part of the working set of a pro

What is automated information system Using this automated information system affords below benefits to the company and customers: -  System can be linked into websites to g

Distinguish among the functions islower() and tolower().   islower( ) and tolower( ): islower(c) is a character testing function described  in ctype.h header file. This