Interest calculations

Part 2. Interest calculations.
Ask the user to enter a principal amount, in dollars and cents. Then ask the user for the annual interest rate. A rate of 5.25% per year would be entered as 5.25.
(a) Calculate the interest earned for one year, compounded annually. Display the inputs, the interest earned, and the total balance at the end of the year.
(b) Calculate the interest by compounded daily. Your output should be similar to that in part (a) but labeled appropriately to indicate the type of interest calculation performed.
The interest rate is a percentage; you need to convert the user-entered rate to a percentage before calculating. So, a rate of 5.25%, entered by the user as 5.25, needs to be converted to .0525 before calculations can be done.
Interest earned during one year, compounded annually, is the principal multiplied by the interest rate. Interest earned during one year compounded daily is computed using this formula: interest earned = starting principal (1+ interest rate/365)^365 – starting principalMake sure your ourput is neatly formatted with decimal points aligning. Dollars-and-cents values have two decimal places.
Part 3. Marketing calculations.
Ask the user to enter the size of a display screen as a height measurement, and a width measurement, both in inches. Calculate and display the screen size as it would be marketed: its the length of the diagonal. Use the pythogarian formula of a2 + b2 = c2 for your computation.
Part 4: Las Vegas dice game
Roll two simulated dice using an RNG. Display the values of each dice and their total. Examine the roll. If it is a loser (1- 1, snake eyes, 1-2, craps, or 12-12 boxcars) tell the user they lost. If it is a winner (total 7 or 11), tell the user they won. Otherwise, the roll total is the point to be made. Tell the user and show the point. Roll the dice once more, and examine the result. If the total equals the point, tell the user they won. Otherwise, tell the user they lost, and the game is ending.

WhatsApp
Hello! Need help with your assignments?

For faster services, inquiry about  new assignments submission or  follow ups on your assignments please text us/call us on +1 (251) 265-5102

🛡️ Worried About Plagiarism? Run a Free Turnitin Check Today!
Get peace of mind with a 100% AI-Free Report and expert editing assistance.

X