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

Resolved Question:

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
Submitted: 1 year ago.
Category: Homework
Expert:  Homework Help replied 1 year ago.
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 1 year 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

Expert:  Homework Help replied 1 year ago.
I can help with the pseudocode. Is that fine with you?
Customer: replied 1 year ago.

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

Expert:  Homework Help replied 1 year ago.
I can try that if you can give me a sample.
Customer: replied 1 year 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.


 

Expert:  Homework Help replied 1 year ago.
ok, are you familiar with for, while loops?
Customer: replied 1 year ago.

yes I am familiar with it

Expert:  Homework Help replied 1 year ago.
Great, please wait for sometime, I will prepare the code.
Customer: replied 1 year ago.

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

Expert:  Homework Help replied 1 year ago.
Let me write the code first, I will let you know after that. Thank you.
Customer: replied 1 year ago.

ok

Expert:  Homework Help replied 1 year ago.
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 1 year 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 1 year 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 1 year 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.
Expert:  Raj replied 1 year ago.
How many test cases are required?
Customer: replied 1 year 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

Expert:  Raj replied 1 year ago.
Ok, And how much time is left?
Customer: replied 1 year ago.

for my assignment to be turned in


 

Expert:  Raj replied 1 year ago.
Yes, how much time is left for the deadline of your assignment to turn in?
Customer: replied 1 year ago.

i have until sunday

Expert:  Raj replied 1 year ago.
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 1 year ago.

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

Expert:  Raj replied 1 year ago.
6 Test Cases are fine?? Because they cover all the parts of Pseudocodes.
Customer: replied 1 year ago.

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

Expert:  Raj replied 1 year ago.
Yes I will provide you both in next 15 min.
Customer: replied 1 year ago.

ok

Expert:  Raj replied 1 year ago.
THIS ANSWER IS LOCKED!
You can view this answer by clicking here to Register or Login and paying $3.
If you've already paid for this answer, simply Login.
Raj, Engineer
Category: Homework
Satisfied Customers: 1259
Experience: 4 + Experiance in IT Industry
Raj and 12 other Homework Specialists are ready to help you

JustAnswer in the News:

 
 
 
Ask-a-doc Web sites: If you've got a quick question, you can try to get an answer from sites that say they have various specialists on hand to give quick answers... Justanswer.com.
JustAnswer.com...has seen a spike since October in legal questions from readers about layoffs, unemployment and severance.
Web sites like justanswer.com/legal
...leave nothing to chance.
Traffic on JustAnswer rose 14 percent...and had nearly 400,000 page views in 30 days...inquiries related to stress, high blood pressure, drinking and heart pain jumped 33 percent.
Tory Johnson, GMA Workplace Contributor, discusses work-from-home jobs, such as JustAnswer in which verified Experts answer people’s questions.
I will tell you that...the things you have to go through to be an Expert are quite rigorous.
 
 
 

What Customers are Saying:

 
 
 
  • Wonderful service, prompt, efficient, and accurate. Couldn't have asked for more. I cannot thank you enough for your help. Mary C. Freshfield, Liverpool, UK
< Last | Next >
  • Wonderful service, prompt, efficient, and accurate. Couldn't have asked for more. I cannot thank you enough for your help. Mary C. Freshfield, Liverpool, UK
  • This expert is wonderful. They truly know what they are talking about, and they actually care about you. They really helped put my nerves at ease. Thank you so much!!!! Alex Los Angeles, CA
  • Thank you for all your help. It is nice to know that this service is here for people like myself, who need answers fast and are not sure who to consult. GP Hesperia, CA
  • I couldn't be more satisfied! This is the site I will always come to when I need a second opinion. Justin Kernersville, NC
  • Just let me say that this encounter has been entirely professional and most helpful. I liked that I could ask additional questions and get answered in a very short turn around. Esther Woodstock, NY
  • Thank you so much for taking your time and knowledge to support my concerns. Not only did you answer my questions, you even took it a step further with replying with more pertinent information I needed to know. Robin Elkton, Maryland
  • He answered my question promptly and gave me accurate, detailed information. If all of your experts are half as good, you have a great thing going here. Diane Dallas, TX
 
 
 

Meet The Experts:

 
 
 
  • Manal Elkhoshkhany

    Tutor

    Satisfied Customers:

    4520
    More than 5000 online tutoring sessions.
< Last | Next >
  • http://ww2.justanswer.com/uploads/BU/BusinessTutor/2012-2-2_115741_Kouki2.64x64.jpg Manal Elkhoshkhany's Avatar

    Manal Elkhoshkhany

    Tutor

    Satisfied Customers:

    4520
    More than 5000 online tutoring sessions.
  • http://ww2.justanswer.com/uploads/LI/lindaus/2012-6-10_04811_IMG20120609164157.64x64.jpg Linda_us's Avatar

    Linda_us

    Finance, Accounts & Homework Tutor

    Satisfied Customers:

    3121
    Post Graduate Diploma in Management (MBA)
  • http://ww2.justanswer.com/uploads/ComputersGuru/2010-02-13_051118_Photo41.JPG LogicPro's Avatar

    LogicPro

    Engineer

    Satisfied Customers:

    3035
    Expert in Java C++ C C# VB Javascript Design SQL HTML
  • http://ww2.justanswer.com/uploads/lanis/2009-4-1_233717_phput9xef_c1pm.jpg Lani S.'s Avatar

    Lani S.

    Tutor

    Satisfied Customers:

    2457
    Registered Nurse, Internet Researcher, Private Tutor
  • http://ww2.justanswer.com/uploads/chooser77/2009-08-18_162025_Chris.jpg Chris M.'s Avatar

    Chris M.

    M.S.W. Social Work

    Satisfied Customers:

    2341
    Master's Degree, strong math and writing skills, experience in one-on-one tutoring (college English)
  • http://ww2.justanswer.com/uploads/JawaadAhmed/2009-6-27_12137_SIs_SHadi.jpg F. Naz's Avatar

    F. Naz

    Chartered Accountant

    Satisfied Customers:

    1975
    Experience with chartered accountancy
  • http://ww2.justanswer.com/uploads/JK/jkcpa/2011-1-16_182614_jkcpa.64x64.jpg Bizhelp's Avatar

    Bizhelp

    CPA

    Satisfied Customers:

    1873
    Bachelors Degree and CPA with Accounting work experience