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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started