You have been tasked with designing the ordering software for a standalone ticketing kiosk. The system...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
You have been tasked with designing the ordering software for a standalone ticketing kiosk. The system consists of a dedicated console such as the one pictured below: BRINGE spesya 0 The software will need to perform the following tasks: • Accept orders for multiple tickets • Calculate a total order price Inform the user of the total price • Prompt the user for order confirmation Activate Go to Setti The software will need to perform the following tasks: • Accept orders for multiple tickets • Calculate a total order price • Inform the user of the total price • Prompt the user for order confirmation The payment and receipt subsystems will be handled by another team. You only need to design the ordering interface. Pricing This system will be used for exactly one event / location, so the price calculations will be embedded into the software and are as follows: Ticket Adult Student Child Price $24.00 (75% of Adult price) (50% of Adult price) A 10% discount is applied to any order in excess of $100 Task A1 (15%) Write a pseudocode function which calculates the price of a ticket order according to the price table above. The function should take 3 inputs: • The number of adult tickets requested • The number of student tickets requested • The number of child tickets requested The return value of the function should be the total price of the order. Function header example: FUNCTION calculatePrice (adultCount, student Count, childCount) set FullPrice to 24.00 Task A2 (35%) Write a pseudocode program which the user will interact with to place a ticket order. The program should ask the user for the number of tickets required for each group (Adult, Student, Child), and then use the calculate Price function created in Part A to determine the price. A message containing the total price should be displayed, along with a chance for the user to confirm or cancel the order. An example of a running program's output might look like: Herding Cats: The Musical > Do you want to place a ticket order? Y > How many Adults? 2 > How many Students? 1 > How many Children? 1 > Total price is $78, Enter "Y" to confirm N Herding Cats: The Musical > Do you want to place a ticket order? Y > How many Adults? 4 > How many Students? 1 > How many Children? 4 > Total price is $145.80, Enter "Y" to confirm Y > Order Placed. Thank You! Herding Cats: The Musical > Do you want to place a ticket order? Part 2: ISBN Identifiers Introduction An International Standard Book Number (ISBN) is an identifier for books, which is intended to be unique around the world. This allows anyone to identify a specific book by a numeric code, regardless of written language or publication country. ISBNs were designed to be easily verified. That is, the process used to check whether an ISBN is valid or not is computationally fast and does not require a complex algorithm. ISBN identifiers exist as either 10-digit codes, or 13-digit codes. For this assignment we will docus on verifying 10-digit ISBN codes 9|782123 456803 ISBN-10: 2-1234-5680-2 ISBN-13: 978-2-1234-5680-3 ISBN Validity Check In order to determine whether a 10-digit ISBN number is valid or invalid, a simple algorithm can be applied: • The last digit of an ISBN number is a check digit • The first 9 digits are each multiplied by a weighting, determined by the order they appear o The first (left) digit is multiplied by 10 o The next digit is multiplied by 9 O The last (right) digit is multiplied by 2 o The check digit is not multiplied • The new multiplied values are added together, and then divided by 11 • If the remainder of division is not zero, then subtract the remainder from 11 • If the check digit is equal to this value, then this is a valid ISBN number • If the check digit is not equal to this value, then this is not a valid ISBN number The algorithm is explained in more detail here: https://wikipedia.org/wiki/International_Standard_Book_Number#Check_digits Task B (50%) Write a pseudocode program which performs the following task: 1. The program should ask the user to input an ISBN number as an ASCII string o If the user input is 'q', the program should exit o Otherwise, treat the input as an ISBN number to be checked 2. The program should check the user's input and print a message stating whether or not it is a valid ISBN number 3. The program should then repeat from step 1 Some of the steps your program will need to perform: • Convert the ASCII characters to numeric values in order to perform arithmetic on them. o Hint: Consult an ASCII table; what is the difference between the ASCII character "1", and the numeric value 1? Is this the same for all digits 1-9? o Check the user input for formatting errors: ▪ Must have a length of exactly 10 ▪ Must contain only the digits 0-9, no symbols or letters o Implement the "ISBN Validity Check" algorithm described above You have been tasked with designing the ordering software for a standalone ticketing kiosk. The system consists of a dedicated console such as the one pictured below: BRINGE spesya 0 The software will need to perform the following tasks: • Accept orders for multiple tickets • Calculate a total order price Inform the user of the total price • Prompt the user for order confirmation Activate Go to Setti You have been tasked with designing the ordering software for a standalone ticketing kiosk. The system consists of a dedicated console such as the one pictured below: BRINGE spesya 0 The software will need to perform the following tasks: • Accept orders for multiple tickets • Calculate a total order price Inform the user of the total price • Prompt the user for order confirmation Activate Go to Setti The software will need to perform the following tasks: • Accept orders for multiple tickets • Calculate a total order price • Inform the user of the total price • Prompt the user for order confirmation The payment and receipt subsystems will be handled by another team. You only need to design the ordering interface. Pricing This system will be used for exactly one event / location, so the price calculations will be embedded into the software and are as follows: Ticket Adult Student Child Price $24.00 (75% of Adult price) (50% of Adult price) A 10% discount is applied to any order in excess of $100 Task A1 (15%) Write a pseudocode function which calculates the price of a ticket order according to the price table above. The function should take 3 inputs: • The number of adult tickets requested • The number of student tickets requested • The number of child tickets requested The return value of the function should be the total price of the order. The software will need to perform the following tasks: • Accept orders for multiple tickets • Calculate a total order price • Inform the user of the total price • Prompt the user for order confirmation The payment and receipt subsystems will be handled by another team. You only need to design the ordering interface. Pricing This system will be used for exactly one event / location, so the price calculations will be embedded into the software and are as follows: Ticket Adult Student Child Price $24.00 (75% of Adult price) (50% of Adult price) A 10% discount is applied to any order in excess of $100 Task A1 (15%) Write a pseudocode function which calculates the price of a ticket order according to the price table above. The function should take 3 inputs: • The number of adult tickets requested • The number of student tickets requested • The number of child tickets requested The return value of the function should be the total price of the order. Function header example: FUNCTION calculatePrice (adultCount, student Count, childCount) set FullPrice to 24.00 Task A2 (35%) Write a pseudocode program which the user will interact with to place a ticket order. The program should ask the user for the number of tickets required for each group (Adult, Student, Child), and then use the calculate Price function created in Part A to determine the price. A message containing the total price should be displayed, along with a chance for the user to confirm or cancel the order. An example of a running program's output might look like: Herding Cats: The Musical > Do you want to place a ticket order? Y > How many Adults? 2 > How many Students? 1 > How many Children? 1 > Total price is $78, Enter "Y" to confirm N Function header example: FUNCTION calculatePrice (adultCount, student Count, childCount) set FullPrice to 24.00 Task A2 (35%) Write a pseudocode program which the user will interact with to place a ticket order. The program should ask the user for the number of tickets required for each group (Adult, Student, Child), and then use the calculate Price function created in Part A to determine the price. A message containing the total price should be displayed, along with a chance for the user to confirm or cancel the order. An example of a running program's output might look like: Herding Cats: The Musical > Do you want to place a ticket order? Y > How many Adults? 2 > How many Students? 1 > How many Children? 1 > Total price is $78, Enter "Y" to confirm N Herding Cats: The Musical > Do you want to place a ticket order? Y > How many Adults? 4 > How many Students? 1 > How many Children? 4 > Total price is $145.80, Enter "Y" to confirm Y > Order Placed. Thank You! Herding Cats: The Musical > Do you want to place a ticket order? Herding Cats: The Musical > Do you want to place a ticket order? Y > How many Adults? 4 > How many Students? 1 > How many Children? 4 > Total price is $145.80, Enter "Y" to confirm Y > Order Placed. Thank You! Herding Cats: The Musical > Do you want to place a ticket order? Part 2: ISBN Identifiers Introduction An International Standard Book Number (ISBN) is an identifier for books, which is intended to be unique around the world. This allows anyone to identify a specific book by a numeric code, regardless of written language or publication country. ISBNs were designed to be easily verified. That is, the process used to check whether an ISBN is valid or not is computationally fast and does not require a complex algorithm. ISBN identifiers exist as either 10-digit codes, or 13-digit codes. For this assignment we will docus on verifying 10-digit ISBN codes 9|782123 456803 ISBN-10: 2-1234-5680-2 ISBN-13: 978-2-1234-5680-3 Part 2: ISBN Identifiers Introduction An International Standard Book Number (ISBN) is an identifier for books, which is intended to be unique around the world. This allows anyone to identify a specific book by a numeric code, regardless of written language or publication country. ISBNs were designed to be easily verified. That is, the process used to check whether an ISBN is valid or not is computationally fast and does not require a complex algorithm. ISBN identifiers exist as either 10-digit codes, or 13-digit codes. For this assignment we will docus on verifying 10-digit ISBN codes 9|782123 456803 ISBN-10: 2-1234-5680-2 ISBN-13: 978-2-1234-5680-3 ISBN Validity Check In order to determine whether a 10-digit ISBN number is valid or invalid, a simple algorithm can be applied: • The last digit of an ISBN number is a check digit • The first 9 digits are each multiplied by a weighting, determined by the order they appear o The first (left) digit is multiplied by 10 o The next digit is multiplied by 9 O The last (right) digit is multiplied by 2 o The check digit is not multiplied • The new multiplied values are added together, and then divided by 11 • If the remainder of division is not zero, then subtract the remainder from 11 • If the check digit is equal to this value, then this is a valid ISBN number • If the check digit is not equal to this value, then this is not a valid ISBN number The algorithm is explained in more detail here: https://wikipedia.org/wiki/International_Standard_Book_Number#Check_digits ISBN Validity Check In order to determine whether a 10-digit ISBN number is valid or invalid, a simple algorithm can be applied: • The last digit of an ISBN number is a check digit • The first 9 digits are each multiplied by a weighting, determined by the order they appear o The first (left) digit is multiplied by 10 o The next digit is multiplied by 9 O The last (right) digit is multiplied by 2 o The check digit is not multiplied • The new multiplied values are added together, and then divided by 11 • If the remainder of division is not zero, then subtract the remainder from 11 • If the check digit is equal to this value, then this is a valid ISBN number • If the check digit is not equal to this value, then this is not a valid ISBN number The algorithm is explained in more detail here: https://wikipedia.org/wiki/International_Standard_Book_Number#Check_digits Task B (50%) Write a pseudocode program which performs the following task: 1. The program should ask the user to input an ISBN number as an ASCII string o If the user input is 'q', the program should exit o Otherwise, treat the input as an ISBN number to be checked 2. The program should check the user's input and print a message stating whether or not it is a valid ISBN number 3. The program should then repeat from step 1 Some of the steps your program will need to perform: • Convert the ASCII characters to numeric values in order to perform arithmetic on them. o Hint: Consult an ASCII table; what is the difference between the ASCII character "1", and the numeric value 1? Is this the same for all digits 1-9? o Check the user input for formatting errors: ▪ Must have a length of exactly 10 ▪ Must contain only the digits 0-9, no symbols or letters o Implement the "ISBN Validity Check" algorithm described above Task B (50%) Write a pseudocode program which performs the following task: 1. The program should ask the user to input an ISBN number as an ASCII string o If the user input is 'q', the program should exit o Otherwise, treat the input as an ISBN number to be checked 2. The program should check the user's input and print a message stating whether or not it is a valid ISBN number 3. The program should then repeat from step 1 Some of the steps your program will need to perform: • Convert the ASCII characters to numeric values in order to perform arithmetic on them. o Hint: Consult an ASCII table; what is the difference between the ASCII character "1", and the numeric value 1? Is this the same for all digits 1-9? o Check the user input for formatting errors: ▪ Must have a length of exactly 10 ▪ Must contain only the digits 0-9, no symbols or letters o Implement the "ISBN Validity Check" algorithm described above
Expert Answer:
Answer rating: 100% (QA)
Answers include stdio h include string h void cipherint iint c int findMin void makeArrayintint char ... View the full answer
Related Book For
Intermediate Accounting
ISBN: 978-0132162302
1st edition
Authors: Elizabeth A. Gordon, Jana S. Raedy, Alexander J. Sannella
Posted Date:
Students also viewed these programming questions
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
Describe how you plan to allocate your budget to each promotional activity. Provide a brief rationale. First, when developing a marketing budget plan, you want to start with the total budget...
-
During 2016, Learphart Corporation contributes $35,000 to its qualified pension plan. Normal cost for this year is $15,000, and the amount necessary to pay retirement benefits on behalf of employee...
-
MVD News Inc. sells one-year newspaper subscriptions for $72 cash each. Newspapers are delivered daily. The average cost of producing and delivering papers each month is $3 paid in cash at the time...
-
Refer to the information in Exercise 24-3 and assume instead that double-declining depreciation is applied. Compute the machines payback period (ignore taxes). (Round the payback period to three...
-
The adjusted trial balance for Chiara Company as of December 31, 2013, follows. Required 1. Use the information in the adjusted trial balance to prepare (a) The income statement for the year ended...
-
Explain Suppose the government grants $2,500 per child to households that have more than two children. Draw a graph and explain whether these child allowances influence the fertility behavior of...
-
Auditor Changes at Daily Journal Corporation Charlie Munger is vice chairman of Berkshire Hathaway Inc. and is informally known as War- ren Buffett's "right arm." Munger also serves as chairman of...
-
Find the unit tangent vector T and the principal unit normal vector N for the following parameterized curve. Verify that T| = N = 1 and T N = 0. r(t) = (13 cos t,13 sin t)
-
In March of 2016, Alphabet (the parent of Google) announced they plan to sell their Boston Dynamics business. Boston Dynamics builds high end legged robots). Alphabet's executives said they wanted...
-
For the question below, applicants can earn up to 3 points if your proposal provides a specific and compelling rationale as to how it will help in overcoming staffing, training, food purchasing,...
-
Which model proposes that, while a country pursues economic development, income inequality will grow during, but once the country is adequately "developed" or "industrialized" economic inequality...
-
Assume you are given the responsibility to design two OS systems, a Network Operating System and a Distributed Operating System. Indicate the primary differences between these two systems....
-
What is market equilibrium? Does the market always reach equilibrium? Explain If there is surplus of houses in the market, then the price of houses will rise.
-
MTN Ghana Ltd acquired land and building on 1st January 2016 for 40million(including 15million in respect of the land). The asset was revalued on the 31st/12/2017 to 43million(including 16.6million)...
-
Currently, there are five concepts of food stands, including: hot dogs, soft pretzels, turkey legs, sandwich wraps, and funnel cakes. This approach will double the existing number of food stands...
-
Rays Sporting Goods, Inc. shipped aluminum baseball bats on consignment to Mar-tin Stores on April 6, 2016. The total cost of the bats is $ 31,000 with a retail value of $ 50,000. Martin agrees to...
-
Answer the following independent questions: a. You borrowed $ 15,000 from a friend and promised to repay the loan in seven equal annual installments. Installments begin at the end of the first year....
-
Capital Lease, Lessee, Lessor, Annuity Due, Guaranteed Residual Value. Denis Leasing Company recently leased machinery to Banks Building Associates. The five-year lease contract requires minimum...
-
The "fun size" of a Snickers bar is supposed to weigh 20 grams. Because the penalty for selling candy bars under their advertised weight is severe, the manufacturer calibrates the machine so the mean...
-
According to the American Community Survey, the mean travel time to work in Collin County, Texas, in 2013 was 27.5 minutes. The Department of Transportation reprogrammed all the traffic lights in...
-
(a) Determine the critical value(s) for a right-tailed test of a population mean at the \(\alpha=0.01\) level of significance with 15 degrees of freedom. (b) Determine the critical value(s) for a...
Study smarter with the SolutionInn App