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

  Describe the methodology behind constructing one

Explain and apply the phases of the project management life cycle and develop processes that initiate technology projects, including project selection and defining project scope - Define a work breakdown structure and describe the methodology behind ..

  What is life cycle costing

What is Life Cycle Costing. Describe briefly the methodology for Life Cycle Costing. What are the criteria to consider when a procurement officer is faced with the decision of procuring a used equipment instead of a new one.

  Phase 1the premise of project 2 is to create your own shell

phase 1the premise of project 2 is to create your own shell. your shell will be launchable from a terminal window and

  How long should a system be idle to benefit from hibernating

If reading or writing a cache-line of size 64 bytes to Flash requires 2.56 ?J and DRAM requires 0.5 nJ, and if idle power consumption for DRAM is 1.6 W (for 8 GB), how long should a system be idle to benefit from hibernating? Suppose a main memory..

  Differences between windows server 2008 and 2012

This Course Project will be a research report that will cover five of the differences between Windows Server 2008 and Windows Server 2012 that interest you the most. Be sure to provide a clear and thorough description for each of the five areas th..

  Fundamental stages of an enterprise system life cycle

Discuss why is this important to the success of the implementation project? Determine the fundamental stages of an enterprise system life cycle?

  Testing a motherboard

Assume you wish to test a motherboard used in an installation before you proceed too far into the installation. From the devices listed below, choose the minimum devices

  Dns security measurements

Having a Domain Name Server available to the public can be a tool in the hand for attackers. If anyone is able to use your Domain Name Server, they can use it to send a huge amount of traffic to their victim.

  Stateful inspection packet filtering routers

Name two benefits of Stateful Inspection Packet Filtering Routers. Name two benefits that firewalls add to a network

  Single machine with total capacity

Suppose that there is a single machine with total capacity of 23 units of time, and that one gets partial credit for partially processing a task, so that processing a task of value Vi for time t

  Drawbacks and benefits of a peer to peer network

Describe to Champions the drawbacks and benefits of a peer-to-peer network. What can be shared between hosts?

  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.

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