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 1: 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 18 or above, display "You are eligible to vote."
If the age is below 18, display "You are not eligible to vote yet."
Problem 2: 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 $100 or more, the shipping is free.
If the total purchase amount is less than $100, but the weight of the
package is less than or equal to 10kg, the shipping fee is $5.
If the total purchase amount is less than $100 and the weight of the
package is more than 10kg, the shipping fee is calculated based on the
following:
For weights between 10kg(inclusive) and 20kg(exclusive), the
shipping fee is $10.
For weights between 20kg(inclusive) and 30kg(exclusive), the
shipping fee is $15.
For weights above 30kg, the shipping fee is $20.
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.
 Problem 1: Voting Eligibility Checker Write a Java program that prompts

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