Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

All in C# Please Write a pseudocode algorithm that performs the following task: Ask a user to enter a number. If the number is between

All in C# Please

Write a pseudocode algorithm that performs the following task: Ask a user to enter a number. If the number is between 0 and 10, exclusively, write the word Blue. If the number is between 10 and 20, exclusively, write the word Red. If the number is between 20 and 30, exclusively, write the word Green. If it is any other number, write the message This is not a correct color option. The algorithm output is as shown below.

Sample Outputs:

You entered: 15

Your color: Red

You entered: 41

Your color: This is not a correct color option.

Program 5: Write a pseudocode algorithm to add the prices of an order of fries, a burger, and a drink, calculate the tax (assume 10%), and tell the customer their total. Use the prices shown below for each menu item. The algorithm output is as shown below.

Sample Output:

Fries price: 3 dollars

Burger price: 6 dollars

Dink price: 1 dollar

Tax: 1 dollar

Total cost: 11 dollars

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions