Write program to read data of four students from input file

Assignment Help Programming Languages
Reference no: EM1372022

Write a C++ program that reads data of 4 students from an input file which name is provided by the user and displays a summary report of students' marks on an output file stdMarks.out" as follows: Each student's information occupies two lines in the input file, the first line contains the student name (up to 20 characters), the second line contains four real values between 0 and 100 representing marks of assignments, midterm, labtest, and final exam. Note that the four exams have different weights as follows (assignments 10%, midterm 20%, labtest 30% and final 40%. These weights should be defined as constant variables.

Reference no: EM1372022

Questions Cloud

Sacrifice to protect environment : Please discuss your reasons if you think that it is the sacrifice or why you don't believe that we are really making the sacrifice when talking about protecting the environment.
Write script in unix to monitor creation of pdf in directory : Write script in unix which monitors creation of .pdf or PDF file in current directory. Every minute it must display list of these filenames created after previous display a list.
Conflict theory-symbolic interactionism : Provide an example of a conflict theory perspective on crime. Provide an example of Symbolic Interactionism as a theoretical perspective on education.
Calculating total profit and revenue : Assume a company is operating at the minimum point of its short-run average total cost curve, so that marginal cost equals average total cost.
Write program to read data of four students from input file : Write C++ program which reads data of 4 students from the input file which name is given by user and displays summary report of students' marks on output file stdMarks.out"
Us nationalism and politics of fear : Fear seems to be a real motivator for some politicians and media pundits. Do you think these type of fear tactics are really successful with Americans in general?
Personal-professional and social identity : Based on personal, professional, and social identity, develop the profile of your multiple roles. Structure your response with following questions in mind: Recognize the roles you play, and in what contexts you play them in the course of the day.
Calculate the quantity of labor demanded by the firm : A company has a technology described through the production function, Calculate the quantity of labor demanded by the firm and cost minimizing K/L ratio.
Parents socialize children : Recognize and discuss the specific ways parents socialize children along gender lines. Incorporate as much relevant information from the text as possible in your response but be sure to employ your own words.

Reviews

Write a Review

Programming Languages Questions & Answers

  Write program to take as input salesperson-s expected sales

Write program to take as input the salesperson's expected weekly sales and outputs the wages paid under each plan as well as announcing the best-paying plan.

  Write a full program to convert seconds into hours

Write a full program (starting from #include) that takes as input the number of seconds after midnight and displays the time in hours.

  Compute and display total number of votes received

Display the table with appropriate labels for the rows and columns. Compute and display the total number of votes received by each candidate and the percentage of the total votes cast.

  Write void function which reads game-s parameters from file

Write a void function which reads game's parameters from file. Function validates te parameters. If parameters are "bad" the function assigns default values to parameters.

  Write program for real estate agent

Write a program for a real estate agent. The program should perform the following tasks: ask users for the average house price for the each of past 5 years for a single family residence of 1500 square feet.

  Write pseudocode to accept candy name

Write a pseudocode for the following: A programm to accept a candy name (for exmple, "chocolate-covered blueberries'), price per pound, and number of pounds sold.

  Creating class savingsaccount using static variable

Create class SavingsAccount. Use static variable annualInterestRate to store annual interest rate for all account holders.

  Design application to allow user to input a price

Design an application that allows a user to input a price until an appropriate sentinel value is entered.Output is the price of each item on each day,one through seven.

  Write a program learn multiplication

Write a program which will help the elementary school student learn multiplication. Use Random object to produce two positive one-digit integers.

  Write pseudocode for worm moving toward apple

Worm is moving toward an apple. Each time it moves, worm cuts distance between itself and apple by its own body length until worm is close enough to enter the apple. Give pseudocode for this.

  Find largest number in array

Find the largest number in the array and output the result. use a subprogram to input the numbers, a function to use the largest number.

  Ways to ensure that website is easy to navigate

A good practice would be to spread the content out among several pages. What are some ways to ensure that your website is easy to navigate?

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