Login|Contact Us
Question and Answer

Programming

Ask a Programming Question, Get an Answer ASAP!

  • Ask A Question
  • Browse Answers
  • Meet The Experts
  • How JustAnswer Works

I have written a pseudocode program on grades and need someone

 
Christopher's Avatar
  • Answered by:Christopher
  • B. Eng in Computer Engineering
  • Positive Feedback: 100.0 %
  • Accepted Answers: 6
Verified Expert
in Programming

Recent Feedback

Positive
Expert was VERY helpful and truly understood the importance of my question
Positive
Didnt actually solve the problem but offered some good help
Positive
Christopher thanks for the kind words about me - I had already responded saying...
Positive
Christopher gave me an answer that worked really well and worked with me until I...
Positive
Very easy to follow instructions a great help.
Positive
Your advice was excellent and led me to my answers. Thank you.
Positive
Thanks, It is very good
Positive
THANKYOU AGAIN

Customer Question

I have written a pseudocode program on grades and need someone to correct it

 

Optional Information:
Programming Language: pseudocode

Submitted: 1157 days and 22 hours ago.
Category: Programming
Value: $22
Status: CLOSED
Picture
Expert:  Christopher replied 1157 days and 22 hours ago.

hi, could you post your pseudocode please?Christopher40215.9358237269

Customer replied 1157 days and 22 hours ago.

  • 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(interger)

In this file, all test scores should be set equal to 0

 

  • 2. Display the contents of the file GRADES created in Problem 1.

Each student's record should appear on a separate line and include the total score( sum of the three tests) for that student. For example, a line of output might be

 

R. Abrams 76 84 82 242

 

 

 

 

Open "GRADES" For Output As GradeFile

Write "Enter the student's name and test score".

Write "Enter 0 for both when done."

Input Student, Score

While Student <> "0"

Write GradeFile, Student,Score

Write "Enter the student's name and test score."

Write "Enter 0 for both when done."

Input Student, Score

End While

Close GradeFile

 

Open "GRADES" For Input as GradeFile

While Not EOF(GradeFile)

Read GradeFile, Name, Score

Write Name, " ", Score

End While

Close GradeFile

Accepted Answer

Picture
Expert:  Christopher replied 1157 days and 21 hours ago.

Here is the corrected version of your pseudo code. Made a few changes to the while loop condition and removed unecessary input of score since the requirement says to set set scores to 0. Output now gives the scores and total score.

 

Open "GRADES" For Output As GradeFile

Write "Enter the student's name".

Input Student

test1 = 0

test2 = 0

test3 = 0

Write GradeFile, Student, test1, test2, test3

While Student <> "ZZZ"

Write "Enter the student's name".

Input Student

Write GradeFile, Student, test1, test2, test3

End While

Close GradeFile

 

Open "GRADES" For Input as GradeFile

While Not EOF(GradeFile)

Read GradeFile, Name, Score1, Score2, Score3

Score = Score1 + Score2 + Score3

Write Name, " ", Score1 , " ", Score2, " " , Score3, " ", Score

End While

Close GradeFile

Expert TypeB. Eng in Computer Engineering
Category: Programming
Pos. Feedback: 100.0 %
Accepts: 6
Answered: 2/6/2010

Experience: Computer Engineering degree holder with a ton of programming and computer troubleshooting experience

Ask this Expert a Question >
 
Tweet

8 Programmers are Online Right Now

Ask Your Question Now
Programming Questions Date Submitted
is there a python programming person available 3/28/2013
Write a menu-driven program that allows users do two options: Option 3/27/2013
1. Which one of the following control structures provides for 3/27/2013
JavaScript: Multiple Choice Questionnaire 3/25/2013
RA-211 3/24/2013
How do you create a searchable public Google drive folder in 3/24/2013
RA-211 3/24/2013
I am an entrepreneur with no current coding skills, but an 3/23/2013
I have base code in VBA that opens all excel files from a folder 3/23/2013
Program in C++ 3/23/2013
RSS
Next 10 >
Ask A Programmer
Type Your Programming Question Here...
characters left:

Top Programming Experts

See More Programmers

In The News

Nbc
Washington Post
New York Times
Cnn
Learn More

How It Works

  • Ask an Expert
  • Get a Professional Answer
  • Ask Followup Questions
  • 100% Satisfaction Guarantee
Learn More
close
Find Expert answers related to your question.
Sign up using email
We will never post anything without your permission.
Already have an account? Sign in

Ask a Programmer

Get a Professional Answer. 100% Satisfaction Guaranteed.
254 Programmers are Online Now
Type Your Programming Question Here...
characters left:
Disclaimer: Information in questions, answers, and other posts on this site ("Posts") comes from individual users, not JustAnswer; JustAnswer is not responsible for Posts. Posts are for general information, are not intended to substitute for informed professional advice (medical, legal, veterinary, financial, etc.), or to establish a professional-client relationship. The site and services are provided "as is" with no warranty or representations by JustAnswer regarding the qualifications of Experts. To see what credentials have been verified by a third-party service, please click on the "Verified" symbol in some Experts' profiles. JustAnswer is not intended or designed for EMERGENCY questions which should be directed immediately by telephone or in-person to qualified professionals.
Truste
Contact Us | Terms of Service | Privacy & Security | About Us
© 2003-2013 JustAnswer LLC