•

Check out our Community Blogs

# mirror1

Member Since 10 Feb 2012
Offline Last Active Feb 22 2012 06:17 PM

### Incomplete pseudocode

22 February 2012 - 06:10 PM

Here my problem..
The design is determining the correct sales tax depending on the country idenifying code.
Countries with a number less than 7 have a 5% salestax. The 8-24 codes have
a sales tax of 7%. Codes above 24 have a sales of tax of 9%.

Heres my incomplete code. The underline means I didn't know what to write there so Im hoping one of you guys can help me out here.

Begin
Declare Real SalesTax
Declare___ country code
_____" Enter the country code: "
Input ____________
If _____ <=7 then
Set salesTax =____
ELSE
If____ AND ____ then
____
Else
Set salesTax = 0.09
EndIf
____
Display "the sales tax is: "+____
End

### Pseudocode problem help.

22 February 2012 - 02:23 PM

I need help with my psudocode

Question is:
algorithm will keep track of a customer’s purchases at the local fireworks stand. Customers will not know exactly how many items they will purchase, so using a FOR loop on this lab is not allowed. Let’s keep the rules simple.
1) Accept the dollar value of each item purchased from the user until the user is finished.
2) When purchases are complete, enter a sentinel value of -1 (indicating the user has finished).
3) If more the item purchased is 50.00 or more, give your customer a 10% discount on their item purchased.
4) Display all of the purchases to the customer with the original price and the discount price

My code so far:

Begin FireWorkCalculation

Input "Enter price of item: "&price
WHILE (continue = Y)
Input continue Prompt "Do you wish to continue?"
WHILE (continue = N)
Display continue Prompt "You have completed your order."
ENDWHILE
If totalPrice <= 50.00 then (totalPrice*.10 = fullamount)

End

Any help will be appreciated and thanks in advance:)

### Pseudocode problem help?

10 February 2012 - 05:15 PM

Im a newbie to programming n barely started my class but my professor is already asking for too much.. I have other problems to do but this is one of them..

Here a problem
You will need to design an application that it will prompt a user for their hourly pay rate, their hours worked, and whether they are single, married, divorced, or widowed. It will then calculate their gross and net pay. If they work more than 40 hours, overtime is calculated at 1 ½ times the regular rate and displayed separately. If they are married, use a flat tax rate of 15%. If they are single, use 22%, if they are divorced, use 23%, and if they are widowed, use 13% (I realize that these are not very realistic). So how do i write this in a pseudocode and what would be the output? Any help would be appreciated thanks in advance

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download