subject

Please hlp :(
Using java

Create an array of strings that contains the names of the days of the week: {“Sunday”,”Monday”,”Tuesday”,”Wedne sday”,”Thursday”,“Friday”, ”Saturday”}
a. In your main, create a program that asks the user for an integer between 1 and 7, inclusive. Using the array, your program should print out the day of the week corresponding to the number the user entered. Your program must REJECT any number that’s outside this range.
b. On the same line that prints the day’s name, modify your code to also declare if it is or if it is not a weekend.
An example printed output for Q1 could be: “Please enter a number: 4
The day you chose is Wednesday and it is not a weekend.”
“Please enter a number: 7
The day you chose is Saturday and it is a weekend.”

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 18:20
Write the pseudocode for the following: a function called fahrenheittocelsius that accepts a real fahrenheit temperature, performs the conversion, and returns the real celsius temperature. a function called celsiustofahrenheit that accepts a real celsius temperature, performs the conversion, and returns the real fahrenheit temperature. a main module that asks user to enter a fahrenheit temperature, calls the fahrenheittocelsius function, and displays the celsius temperature with a user-friendly message. it then asks the user to enter a celsius temperature, calls the celsiustofahrenheit function, and displays the fahrenheit temperature with a user-friendly message.
Answers: 1
question
Computers and Technology, 23.06.2019 04:31
Acloud service provider uses the internet to deliver a computing environment for developing, running, and managing software applications. which cloud service model does the provider offer? a. iaas b. caas c. maas d. paas e. saas
Answers: 1
question
Computers and Technology, 23.06.2019 12:20
When guido van rossum created python, he wanted to make a language that was more than other programming languages. a. code-based b. human-readable c. complex d. functional
Answers: 1
question
Computers and Technology, 23.06.2019 17:20
What is the best assassins creed game?
Answers: 2
You know the right answer?
Please hlp :(
Using java

Create an array of strings that contains the names of th...
Questions
question
English, 09.03.2021 20:10
question
Mathematics, 09.03.2021 20:10
question
Mathematics, 09.03.2021 20:10
question
Mathematics, 09.03.2021 20:10
question
Mathematics, 09.03.2021 20:10
question
Mathematics, 09.03.2021 20:10
Questions on the website: 13722367