| | |
Can someone please correct my pseudo code assignment? I'm new to this language.
![]() |
•
•
Join Date: Dec 2008
Posts: 6
Reputation:
Solved Threads: 0
C++ Syntax (Toggle Plain Text)
For each of the following problems, use the top-down modular approach and pseudo code to design a suitable program to solve it. 1. Input names of students from the user, terminated by ZZZ, and create a data file GRADES with records of the form: student (string), test1 (integer), test2 (integer), test3 (integer) in this file, all test scores should be set equal to 0. Process 1 Display the Program Title - "Student Test Score Program" 2 Get Student Name 3 Display Grade File- “Test Scores” 4 Calculate Student Grade- “Test Scores” 5 Display Student Grade Total Input Student Name -real Student Test Score - real Output Student Test Scores Results - real Main Module Declare Student as String Declare Test1 as integer Declare Test2 as integer Declare Test3 as Integer Write “Welcome to the Student Test Score program” Call Student Grade File Call Calculate Student Grades Call Display Student Grades End program End Main Module Program Student Grade File- Test Scores Open “Student Grade File” for output test scores Write “Enter student name “ Input “ZZZ when you are done” Input Student, Test (1), Test (2), Test (3) While Student <> “ZZZ” Set Test = 0 End While End Student Grade File- Test Score Program Calculate Student Grade - Test Scores Declare test scores as Integer Set Total = Test (1) + Test (2) + Test (3) End program End Calculate Student Grade - Test Scores Program Display Student Grade Total End program End Student Grade Program
Re: Can someone please correct my pseudo code assignment? I'm new to this language.
0
#2 Dec 5th, 2008
Looks okay where are you struck ?
Re: Can someone please correct my pseudo code assignment? I'm new to this language.
0
#3 Dec 5th, 2008
![]() |
Other Threads in the C++ Forum
- Previous Thread: error C2664: 'setStartupDirectory' : cannot convert parameter
- Next Thread: Not repeated elements in link list (help)
| Thread Tools | Search this Thread |
api array based binary bitmap c++ c/c++ char class classes classified code coding compatible compile console conversion count date delete deploy desktop developer directshow dll download dynamic dynamiccharacterarray email encryption error file filewrite forms fstream function functions game givemetehcodez graph gui homeworkhelp homeworkhelper homeworksolutions iamthwee icon if...else ifstream input int integer java lib linkedlist linker loop looping loops map math matrix memory multiple news node object output play pointer problem program programming project python random read recursion reference rpg string strings struct symbol temperature template test text text-file toolkit tree url values variable vector video win32 windows winsock wordfrequency wxwidgets







...