Question: Any integer is input by the user. Write a program to find out whether it is an odd number or even number. 2. code a

Any integer is input by the user. Write a program to find out whether it is an odd number or even number.

2. code a program to calculate the total expenses. Quantity and price per item are input by the user and discount of 10% is offered if the expense is more than 5000.

3. Write a program to determine whether the seller has made profit or incurred loss. Also determine how much profit he made or loss he incurred. Cost price and selling price of an item is input by the user.

4. If the ages of Sitka, Denahi and Kenai are input by the user, write a program to determine the youngest of the three.

5. Write a program to check whether a triangle is valid or not, when the three angles of the triangle are entered by the user.

6. Write a program to explain the meaning of the 5 ratings for movies from the Motion Picture Association of America (MPAA): G, PG, PG-13, R and NC-17. The user will enter one of the 5 ratings and the program will display its meaning.

7. In all code files, add comments to explain your logic.

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