Computer Science, asked by robanpreetsingh9876, 6 months ago

One
metric

ton
is
approximately
2205
pounds
.
Write
a
program
that
prompts
the
user
to
input
the
amount
of
rice
,
in
pounds
,
Write
a
program
that
calculates
the
capacity
of
an
automobile
fuel
tank
in
litres
,
and
the
kilometers
per
litre
that
the
Volume = 4/3 tr
Surface area = 4 1 r
Write a program that prompts the user
to enter the weight of a person in kilograms and out
pounds. (Note that 1 kilogram = 2.2 pounds).
8.
9.
in a bag. The program outputs the number of bags needed to store one metric ton of rice.
f Irilometers the automobile can be driven without​

Answers

Answered by rahul99912
1

Answer:

Ton of Rice

One metric ton is approximately 2205 pounds. Write a program that prompts the user to input the amount of rice, in pounds, in a bag. The program outputs the number of bags needed to store one metric ton of rice.

Write the Code:

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

/*

Project: Ton of Rice

Description: User inputs how many pounds of rice are in a bag.

Program calculates the number of bags needed for 1 ton of rice.

*/

#include <iostream>

using namespace std;

int main()

{

float pounds = 0;

float bagsInTon = 0;

cout << "Please enter the number of pounds in each rice bag:";

cin >> pounds;

bagsInTon = 2205 / pounds;

cout << "\nYou need " << bagsInTon << " bags for each ton of rice.";

return 0;

}

Similar questions