3.18 Lab 3c Due 07-Mar-17 13 pts Students: This content is controlled by your instructor, and is not zyBooks content. Direct questions or concerns about this content to your instructor. If you have any technical issues with the zyLab submission system, use the "Trouble with lab?" button at the bottom of the lab. Objectives 1. Use Scanner class to get user input and System.out.printin) to display output. 2. From pseudocode, convert a ladder-style nested if-else statement into a switch statement. Background Reading Horstmann, Java For Everyone, Chapter 3. ZyBook, Section 3. Assignment Lab3c The following algorithm yields the season (Spring, Summer, Fall, or Winder) for a given month and day. Write a program that prompts the user for a month and day and then prints the season, as determined by this algorithm. If month is 1, 2, or 3, season = "Winter" Else If month is 4, 5, or 6, season = "Spring" Else If month is 7, 8, or 9, season = "Summer" Else If month is 10, 11, or 12, season = "Fall" If month is divisible by 3 and day >= 21 If season is "Winter", season = "Spring" Else If season is "Spring", season = "Summer" Else If season is "Summer", season = "Fall" Else season = "Winter" Requirements: The name of the Java class is Lab3c. Your "identification string" should be the first comment of the main method. // Program 3, [Name], [mascīd] The prompt should be on its own line with the following text (1.e. use System.out.println()): Enter a month and day: • Read in the value and use a switch structure to determine which value the user entered. A statement such as if (input == 1 || input ==2 || input == 3) can be accomplished in a switch statement employing the "fall throunh" mechanism:

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
In final exam help me fast
3.18 Lab 3c Due 07-Mar-17 13 pts
Students:
This content is controlled by your instructor, and is not zyBooks content. Direct questions or concerns about this content to your instructor. If you have any technical
issues with the zyLab submission system, use the "Trouble with lab?" button at the bottom of the lab.
Objectives
1. Use Scanner class to get user input and System.out.printin() to display output.
2. From pseudocode, convert a ladder-style nested if-else statement into a switch statement.
Background Reading
Horstmann, Java For Everyone, Chapter 3. ZyBook, Section 3.
Assignment Lab3c
The following algorithm yields the season (Spring, Summer, Fall, or Winder) for a given month and day. Write a program that prompts the user for a
month and day and then prints the season, as determined by this algorithm.
If month is 1, 2, or 3, season = "Winter"
Else If month is 4, 5, or 6, season = "Spring"
Else If month is 7, 8, or 9, season = "Summer"
Else If month is 10, 11, or 12, season = "Fall"
If month is divisible by 3 and day >= 21
If season is "Winter", season = "Spring"
Else If season is "Spring", season = "Summer"
Else If season is "Summer", season = "Fall"
Else season = "Winter"
Requirements:
The name of the Java class is Lab3c.
Your "identification string" should be the first comment of the main method. // Program 3, [Name], [ mascId]
The prompt should be on its own line with the following text (i.e. use System.out.println()):
Enter a month and day:
Read in the value and use a switch structure to determine which value the user entered.
A statement such as if (input == 1 || input ==2 || input == 3) can be accomplished in a switch statement employing the
"fall through" mechanism:
Transcribed Image Text:3.18 Lab 3c Due 07-Mar-17 13 pts Students: This content is controlled by your instructor, and is not zyBooks content. Direct questions or concerns about this content to your instructor. If you have any technical issues with the zyLab submission system, use the "Trouble with lab?" button at the bottom of the lab. Objectives 1. Use Scanner class to get user input and System.out.printin() to display output. 2. From pseudocode, convert a ladder-style nested if-else statement into a switch statement. Background Reading Horstmann, Java For Everyone, Chapter 3. ZyBook, Section 3. Assignment Lab3c The following algorithm yields the season (Spring, Summer, Fall, or Winder) for a given month and day. Write a program that prompts the user for a month and day and then prints the season, as determined by this algorithm. If month is 1, 2, or 3, season = "Winter" Else If month is 4, 5, or 6, season = "Spring" Else If month is 7, 8, or 9, season = "Summer" Else If month is 10, 11, or 12, season = "Fall" If month is divisible by 3 and day >= 21 If season is "Winter", season = "Spring" Else If season is "Spring", season = "Summer" Else If season is "Summer", season = "Fall" Else season = "Winter" Requirements: The name of the Java class is Lab3c. Your "identification string" should be the first comment of the main method. // Program 3, [Name], [ mascId] The prompt should be on its own line with the following text (i.e. use System.out.println()): Enter a month and day: Read in the value and use a switch structure to determine which value the user entered. A statement such as if (input == 1 || input ==2 || input == 3) can be accomplished in a switch statement employing the "fall through" mechanism:
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 4 images

Blurred answer
Knowledge Booster
Troubleshooting
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education