Steven_Barry_Week6 Assignment

Steven_Barry_Week6 Assignment - Module Main Declare Name as...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Module Main Declare Name as String Declare Price as Real Declare Quantity as Real Declare Discount as Interger Declare Subtotal as Real Declare Total as Real Declare Tax as Real Declare Itemsubtotal as Real Declare Response as String Declare TaxRate as Real Declare TaxStatus as String Call User Input module Call Calculate Tax module Call Total Module End Main Module User Input Module Write "Please enter the item name." Input Name Write "Please enter the item price." Input Price While Price<=0 Then Write “Please enter the item price” Input Price End while Write “Please enter quantity of the item” Input Quantity Set Discount= Price*.10 If Quantity>=4 Then itemSubtotal= Price*Quanity-Discount Else Quantity<4 Then itemSubtotal= Price*Quanity End if Write Name” $“itemSubtotal Write “Would you like to enter another Item(Y or N)?” Input Response If Respons<>”Y” Or Response<> “N” Then Write “Please enter your choice again (Y or N)” Input Response While Response=”Y”
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 01/15/2012 for the course IT 210 210 taught by Professor Professory during the Spring '10 term at University of Phoenix.

Page1 / 3

Steven_Barry_Week6 Assignment - Module Main Declare Name as...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online