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;
What exactly you need help with? I see you already familiar with if statements and input, so more information on what you have problem with is needed.
By the way, there are code tags on this forum. They make your code easier to read. they look like <> to the right of the message area. Select your code and press this button.