Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

What is the basic pseudocode for this with b and c included all in one? example of the pseudocode im looking for is. start Declarations

What is the basic pseudocode for this with b and c included all in one?

example of the pseudocode im looking for is.

start

Declarations

num itemPrice

num salespersonCommission

num customerDiscount

finalPrice= calculatePrice()

output The total price after Commission, $

salespersonCommission, and customer discount,

customerDiscount %, is, finalPrice

stop

calculatePrice(num itemPrice, num salespersonCommission, num customerDiscount)

Declarations

num totalPrice

totalPrice = (itemPrice-salespersonCommission-customerDicount)

return

a. Create the logic for a program that calculates and displays the amount of money you would have if you invested $5000 at 2 percent simple interest for one year. Create a separate method to do the calculation and return the result to be displayed.

b. modify the program in excerxise 3a so that the main program prompts the user for the amount of money and passes it to the interest-calculation method.

c. Modify the program in Exercise 3b so that the main program also prompts the user for the interest rate and passes both the amount of money and the interest rate to the interest-calculating method

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Processing Fundamentals, Design, and Implementation

Authors: David M. Kroenke, David J. Auer

14th edition

133876705, 9781292107639, 1292107634, 978-0133876703

More Books

Students also viewed these Databases questions