Earn Higher Grades With Instant Assignment Help.Ask Question!

C++ Programming
(5/5)

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).
Attachments:
(5/5)

Related Questions

CSI 1420 Introduction to C Programming & Unix Fall 2018, CRN 44882, Oakland University Homework Assignment 6 - Using Arrays and Functions in C

DescriptionIn this final assignment, the students will demonstrate their ability to apply two majorconstructs of the C programming language – Fu

The standard path finding involves finding the (shortest) path from an origin to a destination, typically on a map. This is an

Path finding involves finding a path from A to B. Typically we want the path to have certain properties,such as being the shortest or to avoid going t

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. The LineItem class will represent an individual

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

SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of Sea Ports. Here are the classes and their instance variables we wish to define:

1 Project 1 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of

Project 2 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of Sea Ports. Here are the classes and their instance variables we wish to define:

1 Project 2 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of

Ask This Assignment To Be Done By Our ExpertsGet A+ Grade Solution Guaranteed

expert
joyComputer science
(4/5)
12 Answers Hire Me
expert
Robert DLaw
(4.8/5)
803 Answers Hire Me
expert
Dr Samuel BarberaStatistics
(5/5)
807 Answers Hire Me
expert
Tutor For YouEconomics
(5/5)
910 Answers Hire Me