Question: Programming Exercise # ex 7_2 1. Create a new text file named ex7_2.cpp with the following two lines. Be sure to replace the string YourFullName

 Programming Exercise # ex 7_2 1. Create a new text file

Programming Exercise # ex 7_2 1. Create a new text file named "ex7_2.cpp" with the following two lines. Be sure to replace the string "YourFullName" with your real full name. /* Filename: ex7_2.cpp Student: Yourull Name / 2. Next to the above two lines, write a C++ program that will create an array of string type named "weekday" whose elements are "Sun", "Mon", "Tue"...., and "Sat", as shown below. Then, use the "t" structure to find out which "day of week" today is. Finally, use a switch.case structure to determine which of tip of the day" to display, as specified below. Day of Week Tip of the day Sun Success lies in the hands of those who wants it. Mon Patience is your alley at the moment. Don't worry! Tue Nothing is impossible to a willing heart Wed A ship in harbor is safe, but that's not why ships are built. Thu Fear is interest paid on a debt you may notowe Fri One that would have the fruit must climb the tree. Sat The wise man is the one that makes you think that he is dumb. 3. Display two sentences similar to the following: one shows which day of week" today is the other display the designated "tip of the day" Day of the week: Fri Tip of the day: One that would have the fruit must climb the tree

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!