Question: getMassobject ( letter ) - this function takes as an input parameter the character representing which object to throw. It returns the mass of the

getMassobject (letter)- this function takes as an input parameter the character representing which object to throw. It returns the mass of the object (kg).
\table[[Object,Character,Mass],[tomato,?'t'',0.1],[banana cream pie,?'p',1.0],[rock,?'r',3.0],[lawn gnome,?'g',5.3],[light saber,?'I',9.07]]
If the input parameter isn't one of the 5 expected characters the function should return 0.0.
 getMassobject (letter)- this function takes as an input parameter the character

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 Databases Questions!