Can someone please correct my pseudo code assignment? I'm new to this language.

Reply

Join Date: Dec 2008
Posts: 6
Reputation: clb8372 is an unknown quantity at this point 
Solved Threads: 0
clb8372 clb8372 is offline Offline
Newbie Poster

Can someone please correct my pseudo code assignment? I'm new to this language.

 
0
  #1
Dec 4th, 2008
  1. For each of the following problems, use the top-down modular approach and pseudo code to design a suitable program to solve it.
  2.  
  3. 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.
  4.  
  5.  
  6. Process
  7. 1 Display the Program Title - "Student Test Score Program"
  8. 2 Get Student Name
  9. 3 Display Grade File- “Test Scores”
  10. 4 Calculate Student Grade- “Test Scores”
  11. 5 Display Student Grade Total
  12. Input
  13.  
  14. Student Name -real
  15.  
  16. Student Test Score - real
  17.  
  18. Output
  19.  
  20. Student Test Scores Results - real
  21.  
  22. Main Module
  23. Declare Student as String
  24. Declare Test1 as integer
  25. Declare Test2 as integer
  26. Declare Test3 as Integer
  27.  
  28. Write “Welcome to the Student Test Score program”
  29.  
  30. Call Student Grade File
  31. Call Calculate Student Grades
  32. Call Display Student Grades
  33.  
  34. End program
  35.  
  36. End Main Module Program
  37.  
  38. Student Grade File- Test Scores
  39. Open “Student Grade Filefor output test scores
  40. Write “Enter student name “
  41. Input “ZZZ when you are done”
  42. Input Student, Test (1), Test (2), Test (3)
  43.  
  44. While Student <> “ZZZ”
  45. Set Test = 0
  46.  
  47. End While
  48.  
  49. End Student Grade File- Test Score Program
  50.  
  51. Calculate Student Grade - Test Scores
  52. Declare test scores as Integer
  53. Set Total = Test (1) + Test (2) + Test (3)
  54.  
  55. End program
  56.  
  57. End Calculate Student Grade - Test Scores Program
  58.  
  59. Display Student Grade Total
  60.  
  61.  
  62. End program
  63.  
  64. End Student Grade Program
Reply With Quote Quick reply to this message  
Join Date: May 2006
Posts: 1,777
Reputation: ithelp is a name known to all ithelp is a name known to all ithelp is a name known to all ithelp is a name known to all ithelp is a name known to all ithelp is a name known to all 
Solved Threads: 113
ithelp's Avatar
ithelp ithelp is offline Offline
Posting Virtuoso

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 ?
Reply With Quote Quick reply to this message  
Join Date: Dec 2007
Posts: 439
Reputation: Agni is a jewel in the rough Agni is a jewel in the rough Agni is a jewel in the rough 
Solved Threads: 68
Sponsor
Agni's Avatar
Agni Agni is offline Offline
Posting Pro in Training

Re: Can someone please correct my pseudo code assignment? I'm new to this language.

 
0
  #3
Dec 5th, 2008
where are you struck?
I hope it didnt hurt much ...
thanks
-chandra
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC