Question: Computers are playing an increasing role in education. Write a program that will help an elementary school student to calculate the area of different shapes
ca programas ma When basheght w the dot shapes et met thes that will seebject of shape the methods to the Brother to Area Ape tenhape you would like to calculate te for at W yet to calonate the area of another shape you would like to intero matatata pod lie to calculate them or another20 Parallelogramarea Wil calculate the area of parallelogram as formula parallelogram arah Where b = base, h height chuplay method will print the area of the chosen shape wins get methods. write the Area App codes that will set 2 objects of shapecoa User set methods to assign the values received from the calculate the area of chosen shape and ample output Welcome to Area of shapes App Choose which shape you would like to calculate ita arter for Triangle, or 2 for Parallelogram Plexo Enter Banet 5 Plane Xnter Height: 7 Area of Parallelogram - 35 Would you like to calculate the area of another shape (Year OINO) 1 Choose which shape you would like to calculate tanter 1 tor Triangle, or 2 for Parallelogram) Please enter Bus 5 Please enter Height17 Ares of triangle - 17.5 Would you like to calculate the area of another shape (Yes, 0:NO) 2 0 Thank you ne ovulatie
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
