The workshop staffs want to know the following:

  • How frequently is each 3D printer used in a month?
  • What is the shortest, average, and longest time each 3D printer is operated for?

You are required to write a C++ program that answers these questions using the data provided.

Aims

The assessment's aims are to demonstrate proficiency in:

  • Writing, building, and running a C++ program.
  • Defining a variable and using it.
  • Loading data into a variable and displaying its value.
  • Using statements to control the flow of a program.
  • Using functions.
  • Reading data from a file.

Objectives

The assessment's objective is to:

  • Write a C++ program that addresses the workshop staff's questions.

The program should be able to:

  • Read data from a file.
  • Load the given data into appropriate arrays.
  • Use functions to compute the minimum, average, and maximum values in an array.
  • Display the computed results.

The program should define and use functions named:

frequency()
shortest()
average()
longest()
output()

You need to define the type of the variable each function returns and the type/s of its parameter/s. The program's output should be formatted similar to the following: see image.

Requirements

You are required to:

  • Write a C++ program that addresses the assessment's objectives.
  • Write a report describing your program's algorithm.
Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.