subject

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.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 21:30
Felicia wants to become a head surgeon by december 2013. she designs the career milestones that she would need to complete her goal. by june 2013, she was not licensed. which best describes what she should do?
Answers: 2
question
Computers and Technology, 23.06.2019 18:30
Janice recently received her college degree and is looking for a job. she is worried that since she just finished school, she will be required to repay her perkins and direct subsidized loans immediately. janice pulls out the paperwork she signed and reviews it again for repayment information. after reading all of the information, janice discovers that
Answers: 2
question
Computers and Technology, 23.06.2019 20:00
What software programs are used to to create professional publication? a.) graphics programs b.) word processors c.) page layout programs d.) spreadsheet programs
Answers: 2
question
Computers and Technology, 23.06.2019 20:30
If an appliance consumes 500 w of power and is left on for 5 hours, how much energy is used over this time period? a. 2.5 kwh b. 25 kwh c. 250 kwh d. 2500 kwh
Answers: 1
You know the right answer?
The following program skeleton determines whether a person qualifies for a credit card. To qualify,...
Questions
question
Mathematics, 03.11.2020 14:00
question
English, 03.11.2020 14:00
Questions on the website: 13722361