Professional Documents
Culture Documents
l process savings account data for a given month. Assume that the savings account accrues interest at a rate 12% per year and that the user must enter the current balance, amount of deposits, and amount of withdrawals. Use the Problem-Solving technique to design the solution. 1. Defining Diagram
OUTPUT totalCostOfSalesItem
2. Data Dictionary
DESCRIPTION The amount of sales tax which is 6% The amount tax rate of a sales item The total cost of a sales item which pay by the customers
amountOfSalesTax double
3. Pseudocode 1.) 2.) 3.) 4.) 5.) 6.) START Input the amountOfSalesTax and salesTaxRate Input the amountOfSalesTax and salesTaxRate Calculate the totalCostOfSalesItem Display cost END
4. Flowchart
START
Calculate totalCostOfSales
END
setData ( )
Calculate ( )
getTotal ( )
6. Class Diagram
setData() calculateData() getData() 7. Desk Check 1. 2. 3. 4. 5. START Input the amountOfSalesTax and salesTaxRate Culculate the totalCostOfSalesItem Display cost END
INPUT/OUTPU T