Reference no: EM13943293
I need a C++ program that reads students' names followed by their test scores. The program should output each student's name followed by the test scores and the relevant grade. It should also find and print the highest test score and the name of the students having the highest test score.
Student data should be stored in a struct variable of the type studentType, which has four components: studentFName and studentLName of the type string, testScore of the type int (testScore is between 0 and 100), and grade of the type char. My class has 20 students. Use an array of 20 components of the type studentType.
The program must contain at least the following functions:
a.) A function to read the students' data into the array.
b.) A function to assign the relevant grade to each student.
c.) A function to find the highest test score.
d.) A function to print the names of the students having the highest test score.
The program must output each student's name in this form: last name followed by a comma, followed by a space, followed by the first name, and the name must be leftjustified. Moreover, other than declaring the variables and opening the input and output files, the function main should only be a collection of function calls.
In addition I need to output the execution result to a file say a possibility could be (C:Prorgram FilesMicrosoft Visual StudioVC8> and I also need to be able output the result to the screen and capture the screen shot of the execution result.
Define psychology and how is it different from intuition
: Define psychology. How is it different from intuition or common sense? Define and provide your own example of the following: a) a positive correlation, and b) a negative correlation. Why are correlations important to psychology? What are the proble..
|
Find the magnitude of the force p
: Find the magnitude of the force P, required by the person pushing the vehicle to give the car an acceleration of 1 ft./s^2. The coefficient of kinetic friction between the car and the street is (.25).
|
Calculate the WACC for Parrothead Enterprises
: You are given the following information concerning Parrothead Enterprises: Debt: 10,900 7.4 percent coupon bonds outstanding, with 21 years to maturity and a quoted price of 108.75. These bonds pay interest semiannually. Common stock: 320,000 shares ..
|
Target capital structure-the relevant tax rate
: Mullineaux Corporation has a target capital structure of 61 percent common stock, 6 percent preferred stock, and 33 percent debt. Its cost of equity is 12.6 percent, the cost of preferred stock is 5.6 percent, and the cost of debt is 7.3 percent.
|
A function to print the names of the students
: I need a C++ program that reads students' names followed by their test scores. The program should output each student's name followed by the test scores and the relevant grade. It should also find and print the highest test score and the name of t..
|
Test your algorithms with a desk check
: Test your algorithms with a desk check using the appropriate test values for each variable required by your design. Provide a list of the variables and the values that the variables can hold.
|
Calculate weighted average cost of capital
: Aloha Tropical, Inc, has in its capital structure the following composition: 40% debt and 60% equity. The estimated cost of debt after tax is 7% and the estimated cost of capital is 15%. Calculate the weighted average cost of capital (WACC).
|
Considered an indirect bankruptcy cost
: Which of the following would be considered an indirect bankruptcy cost?
|
What is his monthly payment
: Aaron Davis just bought a new SUV for $25,000 and put a 10% down payment towards the purchase. If he financed the remaining liability over 4 years at 3.99% APR, what is his monthly payment?
|