Difficulty: Low
Title: Equal To, Greater Than, or Less Than
Description:
Write a program to accept two integers and check whether they are equal to, greater than, or less than each other.
Output:
Type a Number: 5
Type a Number: 6
5 is less than 6
Difficulty: Low
Title: Weather
Description:
Write a program to prompt a user for a temperature in Fahrenheit and display a suitable message according to the temperature state below:
Output:
Enter the temperature: 47
This is: Cold Weather
Difficulty: Low
Title: Largest of Three Numbers
Description:
Write a program to find the largest of three numbers. The numbers can be typed in any order (i.e. smallest to largest, largest to smallest, or the largest number in the middle).
Output:
Type a Number: 1
Type a Number: 3
Type a Number: 2
Number 3 is the largest
Difficulty: Medium
Title: Electric Bill
Description:
Write a program to calculate and print the electricity bill of a given customer. Prompt the user for their customer ID, name, and unit consumed by the user. Output the total amount to be paid to the customer.
The charge are as follow :
| Unit | Charge / Unit |
| up to 199 | @1.30 |
| 200 - 399 | @1.60 |
| 400 - 599 | @1.90 |
| 600 and above | @2.10 |
Output:
Customer ID: 1111
Customer Name: Boothe
Units Consumed: 800
Amount Charged @ 2.10 per unit: 1,680
Surcharge Amount: 252
Total Due: 1,932
Difficulty: Medium
Title: Course Eligibility
Description:
Write a program to determine eligibility for admission to an upper level programming course based on the following criteria:
Eligibility Criteria :
Output:
Algebra I: 70
Geometry: 0
Algebra II: 0
Programming Fundamentals: 70
AP Computer Science Principles: 70
Candidate is eligible
Difficulty: Medium
Title: Days in a month
Description:
Write a program to find the number of days in a month (including leap years).
Output:
Enter a month: September
This is: 30 days
Difficulty: Medium
Title: Your Height
Description:
Prompt the user for their height in feet and inches, then provide them a menu option to calculate their height in either meters or centimeters. Output their height based upon the menu option chosen.
Output:
Height in Feet: 5
Height in Inches: 7
Choose to calculate your height in:
1 - Meters
2 - Centimeters
Choice: 1
Your height in meters is: 1.70
Difficulty: Medium
Title: Form Triangle
Description:
Write a program to check whether a triangle can be formed based upon three values entered by a user for the angles.
To check if a triangle can be formed with given side lengths, use the "Triangle Inequality Theorem": add any two side lengths together, and if the sum is greater than the third side length, then a triangle can be formed.
NOTE: You have to add up all combination of sides to determine if a triangle can be formed.
Output:
Side 1: 7
Side 2: 10
Side 3: 5
A triangle can be formed
Difficulty: High
Title: Clothing Discount
Description:
Write a program to determine if the total amount of a sale should be discounted. If the amount is greater than $100, then the amount is discounted by 5%. If the sale is greater than $150 then the amount of the discount is 10%.
At the store shoppers are only allowed to buy 5 things at a time and the following items are sold:
Output:
Welcome to XYZ store enter the number of the item you would like to purchase:
1 - Short Sleeve Shirts $10
2 - Long Sleeve Shirts: $15
3 - Jeans: $30
4 - Cargo Pants: $30
5 - Jackets: $50
6 - Dresses: $35
Clothing Purchase #1: 4
Clothing Purchase #2: 4
Clothing Purchase #3: 5
Clothing Purchase #4: 1
Clothing Purchase #5: 1
Total Purchase Amount (Before Discount): $130
Discount: 5%
Discount Amount: $6.50
Total Due: $123.50
Difficulty: High
Title: Date of the Bunny
Description:
Implement the calculator for the date of the bunny.
The following algorithm computes the date of Bunny Sunday for any year between 1900 to 2099.
Ask the user to enter a year. Compute the following:
Output:
Year: 1981
April 19th