Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

A teacher has three students who have taken two tests. The teacher uses the following scale to assign a letter grade to a student, based

A teacher has three students who have taken two tests. The teacher uses the following scale to assign a letter grade to a student, based on the average of his or her two test scores.

Test Score Letter Grade

90 - 100 A 80 - 89 B 70 - 79 C 60 - 69 D 0 - 59 F

Write a program that uses an array of string objects to hold the three student names, an array of three characters to hold the three students' letter grades, and three arrays of two doubles to hold each student's set of test scores.

The program should allow the user to enter each student's name and his or her two test scores. It should then calculate and display each student's average test score and a letter grade based on the average.

Store the number of students and scores in global named constants STUDENTS and SCORES. Use the constants to declare your arrays and when you process the arrays. Your arrays must NOT be global. Your program must include a function called inputData which accepts an element of the name array (passed by reference) and the corresponding array of test scores as arguments and initializes both the name and the test score array.

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

Students also viewed these Databases questions

Question

6. The cost of the training creates a need to show that it works.

Answered: 1 week ago