Question: Write an algorithm that accepts an integer number and prints its previous and next numbers. Write an algorithm that reads the length of the base
- Write an algorithm that accepts an integer number and prints its previous and next numbers.
- Write an algorithm that reads the length of the base and the height of a right-angled triangle and prints the area. The area of a right angled-triangle is 1/2 x base x height.
- Write an algorithm that accepts three values that represent cost of order, tip percentage, and tax percentage and calculates and displays the final purchase cost/price.
- Women's Olympic boxing is divided into five weight classes (based on the 2020 Tokyo Games):
- flyweight, 112 pounds (51 kg)
- featherweight, 126 pounds (57 kg)
- lightweight, 132 pounds (60 kg)
- welterweight, 152 pounds (69 kg)
- middleweight, 165 pounds (75 kg)
Write an algorithm that takes a real positive number that represents the weight of a boxer in pounds. The algorithm should print a message indicating the weight class the boxer is assigned based on this breakdown.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
