Question: I need help with this assignment 1. Write a function that takes raises an integer input, base, to the power specified by the nonnegative integer,

I need help with this assignment  I need help with this assignment 1. Write a function that

1. Write a function that takes raises an integer input, base, to the power specified by the nonnegative integer, exponent. 2. Write an elementary calculator in which the main program reads two integer inputs and the operation (+,-,*,) between them and passes that information to a function (calc) to perform this operation. This function returns the result using switch statements for operation decision. The program stops when the user inputs 0 for both inputs in the main program. 3. Write a function that converts Fahrenheit (F) to Centigrade (C) and vice versa. The user inputs the degrees either in F or C in integer and the program returns the converted value in C or F, respectively. The program ends when user inputs -273 C. (The conversion equation is C=(F-32)x59). 4. Write a swap_4 function that takes four inputs and reverses their input order. 5. Print the values of sin0, cos() and tanO of the angles in [0,180], in 10 degree increments. (Remember the inputs to sin0,cos0 and tan0 need to be in radian.) 6. Write a function that takes two float inputs, adds their log10 to obtain "a" and prints out 10**a of the result

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!