conditional statement
conditional statement
o OR if the total marks in Math and Physics are greater than 160
Write a pseudocode to determine whether a student is eligible for admission or not.
o If the temperature is below 0°C, output "Too cold, turn off the machine."
o If the temperature is between 0°C and 50°C, output "Machine is operating normally."
3. Tax Calculation:
Write a pseudocode to calculate the tax a person has to pay based on their income:
o For the first 100 units, the cost is $0.5 per unit.
o For the next 200 units, the cost is $0.75 per unit.
o For consumption beyond 300 units, the cost is $1.20 per unit.
Calculate and output the total bill.
o Grade A: $5000
o Grade B: $3000
o Grade C: $1000
o 1: Red - "Stop"
o 3: Green - "Go"
Mixed Challenge
o Main Course:
1: Pasta ($10)
2: Pizza ($12)
3: Burger ($8)
o Desserts:
2: Cake ($6)
Use nested IF or CASE OF...OTHERWISE to write a pseudocode that asks the
user to select a category (Main Course or Dessert), then choose an item, and
finally calculate the total price.