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)))
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...
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)))](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F4b7d27ea-d3ea-48df-8b8a-22d9b6dd15de%2F3c4c3fed-14b3-464b-8457-4865ab970b9c%2F7zmsbr9.jpeg&w=3840&q=75)
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
![](/static/compass_v2/shared-icons/check-mark.png)
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
Knowledge Booster
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.Recommended textbooks for you
![C++ Programming: From Problem Analysis to Program…](https://www.bartleby.com/isbn_cover_images/9781337102087/9781337102087_smallCoverImage.gif)
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
![C++ Programming: From Problem Analysis to Program…](https://www.bartleby.com/isbn_cover_images/9781337102087/9781337102087_smallCoverImage.gif)
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning