(Solved) : Question Enum Question Needs Code Please Break Source Code Individual Question Write Enum Q42709285 . . .

  1. Question on enum

Each question needs code on its own.so please break down the source code for the individualquestion.

  1. Write and enum for days of the week called Day. Populate itwith each of the seven days of the week, starting with Monday(NOTE: follow our naming convention as closely as you can!)

  1. Modify your code from above by adding the function declared tobe, string getString(Day); This function will return the stringrepresentation of the Day that is given. Then use this function ina loop, inside your main body, to print out each Day enumerator asreadable text.

  1. Modify your code from above by adding another function declaredto be, bool isWeekend(Day); that returns true only if the givenargument is a Saturday or a Sunday.

  1. Modify your code from above by adding another function declaredto be, int daysTillWeekend(Day); that returns the positive intnumber of days until the next weekend day. If a Friday or Saturdayis passed in as an argument this function should return 0, Sundayis passed in, it should return 5.

  1. Modify your code from above to add an eighthday to the Week called Newday, that falls between Saturday andSunday. Test all the questions above to make sure that they workcorrectly for each. NOTE: Newday is NOT a weekendday, be sure to consider this when you test all of your code.

Expert Answer


Answer to Question on enum Each question needs code on its own. so please break down the source code for the individual question….

Leave a Comment

About

We are the best freelance writing portal. Looking for online writing, editing or proofreading jobs? We have plenty of writing assignments to handle.

Quick Links

Browse Solutions

Place Order

About Us