QUESTION 3 Suppose the following declarations appear in the mainfunction of a C++ program: string name, course, date; float cost; bool approved; Suppose the following calling statement appears in the mainfunction: approveFunds("Memory enhancement", "Ellen Subisa", date, 595.00, approved); Which of the options below is a correct function header of the function approveFundsin the main function? 1. void approveFunds(string courseP, string nameP, string & dateP, float costp, bool & approvedP) 2. void approveFunds(string & courseP, string & nameP, string dateP, float & costP, bool approvedP) 3. void approveFunds(course, name, date, cost, approved) 4. void approveFunds("Memory enhancement", "Ellen Subisa", date, cost, approved) QUESTION 4 Which of the options below expresses the logic that neither of the following two statements are true? O is less than 4 or iis greater than 10, C and itimes jis greater than 54. 1. (!((i < 4 || i > 10) && (i*j > 54))) 2. (!((i < 4 3. ((i < 4 ||i > 10) || (i*j > 54)) 4. (!((i < 4 && i > 10) && (i*j > 54))) i > 10) || (i*j > 54)))

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter6: User-defined Functions
Section: Chapter Questions
Problem 1TF: Mark the following statements as true or false: a. To use a predefined function in a program, you...
icon
Related questions
Question
QUESTION 3
Suppose the following declarations appear in the mainfunction of a C++ program:
string name, course, date;
float cost;
bool approved;
Suppose the following calling statement appears in the mainfunction:
approveFunds("Memory enhancement", "Ellen Subisa", date, 595.00,
approved);
Which of the options below is a correct function header of the function approveFundsin the main
function?
1. void approveFunds(string courseP, string nameP, string & dateP, float
costp, bool & approvedP)
2. void approveFunds(string & courseP, string & nameP,
string dateP, float & costP, bool approvedP)
3. void approveFunds(course, name, date, cost, approved)
4. void approveFunds("Memory enhancement", "Ellen Subisa", date, cost,
approved)
QUESTION 4
Which of the options below expresses the logic that neither of the following two statements are true?
O is less than 4 or iis greater than 10,
C and itimes jis greater than 54.
1. (!((i < 4 || i > 10) && (i*j > 54)))
2. (!((i < 4
3. ((i < 4 ||i > 10) || (i*j > 54))
4. (!((i < 4 && i > 10) && (i*j > 54)))
i > 10) || (i*j > 54)))
Transcribed Image Text:QUESTION 3 Suppose the following declarations appear in the mainfunction of a C++ program: string name, course, date; float cost; bool approved; Suppose the following calling statement appears in the mainfunction: approveFunds("Memory enhancement", "Ellen Subisa", date, 595.00, approved); Which of the options below is a correct function header of the function approveFundsin the main function? 1. void approveFunds(string courseP, string nameP, string & dateP, float costp, bool & approvedP) 2. void approveFunds(string & courseP, string & nameP, string dateP, float & costP, bool approvedP) 3. void approveFunds(course, name, date, cost, approved) 4. void approveFunds("Memory enhancement", "Ellen Subisa", date, cost, approved) QUESTION 4 Which of the options below expresses the logic that neither of the following two statements are true? O is less than 4 or iis greater than 10, C and itimes jis greater than 54. 1. (!((i < 4 || i > 10) && (i*j > 54))) 2. (!((i < 4 3. ((i < 4 ||i > 10) || (i*j > 54)) 4. (!((i < 4 && i > 10) && (i*j > 54))) i > 10) || (i*j > 54)))
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Types of Function
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning