Ask Question
21 August, 01:42

Write a program that will read the weight of a package of breakfast cereal in ounces and output the weight in metric tons as well as the number of boxes needed to yield one metric ton of cereal. In: A metric ton is 35,273.92 ounces.

+1
Answers (1)
  1. 21 August, 03:39
    0
    The C+ + code is given below

    Explanation:

    #include

    using namespace std;

    int main () {

    int flag=1;

    do{

    double ounce, metric, boxes;

    cout<<"Enter weight of package in ounces: ";

    cin>>ounce;

    metric=ounce/35273.92;

    cout<<"Metric ton is "<
    boxes=35273.92/ounce;

    cout<<"Number of boxes are: "<
    cout<<"Press 0 to quit else press 1: ";

    cin>>flag;

    }while (flag==1);

    return 0;

    }
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Write a program that will read the weight of a package of breakfast cereal in ounces and output the weight in metric tons as well as the ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers