Answer to Question #202411 in C++ for Rajay Myrie

Question #202411

A machine’s engine coil rotates in a 360o motion ten times every second once the machine is in operation. Nebisko Biscuits starts its production at 10:00 am and ends at 4:00 pm (6 hours) each day. The company packages one biscuit every 5 seconds. A report of the total biscuits packaged per day is given to the production manager for their weekly report. The machine encountered a fault yesterday and had stopped working for 35 minutes. Implement a C++ program to compute and output the total of times the coil is expected to rotate during normal period of production; as well as compute and output with the total amount of biscuits that is expected to be packaged daily. Your solution must also compute and output the total amount of biscuits that would have been packaged based on the duration for which the machine encountered a fault yesterday


1
Expert's answer
2021-06-02T16:32:41-0400
#include <iostream>
double get_rotates(double t) {
    return 10 * t;
}
double get_biscuit(double t) {
    return t / 5;
}
int main()
{
    std::cout << "The total number of roll revolutions during the normal production period: "<<get_rotates((16 - 10) * 3600)<<std::endl;
    std::cout << "Planned total number of cookies per day: "<<get_biscuit((16 - 10) * 3600)<<std::endl;
    std::cout << "Unreleased biscuits in 35 minutes of downtime: " << get_biscuit(35 * 60) << std::endl;
    return 0;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog