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, 21.06.2019 19:30
Why is it a good idea to leave an interview being courteous and polite?
Answers: 1
question
Computers and Technology, 22.06.2019 12:10
Linux is distributed under gnu gpl. why is this important? a. it ensures that only torvalds can profit from the sale of linux b. it prevents unknowledgeable users from downloading programs they don't know how to operate. c. it provides protection for the developers who created linux. d. it states that anyone can copy, modify, and share the program if changes are made public.
Answers: 1
question
Computers and Technology, 24.06.2019 21:30
How is a wan different than a lan? both connect computers, but only wan users don’t need the same operating system. both are peer-to-peer networks, but only a wan requires networking hardware. both network computers, but only a wan can cover larger geographical ranges. both connect computers to the internet, but only wan connects to the cloud.
Answers: 1
question
Computers and Technology, 24.06.2019 21:30
How do i copy and paste equations and pictures like math graphs, to post on this site to get my questions answered?
Answers: 2
You know the right answer?
C++
Using the Enumerated Type we talked about in lecture:
enum Days{ SUNDAY,
MOND...
Questions
question
Mathematics, 21.10.2020 20:01
question
Mathematics, 21.10.2020 20:01
question
Mathematics, 21.10.2020 20:01
question
Business, 21.10.2020 20:01
Questions on the website: 13722362