Alright, so I'm in a CIT 120 Class. This assignment is about pseudocode and I just want to make sure I've done this correctly before submitting it. Math is not my strong suit and this sort of stuff easily hurts my brain o_x So, I guess help me make sure I'm doing this correctly and if not, please tell me what I'm doing wrong.
1. Write the pseudocode for an application that allows a user to enter the number of minutes used on a cell phone and displays the phone bill. The calls cost 10 cents per minute plus 6% tax.
Spoiler
start
// Delcarations
num minUsed
num costPerMin = .10
num initialCost
num taxAmount = .06
num salesTax
num totalBill
input minUsed
initialCost = costPerMin * minUsed
salesTax = initialCost * taxAmount
totalBill = salesTax + initialCost
output totalBill
stop
2. Write the pseudocode for an application that allows a user to enter the price of an item and computes 5 percent sales tax on the item
Spoiler
start
// Declarations
num itemPrice
num taxAmount = 0.5
num salesTax
input itemPrice
salesTax = itemPrice * taxAmount
output salesTax
stop
3. Write the pseudocode for an application that allows a user to enter the cost of home maintenance in each of the four seasons—summer, fall, winter, and spring—and displays the total.
5. Write the pseudocode for an application that allows a user to enter a credit card balance. Assuming the interest rate is 1 percent per month and that the user makes no payments, display the amount that will be due after one month and after two months.
For the ones with tax where you're calculating and adding, you can just add a 1 to the decimal calculation and save a whole step. Eg, in 1, instead of:
For the ones with tax where you're calculating and adding, you can just add a 1 to the decimal calculation and save a whole step. Eg, in 1, instead of: