logo Hurry, Grab up to 30% discount on the entire course
Order Now logo

Ask This Question To Be Solved By Our ExpertsGet A+ Grade Solution Guaranteed

expert
StatAnalytica ExpertPolitical science
(5/5)

824 Answers

Hire Me
expert
Saksham ChepruComputer science
(5/5)

657 Answers

Hire Me
expert
Clifford BillmanBusiness
(5/5)

642 Answers

Hire Me
expert
Harjeet KunduHistory
(5/5)

935 Answers

Hire Me
C++ Programming

Write a program whose main function is merely a collection of variables and function calls.

INSTRUCTIONS TO CANDIDATES
ANSWER ALL QUESTIONS

Write a program whose main function is merely a collection of variables and function calls. The main function/program reads students name, followed by their test scores. The program should output each student name followed by the test score and relevant grade (Pass (P) or Fail(F), A). It should also print the names and test scores of the student with a test score higher than the average test score.

 

The student data should be stored in a struct variable of type studentType, which has two components: studentLName of type string and testScore of type integer (testScore is between 0 and 100), and grade of type char. (10 points)

Suppose the class has 3 students. Use an array of 3 components of type studentType. (5 points)

Your program must contain the following functions:

  1. A function to find the average test score – the function accepts a structure of studentType and the number of students as a parameter. Example. getAverage(Students myStu[], int noOfStudent)

(30 points);

 

  1. A function to print the student name, test score and a letter grade of all the students having a test score greater than or equal to the average test score. Example:  printAverage(Students myStu[], int no of student, float aveScore);

The letter grade in the printAverage function has the following values:

  1. P - if the test score is greater than the average and less than 90.
  2. A – if the test score is greater than 90

(30 points)

 

  1. The main function reads the student information from the user and populate the student structure. The main function should also print the average test scores for all the students. (20 points)
  2. The main program should be able to execute until the user enters a Y to exit the program (5 points).

Related Questions

. The fundamental operations of create, read, update, and delete (CRUD) in either Python or Java

CS 340 Milestone One Guidelines and Rubric  Overview: For this assignment, you will implement the fundamental operations of create, read, update,

. Develop a program to emulate a purchase transaction at a retail store. This  program will have two classes, a LineItem class and a Transaction class

Retail Transaction Programming Project  Project Requirements:  Develop a program to emulate a purchase transaction at a retail store. This

. The following program contains five errors. Identify the errors and fix them

7COM1028   Secure Systems Programming   Referral Coursework: Secure

. Accepts the following from a user: Item Name Item Quantity Item Price Allows the user to create a file to store the sales receipt contents

Create a GUI program that:Accepts the following from a user:Item NameItem QuantityItem PriceAllows the user to create a file to store the sales receip

. The final project will encompass developing a web service using a software stack and implementing an industry-standard interface. Regardless of whether you choose to pursue application development goals as a pure developer or as a software engineer

CS 340 Final Project Guidelines and Rubric  Overview The final project will encompass developing a web service using a software stack and impleme