Documem2- Word Product Actvabon Faled) HILL HOMES 8 Kha Huang 美Cul Copy ·-· . ete f↓ T AaBi Cel AaBlod Aalba Aa6bCot Aabl tatit cee Aasen Find % Replac Tm.le P 14 a Aa. er a. Stpes Edrng nX Please use the beginner+code, thank you 4. Write a program to calculate the arca and pcricter of a pentagon. User should enter the required input. The area and the perimeter are displayed on the screen. You must use function called AREA and perimeter with appropriate argumentis). The output should be printed from within the main program. Your function does not retum aything 1 피 201G 0723门 5. Write an overloaded function ax tbat takes cither two or three parameters of type double and returns the largest of them. Note that you will have o functions of the saltie Date. One will have two and [be other will bave止nee arguments. Your functions should determine the max vahe and retun the max Print the ax rwithin thain fction 2016.00-22 2016-03-0( 6. Write a program to ask the user to input the first letter of the day of the eek (exauple Mor T e). The prograun will tbprinl the naue of te day. The actual determination of tlhe name of tbe week should take place inside a function called Day. If the user enters S1 then the program should also request for the second letter of the name. This should be done inside the function. Only pass the first letter into the function. Thc ame of the day is printod from inside the fuuction. 7. Modify problem #6 to return the name of the function to the main and print out the name E e 218

Documem2- Word Product Actvabon Faled) HILL HOMES 8 Kha Huang 美Cul Copy ·-· .'” ete f↓ T AaBi Cel AaBlod Aalba Aa6bCot Aabl tatit cee Aasen Find % Replac Tm.le P 14 a” Aa. er a. Stpes Edrng nX Please use the beginner+code, thank you 4. Write a program to calculate the arca and pcricter of a pentagon. User should enter the required input. The area and the perimeter are displayed on the screen. You must use function called AREA and perimeter with appropriate argumentis). The output should be printed from within the main program. Your function does not retum aything 1 피 201G 0723门 5. Write an overloaded function ax tbat takes cither two or three parameters of type double and returns the largest of them. Note that you will have o functions of the saltie Date. One will have two and [be other will bave止nee arguments. Your functions should determine the max vahe and retun the max Print the ax rwithin thain fction 2016.00-22 2016-03-0( 6. Write a program to ask the user to input the first letter of the day of the eek (exauple Mor T e). The prograun will tbprinl the naue of te day. The actual determination of tlhe name of tbe week should take place inside a function called Day. If the user enters “S1” then the program should also request for the second letter of the name. This should be done inside the function. Only pass the first letter into the function. Thc ame of the day is printod from inside the fuuction. 7. Modify problem #6 to return the name of the function to the main and print out the name E e 218 Show transcribed image text