Question: Write a complete program implementing the following tasks: 1 ) Declare two double variables foot and meter. 2 ) By using console window input, prompt

Write a complete program implementing the following tasks:
1) Declare two double variables foot and meter.
2) By using console window input, prompt the user to enter the foot value, read the
value from the user and store it in the variable foot.
3) Compute the meter value according to the foot value and assign the result to the
variable meter using the following formula
meter =0.305*foot
4) Display the result of meter on the console window. Your code should print the
following statements:
Please enter the value of feet: 5
5.0 ft converted to meters is 1.525 m
Submission:
Submit in Gradescope using the folder Lab1 before the deadline.
Go to folio > Content > Gradescope Module > All Gradescope Assignments > Lab1. This
is how you will submit all your Homework Assignments and Labs and get a score.
At the starting of each program, please mention the package homew

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!