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, 22.06.2019 17:30
The forerunner to cell phones, pdas, and smartphones was
Answers: 1
question
Computers and Technology, 23.06.2019 21:30
Examine the list below. which factors positively affect lifetime income? check all that apply.
Answers: 1
question
Computers and Technology, 23.06.2019 23:40
4. what is the reason for including the following code snippet in the header file animal.h? #ifndef animal_h #define animal_h class animal { public: animal(); animal(double new_area_hunt); void birth(); void hunt(double new_area_hunt); void death(); double get_area_hunt() const; private: double area_hunt; }; #endif
Answers: 3
question
Computers and Technology, 24.06.2019 12:50
What percentage of teens plays video games? a.97% b.100% c.74% d.50%
Answers: 1
You know the right answer?
The following program skeleton determines whether a person qualifies for a credit card. To qualify,...
Questions
question
Biology, 28.01.2020 04:31
question
English, 28.01.2020 04:31
question
Computers and Technology, 28.01.2020 04:31
Questions on the website: 13722360