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

  Implementation of algorithms for process management

The Shortest Job Next (SJN) algorithm queues processes in a way that the ones that use the shortest CPU cycle will be selected for running rst.

  Develop a user mode command interpreter

Develop a user mode command interpreter which support list-short.

  Memory allocation in operating system

Analysis and implementation of algorithms for memory allocation in operating system, Explain First- t and best- t methods are used in memory allocation in operating systems.

  Stand alone child process

Forking the child process

  Write a multi-threaded program

Write a multi-threaded program to solve producer and consumer problem

  Marginal and average cost curves

n a competitive market place (pure competition) is it possible to continually sell your product at a price above the average cost of production.

  Simulating operating systems scheduling

Simulate the long-term scheduler, the short-term scheduler and the I/O scheduler of the computer using the First-Come-First-Serve algorithm.

  Issues with trusted platform module

Research paper discussing the issues with Trusted Platform Module (TPM)

  Threads

Explain a complication that concurrent processing adds to an operating system.

  Design and programming

Use the semaphore methods to control the concurrency of the solution

  Virtual machines

Virtual machines supported by a host operating system

  Discuss an application that benefits barrier synchronization

Discuss an application that would benefit from the use of barrier synchronization

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