QUESTION A control engineer needs a program to analyze the performance of a new product before it goes to a mass production. The performance is determined using the response formula, R, in equation (1). R = te (1) where R is the response of the product, t is the observation time and w is the working frequency of the product per second and e is the exporlent. The number of R to be calculated is based on equation (2). Number of R= Final Time + 1 (2) Note that the increment of tis 1 and must start from 0. Figure 1 shows the output sample for the performance analysis. Based on the above information, answer the following questions: 1. Write a complete program using programming language using appropriate repetitive statements, functions and 1D array. a. Develop at least 2 functions excluding main function. One function to calculate the R based on the user inputs. One function to display the analysis result. b. The program must have pass and return value in array. c. The program will repeat until user choose to exit the program.

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter5: Control Structures Ii (repetition)
Section: Chapter Questions
Problem 20PE: When you borrow money to buy a house, a car, or for some other purpose, you repay the loan by making...
icon
Related questions
Question
100%
QUESTION
A control engineer needs a program to analyze the performance of a new product before it goes to
a mass production. The performance is determined using the response formula, R, in equation (1).
R=te-t
(1)
where R is the response of the product, t is the observation time and wo is the working frequency
of the product per second and e is the exporlent. The number of R to be calculated is based on
equation (2).
Number of R= Final Time + 1 (2)
Note that the increment of tis 1 and must start from 0. Figure 1 shows the output sample for the
performance analysis.
Based on the above information, answer the following questions:
1. Write a complete program using programming language using appropriate repetitive
statements, functions and 1D array.
a. Develop at least 2 functions excluding main function. One function to calculate the R
based on the user inputs. One function to display the analysis result.
b. The program must have pass and return value in array.
c. The program will repeat until user choose to exit the program.
Transcribed Image Text:QUESTION A control engineer needs a program to analyze the performance of a new product before it goes to a mass production. The performance is determined using the response formula, R, in equation (1). R=te-t (1) where R is the response of the product, t is the observation time and wo is the working frequency of the product per second and e is the exporlent. The number of R to be calculated is based on equation (2). Number of R= Final Time + 1 (2) Note that the increment of tis 1 and must start from 0. Figure 1 shows the output sample for the performance analysis. Based on the above information, answer the following questions: 1. Write a complete program using programming language using appropriate repetitive statements, functions and 1D array. a. Develop at least 2 functions excluding main function. One function to calculate the R based on the user inputs. One function to display the analysis result. b. The program must have pass and return value in array. c. The program will repeat until user choose to exit the program.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Knowledge Booster
Random Class and its operations
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr