subject

C++
Using the Enumerated Type we talked about in lecture:
enum Days{ SUNDAY,
MONDAY,
TUESDAY,
WEDNESDAY,
THURSDAY,
FRIDAY,
SATURDAY
};
#1 – Write 2 functions
Ø One to convert a string into the Days type
Ø One to convert a Days type into a string
#2 – Write the code to read in a day as a string input, convert it to the Days type, convert it
back to a string and output the value. Use the expected Input/Output described below.

Screen I/O:

What day is today? Monday
Today is MONDAY!
What day is today? Tuesday
Today is TUESDAY!
What day is today? Wednesday
Today is WEDNESDAY!
What day is today? Thursday
Today is THURSDAY!
What day is today? Friday
Today is FRIDAY!
What day is today? Saturday
Today is SATURDAY!
What day is today? Sunday
Today is SUNDAY!
What day is today? No Day
Invalid day input!
Today is INVALID!

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 21:00
Kirk found a local community college with a two-year program and he is comparing the cost with that of an out-of-state two-year school. what is the expected total cost for one year at the local community college if kirk lives at home? what is the expected total cost for one year at the out-of-state school if kirk lives on campus?
Answers: 2
question
Computers and Technology, 23.06.2019 06:30
To become an audio technician, the most successful tactics might include the following. (select all that apply). learning how to persuade other people gaining different types of experience in audio technology learning as much as possible about art history establishing a reputation as a reliable professional
Answers: 1
question
Computers and Technology, 23.06.2019 19:30
You can apply several different worksheet themes from which tab?
Answers: 1
question
Computers and Technology, 23.06.2019 22:00
Technician a says engine assemblies can be mounted longitudinally in a chassis. technician b says engine assemblies can be mounted transversely in a chassis. who is correct?
Answers: 2
You know the right answer?
C++
Using the Enumerated Type we talked about in lecture:
enum Days{ SUNDAY,
MOND...
Questions
question
Mathematics, 23.03.2021 22:10
question
Chemistry, 23.03.2021 22:10
Questions on the website: 13722361