Answer to Question #311917 in C++ for Nobody

Question #311917

As a form of quality control, the Pancake Kitchen has recorded, on a Pancake file, two measurements for each of its pancakes made in a certain month: the thickness in mm (millimetres) and the diameter in cm (centimetres). Each record on the file contains two measurements for a pancake, thickness followed by diameter. 

Write a complete C++ program 

a) that will prompt the number of the pancake produce per day, the thickness in mm (millimetres) and the diameter in cm (centimetres) of each pancake,

b) to identify and display minimum and maximum for both dimensions,

c) to calculate and display the average for both the dimensions



1
Expert's answer
2022-03-15T07:12:19-0400

Here is program:

int main()
{
	int thickness;
	int diameter;
	cout << "Enter thickness in mm (millimetres):" << endl;
	cin >> thickness;
	cout << "Enter diameter in cm (centimetres):" << endl;
	cin >> diameter;
	cout << "Average for both the dimensions: " << ((thickness * 10 )+ diameter) / 2 << endl;
}

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