Question
1. StudentHoursWorked - A UD student is working on a job and is required to enter the amount of time he/she worked in minutes. Create
1. StudentHoursWorked - A UD student is working on a job and is required to enter the amount of time he/she worked in minutes. Create a Java program that displays the time the student worked in hours and minutes. You will use the Scanner class to input the minutes worked.
2. Write a Java program for grade school kids that teaches numbers that are divisible by fives. The user will be able to enter an integer and the program will check whether the number is divisible by 3. For example: if your input is 7, the output should be: Is 7 divisible by 5? 7 is divisible by five or 7 is not divisible by five. Use an if/else statement. Will need to use the == relational operator in Java. See IC_04 examples.
3. You are at dancing competition. The scores are being calculated and there are two scores outstanding for the two remaining top competitors. They have the free style and the short defined program to add the points which will range from 0-100 for each score. Write a Java program that requests each score for each couple. The user will enter each score for two couples; then total the scores for each couple; and compare whether the score is less than or equal to or greater than the other score. Use integer type numbers for scoring.
a. You will have four separate inputs for the four scores 2 inputs for each couple b. You will have two separate computations or processes to calculate total points- 1 for each couple c. Three if statements with three possible outputs requiring the use of if-else- if d. One output result
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