Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Problem. Your friend has asked you to help them with a project. He needs to calculate his grades, but is finding it difficult to operate

Problem. Your friend has asked you to help them with a project. He needs to calculate his grades, but is finding it difficult to operate a calculator. Create a program which will accept an unlimited number of scores and calculates the average score. You will also need to prompt for the total points possible. Assume each test is worth 100 points.

Requirements:

. Enter the Student ID first, then prompt for grades. Keep prompting for grades until the client enters calc. That triggers final processing.

Make you code as reliable as possible

Make your program output easy to read.

You cannot use anything from the standard template library.

Use functions whenever possible to modularize your code. Use function prototypes and code the functions under main().

"C" Specification Bundle. 1. // Specification C1 - Pseudo Dynamic Array Create a fixed sized array in the heap. In this case, unlimited number of scores means 100.

2. // Specification C2 - Print Scores After all the grades have been entered again, print them all to screen.

3. // Specification C3 - Compute GPA Compute the average grade for the client and display it.

4. // Specification C4 - Validate Test Scores Determine if each score is within the range of 0 - 100. Reprompt if thats not the case.

5. // Specification C5 - Print Letter Grade Print the letter grade for the overall gpa right next to it raw number. "B" Specification Bundle.

1. // Specification B1 - Dynamic Array Create an array on the heap. Increase it automatically for every score the client adds. That is, this array should be as small as possible - always. This replaces specification C1. Put this comment either above or below C1 and change C1 to this: // Specification C1 - REPLACED

2. //Specification B2 - Validate Student ID Only allow entry of a valid Student ID. See figure 1 for the criteria for a valid student ID. Quit if the Student ID is invalid.

3. // Specification B3 - Letter Grades Include the letter grades for each individual test score you printed out under Specification C2. Student ID Business Logic. 1. The Student ID must have 8 digits. 2. The last digit must be even. 3. The first 3 digits must be one of the following major codes: 127, 379, or 833. That is, the ID must start with one of these three numbers. Figure 1: Business logic to validate Student ID. "A" Specification Bundle.

1. // Specification A1 - OOP Code this assignment using at least one class. Put this comment above the class declaration.

2. // Specification A2 - Sort Grades Sort the grades before printing them under specification C2. High to low. Use any sort you wish, but code your own sort.

3. // Specification A3 - Logfile Log the grades to a text file for archival purposes.

4. // Specification A3 - Replace A3 with one feature of your own choosing. You can code A3 as it appears if you wish and skip

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Current Trends In Database Technology Edbt 2006 Edbt 2006 Workshops Phd Datax Iidb Iiha Icsnw Qlqp Pim Parma And Reactivity On The Web Munich Germany March 2006 Revised Selected Papers Lncs 4254

Authors: Torsten Grust ,Hagen Hopfner ,Arantza Illarramendi ,Stefan Jablonski ,Marco Mesiti ,Sascha Muller ,Paula-Lavinia Patranjan ,Kai-Uwe Sattler ,Myra Spiliopoulou ,Jef Wijsen

2006th Edition

3540467882, 978-3540467885

More Books

Students also viewed these Databases questions