Lab6_if.doc

Lab6_if.doc - Test_Avg 0.6 Quiz 0.1 Assign 0.3 3 Using...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Lab 6 CS101 Using If statements Given the following algorithm develop the C++ program for it. Define a class for to represent a student, and write a driver program to test it. Make sure to verify any input to the program. A) Input 1) Prompt user for Full name including any middle initials 2) Prompt user for 3 test scores (Verify scores are between 0 – 100) 3) Prompt user for programming score (Verify scores is between 0 – 100) 4) Prompt user for quiz score (Verify score is between 0 – 100) 5) Set weight for test to 60% 6) Set weight for Programming assignments to 30% 7) Set weight for Quiz to 10% B) Process 1) Test-Avg = (Score1 + Score2 + Score3 ) / 3 2) Average =
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Test_Avg * 0.6 + Quiz * 0.1 + Assign * 0.3 3) Using Average assign a letter grade based on the following table: Average between 90 – 100 A Average between 80 – 89.9 B Average between 70 – 79.9 C Average between 60 – 69.9 D Average between 0 – 59.9 F Average Bad scores IN C) Output 1) Print student Name 2) Print test score with a descriptive label 3) Print average of the tests with a descriptive label 4) Print quiz score with a descriptive label 5) Print programming score with a descriptive label 6) Print grade with a descriptive label Congratulations, you are done. Have your TA check out your work to get credit....
View Full Document

This note was uploaded on 04/06/2009 for the course CSCI 101L taught by Professor Ghyam during the Spring '07 term at USC.

Ask a homework question - tutors are online