Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

c++ #1 1. Write function headers for the following: Point 4 A function named One

ID: 3910274 • Letter: C

Question

c++ #1

1. Write function headers for the following: Point 4 A function named One(), which has two arguments. The first argument should accept an integer number, the second argument a whole number. The function returns value. a) b) A function named price(), which has three arguments. The first argument should accept an integer number, the second and third argument are double precision number. The function returns no value. c) A function named cale), which has five arguments. The first, second, and third arguments are double precision number. The fourth and fifth arguments are double precision numbers reference arguments. The calc0 function produces the sum and product of first, second, and third arguments The function returns no value. A function named table ()that produces a table of the numbers from I to 10, their squares, and their cubes. No arguments are to be passed to the function and the function returns no value. d) Point 3 2. Write function call for the following: A function named displayMessage(), which does not take any arguments. The function returns no value. a) wo floating point number reference arguments. The b) A fiunction named Cheek (), which has two floating point number reference function returns no value.

Explanation / Answer

1.

a) int One(int a, int b);
b) void price(int a, double b, double c);
c) void calc(double a, double b, double c, double* d, double* e);
d) void table();

2.
a) displayMessage();
b) Check(&a, &b); //a and b are floating point numbers

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote