• 100% Satisfaction Guarantee
Raj, Engineer
Category: Homework
Satisfied Customers: 1290
Experience:  4 + Experiance in IT Industry
16752232
Raj is online now

# ok here is my pseudocode Main ModuleDeclare itemName As StringDeclare

ok here is my pseudocode Main Module
Declare itemName As String
Declare itemQuantity As Integer
Declare itemPrice As Real
Declare itemTotal As Real
Call GetInput(itemName,itemQuantity,itemPrice)
itemTotal = Call CalculateTotalPrice(itemQuantity,itemPrice)
Call DisplayResult(itemName,itemTotal)
End Main

Module GetInput (itemName As String,itemQuantity As Integer,itemPrice As Real)
Get itemName
Display “Please enter quantity of item bought”
Get itemQuantity
Get itemPrice
End GetInput

Module CalculateTotalPrice (itemQuantity As Integer,itemPrice As Real) As Real
Declare itemTotal As Real
itemTotal = itemQuantity * itemPrice
Return itemTotal
End CalculateTotalPrice

Module DisplayResult(itemName As String,itemTotal As Real)
Display “The total price of “,itemName, “would be “, itemTotal
End Module

I need to do this • Additional Requirements: The owner of the store now wants additional features for his application. He now wants to be able to give discounts to people who purchase more than 4 of a single item. The discount should apply to that item only and should be 10%. He also wants to be able to add tax, the current tax rate is 7.5 % Finally he wants to be able to continue to add new items to one order. When he is done entering the items for the order he should be able to see what the subtotal is, what the final tax is and what the final total is. This should be the only time the subtotal is displayed. if you could help me with this and also need to do this:

Generate a set of test inputs and expected results for the Checkout Application. You will create test cases as discussed in the learning lab on Test Cases. I need help asap and it is for my it/210 class
Hi

I am Coding Guru and today, I will be trying my best to solve your issue.

I can help you with this, do you need pseudocode for the above?
Customer: replied 3 years ago.

well the pseudo code is there just need to add the additional information of Additional Requirements: The owner of the store now wants additional features for his application. He now wants to be able to give discounts to people who purchase more than 4 of a single item. The discount should apply to that item only and should be 10%. He also wants to be able to add tax, the current tax rate is 7.5 % Finally he wants to be able to continue to add new items to one order. When he is done entering the items for the order he should be able to see what the subtotal is, what the final tax is and what the final total is. This should be the only time the subtotal is displayed. if you could help me with this and also need to do this: and to also to

Generate a set of test inputs and expected results for the Checkout Application. You will create test cases as discussed in the learning lab on Test Cases. I need help asap and it is for my it/210 class

I can help with the pseudocode. Is that fine with you?
Customer: replied 3 years ago.

yeah and are you going to help me with generating a set of test inputs for the check out application

I can try that if you can give me a sample.
Customer: replied 3 years ago.

was given this example from my teacher to follow it like this

Test Case 1: Valid bidder and valid dollar amount

Inputs:
Bidder ID = 59088
Bid Amount = 110

Expected Outputs:

ok, are you familiar with for, while loops?
Customer: replied 3 years ago.

yes I am familiar with it

Great, please wait for sometime, I will prepare the code.
Customer: replied 3 years ago.

ok are you going to be able to generate the set of test inputs as well?

Let me write the code first, I will let you know after that. Thank you.
Customer: replied 3 years ago.

ok

This is the pseudocode:

Module Main
Declare itemName As String
Declare itemQuantity As Integer
Declare itemPrice As Real
Declare itemTotal As Real
Declare itemContinue As Char
Declare itemDiscount As Real
Declare itemSubTotal as Real
Declare itemTax as Real

While ((itemContinue ="y")
Call GetInput(itemName,itemQuantity,itemPrice)
If itemQuantity > 4
itemDiscount = Call CalcDiscount(itemPrice, itemQuantity)
itemTotal = Call CalculateTotalPrice(itemQuantity,itemPrice) - itemDiscount
Else
itemTotal = Call CalculateTotalPrice(itemQuantity,itemPrice)
End If
itemSubTotal = itemSubTotal + itemTotal

Display "Do you want to continue? Y = yes, n = no"
End While

itemTax = Call addTax(itemSubTotal As Real)
Display "Final Sub Total is: ", itemSubTotal
Display "Final Tax is: ", itemTax
Display "Final Total is: ", itemSubTotal + itemTax

Call DisplayResult(itemName,itemTotal)
End Main

Module GetInput (itemName As String,itemQuantity As Integer,itemPrice As Real)
Get itemName
Display “Please enter quantity of item bought”
Get itemQuantity
Get itemPrice
End GetInput

Module CalculateTotalPrice (itemQuantity As Integer,itemPrice As Real) As Real
Declare itemTotal As Real
itemTotal = itemQuantity * itemPrice
Return itemTotal
End CalculateTotalPrice

Module DisplayResult(itemName As String,itemTotal As Real)
Display “The total price of “,itemName, “would be “, itemTotal
End Module

Module CalcDiscount(itemPrice As Real, itemQuantity As Real)
Return (itemPrice * itemQuantity) * .1
End Module

Return itemTotal * .75
End Module
Customer: replied 3 years ago.

are you going to generate

Generate a set of test inputs and expected results for the Checkout Application. You will create test cases as discussed in the learning lab on Test Cases.

Customer: replied 3 years ago.

are you going to

Generate a set of test inputs and expected results for the Checkout Application. You will create test cases as discussed in the learning lab on Test Cases.

Customer: replied 3 years ago.
Relist: Other.
I need to generate Generate a set of test inputs and expected results for the Checkout Application example like this Test Case 1: Valid bidder and valid dollar amount

Inputs:
Bidder ID = 59088
Bid Amount = 110

Expected Outputs:

How many test cases are required?
Customer: replied 3 years ago.

I need it for this pseudocode Module Main
Declare itemName As String
Declare itemQuantity As Integer
Declare itemPrice As Real
Declare itemTotal As Real
Declare itemContinue As Char
Declare itemDiscount As Real
Declare itemSubTotal as Real
Declare itemTax as Real

While ((itemContinue ="y")
Call GetInput(itemName,itemQuantity,itemPrice)
If itemQuantity > 4
itemDiscount = Call CalcDiscount(itemPrice, itemQuantity)
itemTotal = Call CalculateTotalPrice(itemQuantity,itemPrice) - itemDiscount
Else
itemTotal = Call CalculateTotalPrice(itemQuantity,itemPrice)
End If
itemSubTotal = itemSubTotal + itemTotal

Display "Do you want to continue? Y = yes, n = no"
End While

itemTax = Call addTax(itemSubTotal As Real)
Display "Final Sub Total is: ", itemSubTotal
Display "Final Tax is: ", itemTax
Display "Final Total is: ", itemSubTotal + itemTax

Call DisplayResult(itemName,itemTotal)
End Main

Module GetInput (itemName As String,itemQuantity As Integer,itemPrice As Real)
Get itemName
Display “Please enter quantity of item bought”
Get itemQuantity
Get itemPrice
End GetInput

Module CalculateTotalPrice (itemQuantity As Integer,itemPrice As Real) As Real
Declare itemTotal As Real
itemTotal = itemQuantity * itemPrice
Return itemTotal
End CalculateTotalPrice

Module DisplayResult(itemName As String,itemTotal As Real)
Display “The total price of “,itemName, “would be “, itemTotal
End Module

Module CalcDiscount(itemPrice As Real, itemQuantity As Real)
Return (itemPrice * itemQuantity) * .1
End Module

Return itemTotal * .75
End Module

I need like 8-10 of them if possible

Ok, And how much time is left?
Customer: replied 3 years ago.

for my assignment to be turned in

Yes, how much time is left for the deadline of your assignment to turn in?
Customer: replied 3 years ago.

i have until sunday

Ok Can you be online for next 1 hr. than I can provide you Test cases now itself.

And There is One flaw in Pseudocode so I will change that as well....
Customer: replied 3 years ago.

ok and yes I will be on for the next hr.

6 Test Cases are fine?? Because they cover all the parts of Pseudocodes.
Customer: replied 3 years ago.

yea that is fine k and did you fix the part of the pseudocode

Yes I will provide you both in next 15 min.
Customer: replied 3 years ago.

ok