How JustAnswer Works:
  • Ask an Expert
    Experts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
  • Get a Professional Answer
    Via email, text message, or notification as you wait on our site.
    Ask follow up questions if you need to.
  • 100% Satisfaction Guarantee
    Rate the answer you receive.
Ask Raj Your Own Question
Raj
Raj, Engineer
Category: Homework
Satisfied Customers: 1290
Experience:  4 + Experiance in IT Industry
16752232
Type Your Homework Question Here...
Raj is online now
A new question is answered every 9 seconds

ok here is my pseudocode Main ModuleDeclare itemName As StringDeclare

This answer was rated:

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)
Display “Please enter item Name”
Get itemName
Display “Please enter quantity of item bought”
Get itemQuantity
Display “Please enter item price”
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

Welcome to JustAnswer.com

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 4 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 4 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 4 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:


Your bid was successful.


 

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

yes I am familiar with it

Great, please wait for sometime, I will prepare the code.
Customer: replied 4 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 4 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)
Display “Please enter item Name”
Get itemName
Display “Please enter quantity of item bought”
Get itemQuantity
Display “Please enter item price”
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

Module addTax (itemTotal As Real)
Return itemTotal * .75
End Module
Customer: replied 4 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 4 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 4 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:

Your bid was successful.
How many test cases are required?
Customer: replied 4 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)
Display “Please enter item Name”
Get itemName
Display “Please enter quantity of item bought”
Get itemQuantity
Display “Please enter item price”
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

Module addTax (itemTotal As Real)
Return itemTotal * .75
End Module



I need like 8-10 of them if possible

Ok, And how much time is left?
Customer: replied 4 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 4 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 4 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 4 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 4 years ago.

ok

THIS ANSWER IS LOCKED!

You need to spend $3 to view this post. Add Funds to your account and buy credits.
Raj, Engineer
Category: Homework
Satisfied Customers: 1290
Experience: 4 + Experiance in IT Industry
Raj and other Homework Specialists are ready to help you