Question: Write the algorithm to solve the following problems: 1. Make scrambled eggs 2. Get three numbers. If the first one is larger than the

Write the algorithm to solve the following problems: 1. Make scrambled eggs

Write the algorithm to solve the following problems: 1. Make scrambled eggs 2. Get three numbers. If the first one is larger than the second one, multiply the third number by 5.0; otherwise divide the third number by 2.0. Display the third number. 3. Get three numbers and display the number with the highest value. For example: if the numbers are 4, 10, and 6, the answer is 10. 4. Design an algorithm to find the cost of landscaping a backyard with sod that is sold by the square foot and fencing that is sold by the foot. 5. Design an algorithm to find the minimum combination of coins that can be used to make change for a given amount (in cents) less than one dollar. You can assume that the coins that can be used are quarters, dimes, nickels and pennies. For example, if you were given 67 cents, your algorithm should print out 2 quarters, 1 dime, 1 nickel and 2 pennies. 6. BONUS: Get a divisor and a dividend and find the quotient using long division.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!