Computers and Technology

The following program skeleton determines whether a person qualifies for a credit card. To qualify, the person must have worked on his or her current job for at least two years and make at least $17,000 per year. Finish the program by writing the definitions of the functions qualify and noQualify. The function qualify should explain (display the reason to the screen) that the applicant qualifies for the card and that the annual interest rate is 12%. The function noQualify should explain that the applicant does not qualify for the card and give a general explanation why. #include
using namespace std;
// Write the definitions for the two functions qualify and noQualify here. Do NOT modify the rest of the code
!int main()
{
double salary;
int years;
cout << "This program will determine if you qualify\n";
cout << "for our credit card.\n";
cout << "What is your annual salary? ";
cin >> salary;
cout << "How many years have you worked at your current job? ";
cin >> years;
if (salary >= 17000.0 &&years >= 2)
qualify();
else
noQualify();
}
II. Sending data into function
Program 6-8 (Section 6.4, subsection "Passing multiple arguments") demonstrates a function with three parameters. Write a program that uses a function with two parameters, which works similarly to Program 6-8.-The program should get two floating point numbers from the user.-It then calls a function named show Average that takes two parameters to display the average of the two input numbers.

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 24.06.2019 01:30, kellygaytan
Suppose a cpu with a write-through, write-allocate cache achieves a cpi of 2. what are the read and write bandwidths (measured by bytes per cycle) between ram and the cache? (assume each miss generates a request for one block.)
Answers: 1
image
Computers and Technology, 24.06.2019 15:30, sonyfan
What is the total number of time zones that can be configured to show by default in a calendar in outlook 2016?
Answers: 1
image
Computers and Technology, 24.06.2019 21:30, Xghoued2056
Aobject is used for displaying the results of a question based on stored data. a. query b. report c. table d. form
Answers: 2
image
Computers and Technology, 25.06.2019 04:30, greenbyron88
You can fit more raw files on a memory card than the jpeg files? truefalse
Answers: 1
Do you know the correct answer?
The following program skeleton determines whether a person qualifies for a credit card. To qualify,...

Questions in other subjects:

Konu
English, 14.10.2019 06:10