Question: 1 . Write a java code snippet that prints five colors on separate lines ex: Red Yellow etc * / / * 2 . Write

1. Write a java code snippet that prints five colors on separate lines ex: "Red" "Yellow" etc *//*2. Write java code snippet to print out a unique picture
3. Write a java code snippet that prompts the user for their major and their age. Output (with the users input): Your major is (print major name here, without parentheses). Your age is (print age here, without parentheses).**major is string age is integer***//*4.You want to buy tickets for the upcoming Penn State hockey games. Each ticket costs $10. There are ten home games this year. Write code that outputs how much it would cost to go to each number of games. ex: Cost to go to 4 games: $40*//*5. Penn State also offers a season ticket package that allows tickets to be purchased for all ten games for $75. Use a multi-line comment to write an algorithm to determine which payment method is cheaper.

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!