Already have an account? Get multiple benefits of using own account!
Login in your account..!
Remember me
Don't have an account? Create your account in less than a minutes,
Forgot password? how can I recover my password now!
Enter right registered email to receive password!
Enhance the pseudocode in the attachment by using arrays and loops. Also, instead of hardcoding the product names within the program, ask the user to enter the product names in addition to the prices.
You can use char array products[5][40] and float array prices[5] to store the names and prices respectively (use "char products[6][40]" and "float prices[6]" if you want to simplify the code at the expense of a few more bytes of memory). Feel free to define additional arrays if needed.
main(): prompt the user to enter the price for appleread apple_price prompt the user to enter the price for bananaread banana_price prompt the user to enter the price for grapesread grapes_price prompt the user to enter the price for pearsread pears_price prompt the user to enter the price for tomatoread tomato_price do prompt whether the user wants to do checkout read response if response is yes then invoke checkout() endifwhile response is yes; print "Thanks for using checkout program". checkout(): initialize total to 0 do list the products print 1. apples print 2. banana print 3. grapes print 4. pears print 5. tomatos prompt the user to select a product or enter 0 for complete checkout read selection if selection > 0 then prompt the user to enter weight read weight // you can alternatively use select ... case ... end structure when coding. if selection is 1 then add (weight * apple_price) to total endif if selection is 2 then add (weight * banana_price) to total endif if selection is 3 then add (weight * grapes_price) to total endif if selection is 4 then add (weight * pears_price) to total endif if selection is 5 then add (weight * tomato_price) to total endif endifwhile selection is not 0; if total > 50 apply 5% discount output the discount and the new totalelse output totalendif
Think about sending a document of F bytes over a path of Q links. Each link transmits at R bps. The network is lightly loaded so that there are no queuing delays.
Assume you would like to save the digital pictures you took on vacation onto your hard drive, but it would take up too much storage space.
Define a class named Document that have an instance variable of type String named text that stores any textual content for the file. Design a technique named toString that returns the text field and also include a method to set this value.
Write a function that counts the number of items of a given key on a list. Write a procedure with the heading: procedure Reverse.
Find average in binary tree using preorder traversal example for the function - Provide answer this question with example.
a program that performs Depth First Search in a graph
Your analysis phase of the SRS project went well and your team feels good about their Functional, Structural, and Behavioral models. You also discussed the result of your analysis with the School of Prosperity (SoP) administration and they seem to be..
Illustrate that if you were given a polynomial time algorithm for determining whether two rooted directed acyclic graphs are isomorphic, then polynomial time algorithm for testing.
part 1 - report write a 2000-word report that describes a suitable methodology from the literature for the purpose of
Discuss why does the Internet need HTTP, TCP, IP and DNS? Explain why is not the Internet Protocol enough to do the job? Please reply to these specific points of confusion.
Are the following TriMedia instructions allowed, and if not, why not? Integer add, integer subtract, load, floating add, load immediate. Integer subtract, integer multiply, load immediate, shift, shift.
Draw a defining diagram (IPO). Draw a structure chart. Write a program using pseudocode and modularization
Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!
whatsapp: +1-415-670-9521
Phone: +1-415-670-9521
Email: [email protected]
All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd