Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions