missheyward30
28.07.2020 •
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.
Solved
Show answers
More tips
- P Philosophy How to Develop Extrasensory Abilities?...
- O Other Everything You Need to Know About Kudyabliks...
- C Computers and Internet The Twitter Phenomenon: What it is and How to Use it...
- C Computers and Internet How to Choose a Laptop: Expert Guide and Tips...
- C Computers and Internet How to Choose a Monitor?...
- H Horoscopes, Magic, Divination Where Did Tarot Cards Come From?...
- S Style and Beauty How to Make Your Lips Fuller? Ideas and Tips for Beautiful Lips...
- C Computers and Internet How to Learn to Type Fast?...
- A Art and Culture Who Said The Less We Love a Woman, the More She Likes Us ?...
Answers on questions: Computers and Technology
- C Computers and Technology Write a Java method that receives three strings and returns a string containing distinct common characters among the three strings ignoring case for letters.Write a program...
- C Computers and Technology Type the correct answer in the box. Spell the word correctly. Which element of a digital camera captures an image? of a digital camera captures an image...
- H History How did the crop lien system trap some farmers in a cycle of debt...
- H History What is the definition of double v campaign...
- C Chemistry 1. baking powder is a 1: 1 molar mixture of cream of tartar (khc4h4o6) and baking soda (nahco3). a recipe calls for two teaspoons (a total of 8.0 grams) of cream of tartar....
- M Mathematics Sunday: 1 1 2 monday: 1 tuesday: 2 1 2 wednesday: 1 3 4 thursday: 2 friday: 1 1 2 saturday: 2 jenna is a swimmer and trains every day. the schedule shown outlines the...
- M Mathematics If x + 10 = 70, what is x? a. 40 b. 50 c. 60 d. 70 e. 80...
- M Mathematics Afurniture store has 1,500 chairs in storage. a manager uses three delivery receipts to simulate samples to check 100 chairs and note the number of brown chairs. suppose...
- M Mathematics Michelle had a birthday party. she bought a bag of candy with 96 starbursts, 72 hershey s, and 68 reese s. she wants to use all the candy she bought to make goody bags...
- M Mathematics Jonah runs 3/5 miles on sunday and 7/10 mile on monday. he uses the model to find that he can ran a total of 1 mile . what mistake does jonah make...
Ответ:
Sorry po idont know po ehhh sorry