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
g How safe is to have a LinkedIn account where you have published all the important information about yourself
irina [24]

Answer:

LinkedIn is very safe

Explanation:

LinkedIn is very safe, that being said you should never post private information about yourself anywhere that you do not want others to see/know. LinkedIn is a job recruiting and networking site, meaning that all the information that you have or will be publishing there should be related to your career. There is no reason for you to publish private information such as document numbers, social security number, address, bank account info, etc.

5 0
3 years ago
Read 2 more answers
Write a script named numberlines.py. This script creates a program listing from a source program. This script should: Prompt the
ddd [48]

Answer:

See explaination for program code.

Explanation:

inputFileName = input("Input filename: ") outputFileName = input("Output filename: ") inputFile = open(inputFileName, "r") outputFile = open(outputFileName, "w") count = 1 for line in inputFile: newLine = str(count).rjust(4, " ") + "> " + line outputFile.write(newLine) print(newLine) count += 1

4 0
3 years ago
What does NIC stand for?
evablogger [386]
Network Interface Controller
6 0
3 years ago
From the practice directory, you wish to capture a listing of files and directories to a file in your user2 directory, thus allo
MArishka [77]

Answer:

variable(s) determine the amount of potential energy an object has?

Explanation:

6 0
3 years ago
If you are in the Slide Master view, what are the steps to add headers and footers?
Marta_Voda [28]

Answer:

THat is the correct order.

Explanation:

6 0
2 years ago
Other questions:
  • How many seconds are required to make a left turn and join traffic?​
    11·2 answers
  • Several days a week, usually between 8:00 a.m. and 9:00 a.m., users complain of MWI problems. Some have new messages, but their
    11·1 answer
  • Pinterest, a visual bookmarking Website, logs more than 14 terabytes of new data each day, which means its storage needs are con
    10·1 answer
  • COMPUTER SCIENCE:PIXELS
    5·1 answer
  • What type of device does a computer turn to first when attempting to make contact with a host with a known IP address on another
    9·2 answers
  • Which of the following is a technique used by hackers to identify unsecured wireless network locations to other hackers?A. Blues
    10·1 answer
  • Gear systems with __________ can have both drive and driven gears on the same shaft. a. an odd number of gears b. an even number
    6·1 answer
  • What is the mest gun in pixel gun 3d imma give you brainliest
    14·2 answers
  • Why would an end-user not generally buy a server? Explain your answer by referring to the typical role that servers perform. ​
    12·1 answer
  • Javed’s teacher tells him she would like to see him improve his speaking skills in the next debate by including a rhetorical app
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!