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
Q. What is multi-threaded unix kernel? Multi-threaded UNIX kernel: We know threads are light-weight processors demanding minimal state information comprising the processor stat

Resource Dependence The parallelism among the instructions may also be affected because of  the shared resources. If two instructions are using the related shared resource t

Q. How is an instruction represented? Instruction is signified as a sequence of bits. A layout of an instruction is called as instruction format. Instruction formats are princi

if the 6 is a and the b is 3 what is the c ?

Representation scheme in artificial intelligence: It is not hard to see why logic has been popular representation scheme in AI: In this way, It is easy to represent knowl

What is Supply Chain Management? Supply Chain Management: Supply Chain Management includes developing the performance of an organization's supply chain from its suppliers to

Neural networks as perceptrons: However ANNs look like this in the general case:  Considered that the w, x, y and z represent real valued weights so all the edges in t

Is it possible to extract data from tables without using the event 'GET' in the report with an appropriate LDB. False.   You can extract data from tables using Select stateme

Explain the product lifecycle in an Operating System

Explain essential loop in Process Scheduling . The complex part of scheduling is to balance policy enforcement along with resource optimization so as to pick the best job to run