Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a program that uses a structure to store the following data for each student Member Name 1. name 2. IDnum 3. Test[3] 4. average

image text in transcribed
image text in transcribed
Write a program that uses a structure to store the following data for each student Member Name 1. name 2. IDnum 3. Test[3] 4. average 5. grade Description Student name Student ID number Pointer to an array of test scores Average of test scores Course letter grade (A, B, C, D, or F) After the student array have been dynamically allocated, the program should ask for the ID number and the test scores for each student. The average test score should be calculated and stored in the average member of each structure. The course grade should be computed on the basis of the following grading scale 90-100 80- 89 70-79 60-69 below 60 The course grade should then be stored in the grade member for each structure. Once all this data is calculated, a table should be display on the screen listing each student's name, ID number, test scores, average test score and course grade Input validation: all the data for each student is entered Do not accept negative numbers for any test score

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions