Question: Question 2: (6 Marks, 1.5 each) A. Write a program to compute the area of a Right Rectangular Pyramid using the following formula: Right rectangular
Question 2: (6 Marks, 1.5 each) A. Write a program to compute the area of a Right Rectangular Pyramid using the following formula: Right rectangular pyramid A = *w* )***** *** Figure 2: The area of Right Rectangular Pyramid B. Write a program that reads in the radius of a circle as an integer and prints the circle's diameter, circumference and area. Use the constant value 3.14159 for 1. Do all calculations in output statements. C. Write a program to check leap year. D. Write a program that reads the net price of an item and calculates value added tax 5% and gross price. If the net price is more than AED 500. Apply 15% discount to the total bill. Print the following screen layout: Net Price xxxX.XX AED Discount XXXX.XX AED Total xxxx.xx AED + 5% VAT XXXX.XX AED The End CCIT-Introduction to Programming, Spring 19-20 Page 5 of 5
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
