Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Part 1 In Eclipse, create a new Java project named Assignment1 Spring 2021 In the project, create a new package named asg1 (all lowercase letters).
Part 1 In Eclipse, create a new Java project named Assignment1 Spring 2021 In the project, create a new package named asg1 (all lowercase letters). In the package asg1, create a new class named Asg1Part1. Inside of the class, Asg1Part1, write a main method that does the following: a) Write Java statements to ask the user to input their current number of college credit hours. Output a message "Junior or above " if the number is at 60 or higher, otherwise output "Not yet a Junior". Be sure that this works before continuing to next item Example Run : Enter current number of college credit hours: 59 Output: Not yet a Junior with 59 hours b) Add Java statements to main method to ask the user to input their favorite hobby or pasttime. i)Output a message with their hobby/pasttime in ALL CAPS. ii) Output their hobby in all lowercase letters with another nice message in all lowercase. iii) Output the number of characters in their hobby (including any spaces) with a message. c) Add Java statements to ask the user for 3 integers. i) output the largest with a message ii) output the smallest with a message iii) output the average of the 3 values with a message (include the decimal part). Run the program containing working code for a), b), and c) above 3 times. Run #1 input: college hours: 24 hobby - your own favorite (mine would be golf) integers: 7, 11, 14 Run #2 input: college hours: 60 hobby - your 2nd favorite (mine would be golfing at Pebble Beach) integers: 81, 70, 88 Run #3 input: college hours: 140 hobby: a 3rd favorite of yours (mine would be golfing in Phoenix) integers: 4,804,115
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