
Concept explainers
I need help please to write a program in Assembly
algorithm:
1. In the main:
a) ask customer for the number of items that they are purchasing
b) check to see it is less than or equal to 20 items
c) pass than number to FillPriceArray subroutine and call FillPriceArray subroutine.
2. FillPriceArray subroutine:
a) fill the array and accumulate the prices sub total
b) return the sub total to main.
3. In the main:
a) ask customer for the number of coupons (it should be the same as the number of
items)
b) pass the coupon number to FillCouponArray subroutine and call FillCouponArray
subroutine to fill the CouponArray.
4. FillCouponArray subroutine:
a) fills the array and accumulate the discount total
*get the coupon amount:
The coupon should be less than item price and coupon should not be more than $10
if the coupon is more than item price or exceed $10 then you place 0 in the
CouponArray for that coupon.
b) return coupon sum to main
5. In the main:
a) calculate the total charge by subtracting the total price from total discount coupons
b) out put the total charge with a thank you massage on the screen.


Trending nowThis is a popular solution!
Step by stepSolved in 4 steps

- please code in pythonThe library needs a program to store books’ information. Write a Python module manage.py that gets thebook information from the user store and prints them. The program will get the book's type, title,publication year, first author's name, and publisher name. The user can enter any book type, and theprogram should be able to store all of the related information and retrieve them. The prompt should showuntil the user enters 'done'. Next, the program should print books information based on the "type" and thepublication "year".The required spacing for each column is 15.Note: Inputs can be in either lower or upper case. However, the first letter of each word of the outputshould be capitalized.arrow_forwardWritten in C Please Create a calculator program as follows.Create a menu function named kitten ( function should display the menu options and return the userselection with the following options. Prototype int kitten(void); ) :1 to calculate the number of real solutions for a quadratic equationPrototype: void fluffy(float a, float b, float c);2 to calculate the resistance in series for two or more resistors (no limit on number of resistors)Prototype: float series(float a, float b);3 to calculate the resistance in parallel for two or more resistors (no limit on number of resistors)Prototype: float parallel(float a, float b);4 to calculate the total of raising a value to an integer power value.Prototype float frisky(float x, int y);5 to exit programRepeatedly display the menu after each calculation until option 5 is entered.YOU HAVE TO CREATE AND USE ALL FIVE FUNCTIONS.Option 1:Ask the user for and store the three numerical coefficients of a quadratic equation and store them inthree…arrow_forwardSubject: programming language : c++ Question : Jane has opened a new fitness center with charges of 2500 per month so the cost to become a member of a fitness center is as follow :1.For senior citizens discount is 30 %2. For young one the discount is 15 %3. For adult the discount is 20% Write a menu driven program (using structure c++) thata. Add a new memberb. Display the general information on about the fitness center and its chargesc. Determine the cost of a new membershipd. At any time show the total money made.Use appropriate parameters to pass information on and out of a function.arrow_forward
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education





