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, 22.06.2019 07:30
What type of computer network ensures high security ?
Answers: 1
question
Computers and Technology, 22.06.2019 23:30
Which text format is this, "the text is transcribed exactly as it sounds and includes all the utterances of the speakers. "?
Answers: 2
question
Computers and Technology, 23.06.2019 00:20
The open systems interconnection (osi) reference model: defines standards for many aspects of computing and communications within a network. is a generic description for how computers use multiple layers of protocol rules to communicate across a network. defines standards for wireless local area network (wlan) communication protocols. details the advantages and disadvantages of various basic network cabling options.
Answers: 1
question
Computers and Technology, 23.06.2019 11:00
This chapter lists many ways in which becoming computer literate is beneficial. think about what your life will be like once you’re started in your career. what areas of computing will be most important for you to understand? how would an understanding of computer hardware and software you in working from home, working with groups in other countries and contributing your talents.
Answers: 1
You know the right answer?
Please hlp :(
Using java

Create an array of strings that contains the names of th...
Questions
question
Biology, 25.09.2020 09:01
question
Mathematics, 25.09.2020 09:01
Questions on the website: 13722359