Credit Cards. Financial advisors will almost always tell you that you should pay for things in...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Credit Cards. Financial advisors will almost always tell you that you should pay for things in cash and avoid credit card debt. Further, they tell you that you should have a small emergency fund that you keep stocked for emergencies like flat tires, dead refrigerators and so on. However, life doesn't always work that way and sometimes we need to charge things. So, for this part of the lab, we're going to write a calculator that calculates your minimum monthly payment on your card. To create this calculator, we will ask the user for 1) the current balance on their credit card and 2) the APR (Annual Percentage Rate) of the card. To calculate the minimum payment, you will multiply the current balance on the credit card (also called the amount owed) times APR and divide this number by 12 since there are 12 months in a year. The formula is Amount Owed APR 12 = Minimum Payment. The input APR is a percent, so make sure the APR is in decimal form when you are doing the calculations. The Monthly Percentage Rate is calculated by taking the decimal form of the APR and dividing it by 12 since there are 12 months in a year. Below is an example run. The user input is in bold. Sample run 1: Amount owed: $2000 APR: 19.75 Monthly percentage rate: 1.646 Minimum payment: $32.92 Sample run 2: Amount owed: $8500 APR: 29 Monthly percentage rate: 2.417 Minimum payment: $205.42 Lab3B: GPA calculator. We're getting more practice making a calculator! GPA is important. It's one of the many things employers look at when recruiting new candidates. You also need a GPA of at least 2.0 to graduate from KSU. GPA is measured by "quality points" using the following scale: A = 4 quality points B = 3 quality points C = 2 quality points D = 1 quality point F = 0 quality points Each course counts for a certain number of credit hours. For instance, most courses are 3 credit hours. This lab is a 1 credit hour course. Calculus counts 4 credit hours. To calculate the quality points for one course, multiply the number of hours of that course times the quality points you earn for that course. To calculate your GPA for the whole semester, you take the total number of quality points earned that semester and divide it by the total number of hours taken that semester. For this lab, write a program that reads from the user the number of hours and quality points earned for four courses then calculates the total hours, total quality points and GPA. You should only use floats as the data type for your variables. An example run is shown below. The user input is in bold. Sample run 1: Course 1 hours: 4 Grade for course 1: 4 Course 2 hours: 3 Grade for course 2: 3 Course 3 hours: 3 Grade for course 3: 4 Course 4 hours: 4 Grade for course 4: 4 Total hours is: 14 Total quality points is: 53 Your GPA for this semester is 3.78571 Sample run 2: Course 1 hours: 4 Grade for course 1: 1 Course 2 hours: 1 Grade for course 2: 4 Course 3 hours: 3 Grade for course 3: 4 Course 4 hours: 3 Grade for course 4: 3 Total hours is: 11 Total quality points is: 29 Your GPA for this semester is 2.63636 Credit Cards. Financial advisors will almost always tell you that you should pay for things in cash and avoid credit card debt. Further, they tell you that you should have a small emergency fund that you keep stocked for emergencies like flat tires, dead refrigerators and so on. However, life doesn't always work that way and sometimes we need to charge things. So, for this part of the lab, we're going to write a calculator that calculates your minimum monthly payment on your card. To create this calculator, we will ask the user for 1) the current balance on their credit card and 2) the APR (Annual Percentage Rate) of the card. To calculate the minimum payment, you will multiply the current balance on the credit card (also called the amount owed) times APR and divide this number by 12 since there are 12 months in a year. The formula is Amount Owed APR 12 = Minimum Payment. The input APR is a percent, so make sure the APR is in decimal form when you are doing the calculations. The Monthly Percentage Rate is calculated by taking the decimal form of the APR and dividing it by 12 since there are 12 months in a year. Below is an example run. The user input is in bold. Sample run 1: Amount owed: $2000 APR: 19.75 Monthly percentage rate: 1.646 Minimum payment: $32.92 Sample run 2: Amount owed: $8500 APR: 29 Monthly percentage rate: 2.417 Minimum payment: $205.42 Lab3B: GPA calculator. We're getting more practice making a calculator! GPA is important. It's one of the many things employers look at when recruiting new candidates. You also need a GPA of at least 2.0 to graduate from KSU. GPA is measured by "quality points" using the following scale: A = 4 quality points B = 3 quality points C = 2 quality points D = 1 quality point F = 0 quality points Each course counts for a certain number of credit hours. For instance, most courses are 3 credit hours. This lab is a 1 credit hour course. Calculus counts 4 credit hours. To calculate the quality points for one course, multiply the number of hours of that course times the quality points you earn for that course. To calculate your GPA for the whole semester, you take the total number of quality points earned that semester and divide it by the total number of hours taken that semester. For this lab, write a program that reads from the user the number of hours and quality points earned for four courses then calculates the total hours, total quality points and GPA. You should only use floats as the data type for your variables. An example run is shown below. The user input is in bold. Sample run 1: Course 1 hours: 4 Grade for course 1: 4 Course 2 hours: 3 Grade for course 2: 3 Course 3 hours: 3 Grade for course 3: 4 Course 4 hours: 4 Grade for course 4: 4 Total hours is: 14 Total quality points is: 53 Your GPA for this semester is 3.78571 Sample run 2: Course 1 hours: 4 Grade for course 1: 1 Course 2 hours: 1 Grade for course 2: 4 Course 3 hours: 3 Grade for course 3: 4 Course 4 hours: 3 Grade for course 4: 3 Total hours is: 11 Total quality points is: 29 Your GPA for this semester is 2.63636
Expert Answer:
Answer rating: 100% (QA)
Based on the provided context you can create a calculator in C to determine the minimum monthly pay... View the full answer
Related Book For
Financial Analysis with Microsoft Excel
ISBN: 978-1285432274
7th edition
Authors: Timothy R. Mayes, Todd M. Shank
Posted Date:
Students also viewed these programming questions
-
List three specific parts of the Case Guide, Objectives and Strategy Section (See below) that you had the most difficulty understanding. Describe your current understanding of these parts. Provide...
-
QUIZ... Let D be a poset and let f : D D be a monotone function. (i) Give the definition of the least pre-fixed point, fix (f), of f. Show that fix (f) is a fixed point of f. [5 marks] (ii) Show that...
-
Discriminate the Enablers and the Inhibitors to IT strategy alignment from the below IT fails to meet commitments IT does not understand business IT involved in strategy development IT understands...
-
The partially filled contingency table gives the frequencies of the data on age (in Yrs) and sex from the residents of a retirement home. What is the relative frequency of 70-79 year old males? 70-79...
-
First Firm's market cap is $5,940. This includes cash of $542. The firm has 299 shares outstanding. First Firm uses its cash to pay a dividend. If a retired lady has 61 shares, and needs a total of...
-
This is actually a paired data situation (since each person was measured before and after eating organic), so we create a new variable, the differences in pesticide concentration, by taking pesticide...
-
A company has two sequential processing departments. On the cost of production reports for the departments, will the cost per unit transferred out of the first department always be equal to the cost...
-
1) Discuss the concepts of specific risk and market risk in investment 2) Explain how portfolio diversification reduces investment risk 3) Create a hypothetical example of a 3-stock portfolio, select...
-
At the end of March, Weber Productions accounting records reveal a balance for cash equal to $21,861. However, the balance of cash in the bank at the end of February is only $4,576. Weber is...
-
10. Find the temperature u(x, t) in the infinite plate of width 2L shown in Figure 12.R.4 if the initial temperature is uo throughout. [Hint: u(x, 0): = Uo, -L
-
Why would management adopt an earnings maximization objective?
-
What are some practical methods for bringing about behavior change, both in ourselves and in others?
-
Explain one legitimate use for a variable interest enterprise (VIE).
-
Briefly define Sharia auditing.
-
Use the following information to answer the following questions pertaining to the adjusting entries of Smart Ideas. Smart Ideas started operation on December 1. The company purchased $3,000 of...
-
Evaluate the limit, if it exists. (If an answer does not exist, enter DNE.) 141 X lim 7 x--7 7+X Need Help? Read It Watch It
-
Three forces with magnitudes of 70pounds, 40 pounds, and 60 pounds act on an object at angles of 30, 45, and 135, respectively, with the positive x-axis. Find the direction and magnitude of the...
-
Meyerson's Bakery is considering the addition of a new line of pies to its product offerings. It is expected that each pie will sell for $15 and the variable costs per pie will be $9. Total fixed...
-
A stock's beta coefficient can be calculated using the following equation: B- = ^2 Vi, a. Write a user-defined function that can calculate the beta coefficient. The arguments to the function should...
-
You are considering an investment in two projects, A and B. Both projects will cost $100,000, and the projected cash flows are as follows: a. Assuming that the WACC is 8%, calculate the payback...
-
In the electric field pattern for a sinusoidally oscillating dipole shown in Figure 30. 21, what are (a) the direction of the change in the electric field \(\Delta \vec{E}\) at point \(\mathrm{C}\)...
-
The magnitude of the electric field of Figure P30.1 is changing with time. As a result of this change, there is an upward-pointing magnetic field at position \(\mathrm{P}\). Is the electric field...
-
Figure P30.2 shows two electric fields, one in a region of circular cross-section and one in a long flat region. In both cases, the electric field decreases over time. What is the direction of the...
Study smarter with the SolutionInn App