Display the average and save the average to the file

Assignment Help C/C++ Programming
Reference no: EM13325619

Program 1: Write a program that asks the user to enter five floating-point numbers. The program should create a file and save all five numbers to the file.

Program 2• The program should open the file created in Program 1 and ask the user to enter another five floating-points numbers and save all five numbers to the file, calculate the average of all ten numbers in the file and finally display the average and save the average to the file.

 

Reference no: EM13325619

Questions Cloud

Calculate the force a mother must exert to hold her child : Calculate the force a mother must exert to hold her 12.0 kg child in an elevator accelerates upward at 0.850 m/s2
What will happen to the demand of fuel oil : If price of motor vehicles rises, what will happen to the demand of fuel oil? In which direction the demand curve for fuel oil will shift with a rise in price of motor vehicles?
Analyze the vendor features and functions in peachtree : Analyze the vendor features and functions in Peachtree and recommend at least one additional feature or function you would like to see, as well as how that new feature or function would allow you to produce better quality information.
calculates the average rainfall : Write a program that calculates the average rainfall for three months. The program should ask the user to enter the name of each month, such as June or July, and the amount of rain (in millimeters) that fell each month.
Display the average and save the average to the file : Write a program that asks the user to enter five floating-point numbers. The program should create a file and save all five numbers to the file.
Calculate the force she must exert : When landing after a spectacular somersault, a 40.0 kg gymnast decelerates by pushing straight down on the mat. Calculate the force she must exert
Find out the energy of 1.20mol of photons : Determine the energy of 1.20mol of photons for each of the following kinds of light. (Assume three significant figures.) infrared radiation (1480nm) visible light (520nm) ultraviolet radiation (130nm)
What about the concession stand inside the theater : If a local movie theater sells tickets at different prices (senior citizens versus young people, matinee versus evening prices) is the local movie theater a monopoly? What about the concession stand inside the theater?
Write a program that calculates the average rainfall : Write a program that asks the user to enter five floating-point numbers. The program should create a file and save all five numbers to the file.

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Design customized mailing lists for marketing department

Marketing department requires to be able to design customized mailing lists, to send different messages to different types of donors. What system will best meet these requirements?

  Write a sumo robot c program

Write a sumo robot c program for an aduino board, using 2 motors. 2 phototransistors and 2 Led sensors( sensors 2 for the front and 2 for the back ) which are going to be responsible for keping the robot in the sumo ring, making sure the robot com..

  Creates a macro to calculate the area

Build a program that creates a macro to calculate the area of a circle using the formula area = pie x radius x radius. In the same program, prompt the user to enter a circle's radius. Use the macro to calculate the circle's area and display the re..

  Write a program that asks user to enter

Write a program that asks user to enter the size of the matrix (rows and column) then, it asks the user to enter the elements of two matrices and finally it adds two matrix and displays the result in C language.

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Write a program that uses 3 input files and 3 output files

write a program that uses 3 input files and 3 output files.

  Write a program to crypt its input accordingly

Write a program to crypt its input according to a specified transformation scheme

  Assume we have an array named $students

Assume we have an array named $students. Each entry in the array contains a student's full name (e.g. "Jane Smith"). Write the PHP code needed to display all students (in the array) whose first name starts with the letter "J".

  Write a program which accepts the total of food and drink

Write a program which accepts the total of food and drink purchased for a restaurant bill as input. The output should be adjusted bill with a sales tax of six percent 6% and a tip (gratuity) of 15%.

  Create class integerset

Create class IntegerSet for which each object can hold integers in the range 0 through 100. Represent the set internally as a vector of bool values. Element a[i] is true if integer i is in the set. Element a[j] is false if integer j is not in the set..

  Program to input the length of the side from the keyboard

write a program to input the length of the side from the keyboard ,use the class to obtain the areas of all shapes and display the results on the screen

  Write c program-visual studio to scan multiple text files

Write program in C or C++ and Visual Studio to scan multiple text files and count number of occurrences of each word in those files. Use binary tree to keep track of all words.

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