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
Plz answer me will mark as brainliest ​
victus00 [196]

Answer:

Application

Explanation:

Application software comes in many forms like apps, and even on computers. The software is most common on computers of all kinds while mobile applications are most common on cellular devices.

3 0
3 years ago
Read 2 more answers
Health informatics is an interdisciplinary field which incorporates theory and methodology from fields in computer science. True
noname [10]

Health informatics is an interdisciplinary field which incorporates theory and methodology from fields in computer science is True.

True

<u>Explanation:</u>

To capture patient health information they used interdisciplinary field which is consists patient information and they diseases and cure treatment taken for that patient. All information is store in digital formatted.

The patient information is stored such as health informatics, nurse and doctor treatment, health treatment, medicine details, clinics information.

Health informatics are used to do further analysis on patient health. Doctors are using this information for their further treatment for their patient also.

Information are also can be used as IOT information so that patient information are readily available.

3 0
4 years ago
Parameters are treated as variables within a function.
Amanda [17]

Answer:

In C programming you can only pass variables as parameter to function.

Explanation:

3 0
3 years ago
Complete each statement by choosing the correct answer from the drop-down menu.
Katena32 [7]

Answer:

The answer to this question is given below in the explanation section.

Explanation:

The correct matching answers for this question are given below. In this question, it is asked to identify the data type of the given scenario.

Integer short and integer long data type:

These data types can hold whole positive and negative numbers. however, you can also store positive and negative values in float and double data type also.

Boolean data type:

Boolean data type usually stores true or false values such as yer or no, true or false etc. It stores binary values i.e 1 or 0.

Float and Double data type: float and double data type can store positive and negative numbers with decimals. But, the float data type can store 4 bytes of data and sufficient for storing 7 decimal digits. while double data type has a size of 8 bytes of data and sufficient for storing 15 decimal digits.

However, for the given scenario in the question,  the float data type can accomodate these values easily.

7 0
3 years ago
Write a conditional expression that assign the value 0 to a credits variable if it is less than 0; otherwise the value of the cr
Svetach [21]

Answer:

credits = (credits < 0) ? 0 : credits;

Explanation:

This is the ternary conditional operator.

6 0
3 years ago
Read 2 more answers
Other questions:
  • A Hierarchy Custom Setting stores a specific URL for each profile in Salesforce. Which statement can a developer use to retrieve
    5·1 answer
  • If you wanted to create a graph that showed how much each value contributed to the whole value, you would use a _____.
    15·2 answers
  • Question Workspace Check My Work Copying computer software, video games, movies, or music without paying the producer for them i
    11·1 answer
  • Blank is a type of drag and drop code to help beginner
    14·1 answer
  • One of your professors has asked you to write a program to grade her midterm exams, which consist of only 20 multiple-choice que
    15·1 answer
  • Write four overloaded methods called randomize. Each method will return a random number based on the parameters that it receives
    5·2 answers
  • Unwanted email sent to large groups of people who did not request the communication is called _____
    12·1 answer
  • I need help I have questions I need answers in coding html,css,js and python.Fast
    7·1 answer
  • ____________ are designed to delete temporary files (such as deleted files still in the Recycle Bin, temporary Internet files, t
    10·2 answers
  • Which tool can you use to display hardware utilization statistics that tell you about the operation of your computer?
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!