Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

AT&T 10:40 PM a ilearn.sfsu.edu Due on 0224 (Sunday) at 1 :55 pm. One day late will get 80% of credit and additional days late

image text in transcribed
AT&T 10:40 PM a ilearn.sfsu.edu Due on 0224 (Sunday) at 1 :55 pm. One day late will get 80% of credit and additional days late will be subtracted 5% for each day. Students need to submit their java file to ilearn. (Find future dates) Write a program that prompts the user to enter an integer for today's day of the week (Sunday is 0, Monday is 1,.. and Saturday is 6). Also prompt the user to enter the number of days after today for a future day and display the future day of the weck. Here is a simple run 0 for Sunday for Monday 2 for Tuesday 3 for Wednesday 4 for Thursday for Friday 6 for Saturday Enter today's day: 1 (enter) Enter the number of days elapsed since today: 3 (enter) Today is Monday and the future day is Thursday The assignment guideline import the Scanner class from java.util package create the class called FutureDates create main method inside the main method block declare String datatype aDay and assign as empty string create Scanner object prompt for the user to choose today's day take the user input with nextint0 method and assign the value to today variable with int datatype -use if else statement to determine the value for aDay - prompt for the user to type the number of days started from today's day take the user input with nextint0 method and assign the value to futureDay variable with int datatype calculate the future day and using the switch statement with case 0 to case 6 and default and then print out the today's day and future day

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 Design Query Formulation And Administration Using Oracle And PostgreSQL

Authors: Michael Mannino

8th Edition

1948426951, 978-1948426954

More Books

Students also viewed these Databases questions

Question

What is meant by planning or define planning?

Answered: 1 week ago

Question

Define span of management or define span of control ?

Answered: 1 week ago

Question

What is meant by formal organisation ?

Answered: 1 week ago

Question

What is meant by staff authority ?

Answered: 1 week ago

Question

3. What should a contract of employment contain?

Answered: 1 week ago

Question

1. What does the term employment relationship mean?

Answered: 1 week ago