1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
aliya0001 [1]
3 years ago
8

Write a program that reads a number in feet, converts it to meters, and displays the result. One foot is 0.305 meters. INPUT and

PROMPTS.The program prompts for the feet with the message "Enter a value for feet: ". OUTPUT. The output is of the form "x feet is y meters" where x is the number read in and y is the number of meters computed by the program.
Computers and Technology
1 answer:
sergij07 [2.7K]3 years ago
4 0

Answer:

using namespace std;

int main()

{

float x,y;

cout<<"Enter a value of feet: ";

cin>>x;

y=x*0.305;

cout<<x<<" feet is "<<y<<" meters";

return 0;

}

Explanation:

The program is written in C++ language but the problem can be carried out in any language using the premises given here.

You have to declare your variables for feet and meters (x and y in this case). The you prompt the user via the message on screen given by the cout word and the << sign, and the value read via the cin word and the >> sign and stored into x. Then you multiply x by 0.305 and store it in y, and show them on screen via cout. Note that literal words are written between " " and variables are written just like that.

You might be interested in
If you play gta and don't know the song ''Glamorous'' Then what do you even do when you play?
Paraphin [41]
You literally don’t do anything you’re just like dead of sun
4 0
2 years ago
Read 2 more answers
What are specific and relevant terms that will help you locate information using an internet search engine?
Liono4ka [1.6K]
I would say A:keywords

Hope this helps

I’m sorry if this is wrong

Have a great day/night
3 0
2 years ago
Your boss in the human resources department asks you to write a function that calculates the length of time that employees have
Tems11 [23]

Answer:

Option D is correct i.e., =DATEDIF(C2, $AE$2, "y").

Explanation:

The user's supervisor well into the following department tells him to compose the feature which measures the amount that times staff has served in their company utilizing the DATEDIF feature. Consider whether C2 includes the hiring dates for that staff and then that cell $AE$2 includes the cut-off point for whom to evaluate the hiring time with the duration of the service.

So, therefore the following option is correct according to the given scenario.

4 0
3 years ago
Which type of multiplexing divides transmission opportunities into slots of 125 microseconds with position inside each slot rese
Zinaida [17]

Answer: Time division multiplexing

Explanation: because a slot is equivalent to 125ms

And each position inside a slot is for each signal and a single bit frim each voice conversation is sent during each 125ms slot

7 0
3 years ago
How to do the for loop in python
shusha [124]

Answer:

To loop through a set of code a specified number of times, we can use the range() function, The range() function returns a sequence of numbers, starting from 0 by default, and increments by 1 (by default), and ends at a specified number.

Explanation:

hope this helps

8 0
2 years ago
Other questions:
  • When paying bills online, a payee is:
    9·1 answer
  • Joshua takes ownership of all his tasks. Which quality is he demonstrating?
    9·2 answers
  • Put the steps of the decision-making process in the correct order.
    12·1 answer
  • Select the correct answer.
    14·2 answers
  • FILL IN BLANK FOR THE POINTS!!!!!!
    8·1 answer
  • I need a explanation for this 02 question for a test I will have .
    11·1 answer
  • I need to change the subject before they get onto me. I am only revealing info today if you are a friend.
    5·1 answer
  • What keyword must be used on any method (function) on your class that is called from your main() method?
    15·1 answer
  • You should always be afraid to use the internet<br><br> True or false?
    11·1 answer
  • What are 3 of the most important things about internet safety that you would recommend and why
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!