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
-
(i) Outline five methods which could be used to assess employer covenant, stating an advantage and disadvantage of each. [10] The trustees of a large defined benefit pension scheme, which has a...
-
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...
-
Using the employee pay journal entry for 6-4A, complete the General Journal entry for the issuance of the pay for the July 12 pay date. The date of the checks is July 15.
-
What strategies have marketers developed for increasing the likelihood that consumers will be exposed to their marketing stimuli?
-
In January 20xx, the Jones Corporation was organized and authorized to issue 2,000,000 shares of no-par common stock and 50,000 shares of 5 percent, $50 par value, noncumulative preferred stock. The...
-
One of the most important operating expenses for the Olde Virginia Brick Company is natural gas, which is used to bake and dry the bricks. Natural gas prices have recently been quite volatile, now...
-
Horizontal Asymptotes with Analytic Limits Aug 15, 9:44:24 PM Write the equation of all horizontal asymptotes of the function f ( a) = V1624+4 3x2-3x One Horizontal Asymptote Submit Answer No...
-
Richmoon Corporation has the following comparative financial statements: Richmoon Corporation Income Statement For the Year Ended December 31, 2010 Sales ...........$ 33,000 Less: Cost of goods sold...
-
Question 4: (6 points) For the beam in Question 3, suppose that instead of the simple support on the right end, we instead have a fixed support instead. (a) (3 points) Calculate the deflection...
-
Shine Magazine is offering a $120 supermarket cash coupon to attract new subscribers (i.e., acquisition costs incurred to Shine Magazine). The subscription is in an annual basis, that is, at the end...
-
An Engineering Firm needs additional equipment for the completion of its project. The firstalternative is to purchase a brand new equipment worth P1,500,000 with P400,000 salvage value atthe end of...
-
what are your thoughts on the answers below about Effective listeners After selecting "Dating Violence" in the difficult tab of the general listening quiz section, I scored a 5/5. I found it quite...
-
Consider a firm with a ROE of 2 5 % and a plowback ratio of 2 0 % . If the EPS a year form today is expected to be 5 and assuming a required rate of return of 1 2 % . What should the stock of the...
-
A company that currently produces final product A is considering stopping processing earlier in the production process and selling the intermediate product on the market. The final product sells for...
-
6.81 5 points Skipped Robertson Resorts is considering whether to expand their Pagosa Springs Lodge. The expansion will create 24 additional rooms for rent. The following estimates are available:...
-
In Exercises 1-2, rewrite each verbal statement as an equation. Then decide whether the statement is true or false. Justify your answer. 1. The logarithm of the difference of two numbers is equal to...
-
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...
-
Continuation of E9-32, E9-33, E9-34: memo (Learning Objective 5)} Use your results from E9-32, E9-33, and E9-34 to write a memo to Deer Valley's Director of Finance Jim Madsen recommending whether...
-
Calculate NPV with and without residual value (Learning Objective 4) Refer to the Deer Valley Expansion Data Set. 1. What is the project's NPV? Is the investment attractive? Why or why not? 2. Assume...
-
Calculate IRR with no residual value (Learning Objective 4) Refer to the Deer Valley Expansion Data Set. Assume that the expansion has no residual value. What is the project's IRR? Is the investment...
Study smarter with the SolutionInn App