# How do I write 1 cup = 8 ounces and then use that to find the total ounces of milk- 2cups +  flour 2.66 cups+, and 1.5 cups ? Would it be (int cup = 8) ?

Question
30 views

How do I write 1 cup = 8 ounces and then use that to find the total ounces of milk- 2cups +  flour 2.66 cups+, and 1.5 cups ? Would it be (int cup = 8) ?

check_circle

Step 1

1 cup is equal to 8 ounces.

The total cup is given as 2-cups of milk, 2.66 cups of flour, and 1.5 cups.

Hence here total cups are 6.16.

Now find the total ounce corresponding to these cups.

Step 2

Let’s take a variable that stores 8 ounces.

this variable can be of integer or floating-point type but mostly prefer integer type.

Take a variable which store cups of mi...

### Want to see the full answer?

See Solution

#### Want to see this answer and more?

Solutions are written by subject experts who are available 24/7. Questions are typically answered within 1 hour.*

See Solution
*Response times may vary by subject and question.
Tagged in

### Computer Science 