Question: Problem 1 : Voting Eligibility Checker Write a Java program that prompts the user to enter their age. The program should then determine if the
Problem : Voting Eligibility Checker
Write a Java program that prompts the user to enter their age. The program
should then determine if the person is eligible to vote based on the
following conditions:
If the age is or above, display "You are eligible to vote."
If the age is below display "You are not eligible to vote yet."
Problem : Shipping Fee Calculator
Write a Java program that calculates the shipping fee for an online
purchase based on the following conditions:
If the total purchase amount is $ or more, the shipping is free.
If the total purchase amount is less than $ but the weight of the
package is less than or equal to the shipping fee is $
If the total purchase amount is less than $ and the weight of the
package is more than the shipping fee is calculated based on the
following:
For weights between inclusive and exclusive the
shipping fee is $
For weights between inclusive and exclusive the
shipping fee is $
For weights above the shipping fee is $
The program should prompt the user to enter the total purchase amount
and the weight of the package. Then, it should calculate and display the
shipping fee based on the given conditions.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
