Answered step by step
Verified Expert Solution
Question
1 Approved Answer
NOTE: PLEASE USE THE A4 SIZE PAPER IN ANSWERING THE QUESTIONS 1. Write a prototype for a function named distance. This function is to return
NOTE: PLEASE USE THE A4 SIZE PAPER IN ANSWERING THE QUESTIONS 1. Write a prototype for a function named distance. This function is to return a float and have two float parameters: rate and time. 2. Write a call for a function named days. This function is to return an int and have three int parameters: years, months and weeks. 3. Write a header for a function named getkey. The function should return a char and have no parameter. 4. Write a function definition to receive a random number as an argument. If the random number is 1 , the function should display "heads". If the random number is 2 , the function should display "tails". 5. Locate as many errors as you can on the following code fragment. In your answer, state the line number involved, explain the problem, and finally suggest a solution
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