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

  Create class polynomial is array of terms

Create the class Polynomial. Internal representation of the Polynomial is the array of terms. Each term contains the coefficient and the exponent.

  Write function to compute average temperature for the month

Write the function, print_temps(), with same two parameters plus count of hot days. Print neat table of temperatures. At same time, compute average temperature for the month.

  How to use bit vector to represent dynamic set of distinct

Explain how to use a bit vector to represent a Dynamic Set of Distinct Elements with no Satellite Data. Dictionary Operations must Run in O (1) Time.

  Create logic for program to count readers by genders

Create the logic for a program that would produce a count of readers by gender within age group - that is, under 20 females, under 20 males, etc.

  Binary search algorithm to search an array

The binary search algorithm that follows may be used to search array when elements are in order. This algorithm is analogous to following approach for finding name in telephone book.

  Creating a security policy by gathering information

Suppose mantle of a security consultant. You are asked to visit a client and gather information to develop a security policy for them.

  Design considerations to comply with ada

Browsing devices that assist people with disabilities, such as an aural browser, are especially dependent on the best use of CSS styles. What design considerations should you be aware to comply with ADA?

  Application to print the sum of cubes

Write down the application to print the sum of cubes. Prompt for and read two integer values and print sum of each value raised to third power.

  Values of variables of logical section of the pseudocode

What are the values of variables a, b, and c after each line of code of each logical section of the pseudocode. Show why the logical section is running.

  Write application for university admissions office

Write an application for a university admissions office. Prompt the user for a student's High School Grade Point (for example 3.2) and an admission test score (value from 0 to 100).

  Write program using getline command

How would you write a program using the getline command, prompting the user to enter their first and then their last name. Also, using a float variable to enter their weight in lbs and height in inches.

  Executive committee for alleviating it complexity

You are a consultant brought in by the executive committee to make recommendations for alleviating the "IT complexity" concerns of the executives at the company.

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