Write the array back to a new file and in reverse order

Assignment Help Computer Engineering
Reference no: EM132136939

Starting out with Cpp 8th edition Pg 449 #7 WITH MODIFICATIONS!

Write a program that asks the user for a file name, and then ask the user for up to 100 input values. Write the user input values to the file. Then read the contents of the file back into an array, and then display the following data:

lowest number

highest number

total of the numbers

average of the numbers

MODIFICATIONS:

Write the array back to a NEW file, in reverse order. Call this file reverse.txt.

Provide a "sentinel value" to allow the user to stop entering numbers. (if i only want 5 numbers, i should only have to enter 5 numbers, but if i want to enter 100, then i should be able to enter 100.)

Once you have the program working, create functions that calculate each of the items above. Your function should take an array and the size of the array as input, and return the value calculated.

So you should have a function that finds the minimum, a different function that finds the maximum, another function that gets the total.

Reference no: EM132136939

Questions Cloud

What is the simple printing configuration : What is the simple printing configuration where the computer supplies the printer, printer driver, and print server functions?
Is the frame an outgoing or an incoming frame : What tells you that this is an outgoing frame? What is the source IP address of the network-layer header in the frame?
Describe and compare types of usability testing : State the considerations of selecting and handling participants for a usability experiment. Describe and compare types of usability testing.
Create an owner view for the system : CSE2ISD - Information Systems Development Assignment - Object-Oriented Analysis Case Study. Create an owner's view for the system that show to stakeholders
Write the array back to a new file and in reverse order : Write a program that asks the user for a file name, and then ask the user for up to 100 input values. Write the user input values to the file.
Which of the following instructions must be privileged : Which of the following instructions must be privileged, executable only in system mode?
Should the mod have refunded the deposit in this case : When and how were these expectations formed? If you were the MOD, would you have gone to all that trouble to help the Wades?
Develop an inferential statistics analysis plan : STAT200 Introduction to Statistics Assignment - Inferential Statistics Analysis and Writeup. Develop and carry out an inferential statistics analysis plan
How might you use self-disclosure as a strategy in working : Understanding the possible connection and working to resolve any underlying unresolved issues is essential to becoming an effective social worker.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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