A function to print the names of the students

Assignment Help Operating System
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.

Reference no: EM13943293

Questions Cloud

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?

Reviews

Write a Review

 

Operating System Questions & Answers

  1 what does it mean to say that a programming language is

1. what does it mean to say that a programming language is machine independent?2. name and describe four different

  Role of a database management system

Discuss the role of a database management system (DBMS) and what are its benefits and how does a relational database management system differ from a flat document?

  Explain an ip address

Explain an IP address. Explain Class A, B, and C networks. Are a MAC address and an IP address the similar thing?

  Program to calculate numeric grades for a course

Create a program to calculate numeric grades for a course. The course records are in a document that will serve as the input document.

  Page table entries are needed for two-level paging

Assume that word 0 is part of a hole and that the highest word in memory contains valid tries are needed in the page table if traditional(one-level) paging is used? how many page table entries are needed for two-level paging, with 10 bits in ea..

  Describe the steps required to prepare the storage device

Outline and describe the steps required to prepare the storage device. Explain why file systems are critical components of an operating system

  What is the subnet mask

Give the network number, local broadcast and the usable IP address ranges for the 5000th, 50000th & 150000th networks

  Understanding networking concepts

Determine some of the issues facing AT&T as they try to integrate multiple services to deliver to the consumer? What impact does competition play?

  Questions about on ssl

Provide a table showing the Caesar cipher with a key five, and then provide the result of applying this cipher to the text 'I came I saw I conquered'.

  In this discussion locate two different operating systems

multitudes of file systems exist across the numerous operating systems that have been developed. in this discussion

  Web system deployed on campus has a failure rate

A web system deployed on campus has a failure rate of 10-3 failures per hour. What is the likeihood that the system will continue operating without failure throughout the duration of one week (Monday to Friday)?

  Perform necessary error checking to ensure that a positive

Write a C program using the fork() system call that generates this sequence in the child process. The starting number will be provided from the command line. For example

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd