Question: Write a Python program that finds the unknown element from the density formula. The user must give density, mass of the body, and volume of

Write a Python program that finds the unknown element from the density formula. The user must give density, mass of the body, and volume of the body. However, the user must give a string question mark only once for one of the parameters, instead of float. If the user gives a different number of question marks than one, then the program must give an error message. Else, the program must calculate the unknown value using the formula. You can ignore the units such as kg or m3.
The formula is
=mV
where is the density, m is the mass, and V is the volume.
The output of the program should look like this:
Write a Python program that finds the unknown

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!