Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Documem2- Word Product Actvabon Faled) HILL HOMES 8 Kha Huang Cul Copy - .' ete f T AaBi Cel AaBlod Aalba Aa6bCot Aabl tatit cee
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 bavenee 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
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started