Please HELP!

So I need to write a program for my cse 100 class. I will provide all of the instructions, although I only need help with part 4. I will also provide all of the code I have so far.

1. First part of the program: Display the following user menu on the screen:
Based on your credit score, we give you an estimate of what your
annual payments might look like.
< blank line>
Enter your credit score: < user input >
2. Second part of the program: Using if-else statements, pick a category as
shown in the table based on the credit score. Do not display the category on
the screen. Category is strictly an internal variable to your system/code.
3. Part Three: Calculate the interest rates: Write a switch-case statement
based on category to assign the interest rates to variables that you should
initialize at the start of the program.
4. Part Four: Ask the user for his need and display some numbers regarding
the loan: Are you interested in applying for a house loan? (y/n) : <user input>
Enter the requested amount for the loan: <user input> ( This option
should show ONLY if the user selected ‘y’ )
Are you interested in applying for a car loan? (y/n): <user input>
Enter the requested amount for the loan: <user input> ( This option
should show ONLY if the user selected ‘y’ )
Are you interested in applying for a credit card? (y/n): <user input>
Obtain these inputs and display the interest rates and interest per year for
any of the options that the user selected ‘y’. If the user selected ‘n’ for all the
options, then display the interest rates for mortgage loan, car loan and credit
card rate.

#include<iostream>
using namespace std;

int main()
{
int credit_score;

cout << "Based on your credit score, we give you an estimate of what your annual payments might look like. \n";
cout << "Enter your credit score here:";
cin >> credit_score;

int category;

if ((credit_score >= 300) && (credit_score <550)) {
category = 1;
}else if ((credit_score >= 550) && (credit_score <620)) {
category = 2 ;
}else if ((credit_score >= 620) && (credit_score <680)) {
category = 3;
}else if ((credit_score >= 680) && (credit_score <740)) {
category = 4;
}else if ((credit_score >= 740) && (credit_score <850)) {
category = 5;
}

double m_rate, a_rate, credit_rate, credit_limit;

switch (category) {
case 1:
m_rate = 9.5;
a_rate = 18.9;
credit_rate = 28.9;
credit_limit = 500;
break;
case 2:
m_rate = 8.6;
a_rate = 17.9;
credit_rate = 19.8;
credit_limit = 800;
break;
case 3:
m_rate = 4.9;
a_rate = 11;
credit_rate = 13.9;
credit_limit = 1000;
break;
case 4:
m_rate = 4.2;
a_rate = 6.5;
credit_rate = 12.24;
credit_limit = 1500;
break;
case 5:
m_rate = 3.9;
a_rate = 5.1;
credit_rate = 7.99;
credit_limit = 2000;
break;
}
return 0;
}
Please do not double post. It clutters the forum and spreads attempts to help you.

Another thread: http://www.cplusplus.com/forum/beginner/143579/
Topic archived. No new replies allowed.