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

  1. Write an algorithm that accepts an integer number and prints its previous and next numbers.
  2. 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.
  3. 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.
  4. 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

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 Algorithms Questions!