Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

18:42 ? my.unisa.ac.za il TelkomSA 3G 100% COS1511/102/1/2018 12 of 14 Change the program so that the pay amount is displayed in the main program

image text in transcribed
18:42 ? my.unisa.ac.za il TelkomSA 3G 100% COS1511/102/1/2018 12 of 14 Change the program so that the pay amount is displayed in the main program instead of function Submit a printout of the program and the output. Question 5 Question 5a Write a function named integer Power ) that accepts two integer numbers (ase and exponent) as formal parameters and returns the value of basFor example, integerPower (3,4)333 3-81 The function integer Pover ) should use a for or while loop to do the calculation. (Do not use any math library functions Include the integer Power ( function in a working program. Again, the main) function should input the values, correctly call integerPowez and display the value returned by the function, all with appropriate messages. Submit a printout of the program and output. Question Sb Write a function named isEqual0 that accepts two char values as formall parameters and returns TRUE if the characters ar the same otherwise FALSE Include the isEqual function in a working program. Themaia) function should input the values correctly call isEqual and display the value returned by the function, all with appropriate messages Submit a printout of the program and output Question Sc Write a function named twice ) that accepts two integer values as formal parameters. The function then multiplies each parameter with 2 which is returned to the calling program Include the twice ) function in a working program. The main) function should input the values, correctly call twice ) and display the values returned by the function, all with appropriate messages 12 Submit a printout of the program and output

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

4. Choose appropriate and powerful language

Answered: 1 week ago

Question

2. Choose an appropriate organizational pattern for your speech

Answered: 1 week ago