Ask 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 number of boxes needed to yield one metric ton of cereal. In: A metric ton is 35,273.92 ounces.

+1
Answers (1)
  1. 14 December, 17:04
    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?
Find 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 the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers