Question

Please help solve and show all steps. Thanks in advance.

Create a C++ application and IPO that will ask the user for the number of watermelons. The application will output how many slices are available. There are 8 slices per watermelon. If the user inputs 2 watermelons the output should be 14 slices Upload your cpp file and IPO.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Here is the C++ code for you:

#include <iostream>
using namespace std;

int main()
{
    int numOfMelons;
    cout << "Enter the number of watermelons: ";
    cin >> numOfMelons;
    cout << "The number of slices can be made is: " << numOfMelons * 8 << endl;
}

And the output screenshot is:

Add a comment
Know the answer?
Add Answer to:
Please help solve and show all steps. Thanks in advance. Create a C++ application and IPO...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT