Programming Assignment 4, C/C++ Programming

For this program, you are going to modify your previous program (program 3) so that it will now have a menu to see if the user wants to read the input from a file or interactively. If the user wants to read the input from a file, then the output will also go into a different file. If the user wants to read the input interactively, then the output will go to the screen.

Your initial menu will look like the following:
Menu
<1> Read data from a file
<2> Read data interactively
Enter choice:

Here is a sample input file:

21 25
30 30
10 12
55 60
-1 /* this is the flag to end inputting the assignment data */
21 25
30 30
10 12
21 25
30 30

Here is another sample input file:

21 25
30 30
10 12
55 60
-1 /* this is the flag to end inputting the assignment data */
21 25
-1 /* this is the flag to end inputting the midterm exam data */
21 25
30 30


On the due date, students should hand in an updated/corrected flow chart of the program and a printout of the source code (make sure it is documented properly according to the UHCL guidelines) (in an envelope) during class, and upload the source code to the link on my website.
Posted Date: 4/5/2013 11:26:15 AM | Location : United States







Related Discussions:- Programming Assignment 4, Assignment Help, Ask Question on Programming Assignment 4, Get Answer, Expert's Help, Programming Assignment 4 Discussions

Write discussion on Programming Assignment 4
Your posts are moderated
Related Questions
C Program for SELECT THE CHAR WHICH U WANT #include stdio.h> #include conio.h> void main() {             void substr(char[], int *, int *);           int a,b

convert string s into palindrome by doing character replacement

find largest clique present in graph

Rahul is a newbie to the programming and while learning the programming language he came to know the following rules: · Each program must start with ''{'' and end with '

Project Description: Currently seeking someone who can create me a software application (google chrome crx file_ that will auto add all shoe sizes to cart directly and if not av


Write a program to calculate the total resistance of a series or parallel circuit. The maximum number of resistors is two.   We need to decide whether the user wants the to

Cross Platform Clinet app for a vpn Project Description: We want a cross platform client app for VPN. The app must have the subsequent options below: 1. Must be an open

Prepare data from fixed OCR areas scanned. Project Description: Project is to design software which can use character recognition only on certain areas of scanned pdf's/ jpeg

Byteland county is very famous for luminous jewels. Luminous jewels are used in making beautiful necklaces. A necklace consists of various luminous jewels of particular colour. Nec