Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need help creating the code, i am confused, if you follow the task it should help create the code 3.18 Lab 3c Due O7-Mar-17

I need help creating the code, i am confused, if you follow the task it should help create the code

image text in transcribed

image text in transcribed

3.18 Lab 3c Due O7-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.println0 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 Spring Else If month is 4, 5, or 6 season E Else If month is 7, 8, or 9 r 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 (.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 II input 2 II input 3) can be accomplished in a switch statement employing the fall through mechanism

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Development For Dummies

Authors: Allen G. Taylor

1st Edition

978-0764507526

More Books

Students also viewed these Databases questions