Answered step by step
Verified Expert Solution
Question
1 Approved Answer
can someone help me re-write this as a pseudocode and as a flow chart. so it can meet all the requierments In the box beiow,
can someone help me re-write this as a pseudocode and as a flow chart. so it can meet all the requierments
In the box beiow, aeserbe the purpose of the program. Vou mant incluete a detaipes descrigtion with at letst two complete sentences. Program description: What A Anericar favorite nyeal? if you ce the mast people, priza was probably the fref thing that came io mind. Piza is one of the few meals that almost everyone loves. This prosarn will culcalato hew many pizza boses aro nooded and the botal price to pay. 3. Sample Rure If you are deagring your own program, yoa will start with a sample run. Imagine a user is funne your progam - whut wil they sce? What nputs do you expect, and what wit be the outpuss from the ghen inputs? Choose fest data you wis bse to keit you program. Calculate and show the expoctod ouputh. Use the sampie nun to tost your program. Gample nun; Welonme to the pirra Culculator Ever number of pecilo: 12. Number of Nlices needed: 24 Numeter of purat borees to onder? ?. Total grice 52950 Thank you for your order. 4. Ajgorithric Design Before you bogin oosing you must first pien out the logle and mink about what dath you wal ins to tent your program for correctness All programmers plan before coding - this strees a lot of tine and trustration Use the steps below to idersfy the inpult and outpota, colcuiabons, and axpe netoded to solve the protlom c. What calculotors do you need to do to transform inputs into outputs? List at formelas needed, if applicable if tiere are no calculitions needed, state there are ro calculations for this aigorithm Noes nescod a num_ peoplos 2 . numb_ot pitra = sices neciled /12, Totd_price a num_of_pizat "14 95: d. Dosign the loge of your program uaing pacudocode of flowcharts. Here is where you would use condiborials, toops of functore (ff applicucie) and list the steps in transformang hokat into outputs. Waik terough your logic stepa with the lest data form the assignment document or the sample run above. Pseudocode: 1. Number of poopin. 12 2. To find the rumber of pora sices needod, fultply the number of people by 2 . 3. To fnd the cumber of prora nceded, ovide the number of alices by 12 ( 12 alices a a. pirra bexh 4. to fed out the total price for al the pura bonet, muttply the number of pirras by 14 95 Flow chart: 5. Pseudocode Syritax Prition fidtign the input ard but,nut section is not feed an cocrectly look at the sample ta compare and conect. In the box beiow, aeserbe the purpose of the program. Vou mant incluete a detaipes descrigtion with at letst two complete sentences. Program description: What A Anericar favorite nyeal? if you ce the mast people, priza was probably the fref thing that came io mind. Piza is one of the few meals that almost everyone loves. This prosarn will culcalato hew many pizza boses aro nooded and the botal price to pay. 3. Sample Rure If you are deagring your own program, yoa will start with a sample run. Imagine a user is funne your progam - whut wil they sce? What nputs do you expect, and what wit be the outpuss from the ghen inputs? Choose fest data you wis bse to keit you program. Calculate and show the expoctod ouputh. Use the sampie nun to tost your program. Gample nun; Welonme to the pirra Culculator Ever number of pecilo: 12. Number of Nlices needed: 24 Numeter of purat borees to onder? ?. Total grice 52950 Thank you for your order. 4. Ajgorithric Design Before you bogin oosing you must first pien out the logle and mink about what dath you wal ins to tent your program for correctness All programmers plan before coding - this strees a lot of tine and trustration Use the steps below to idersfy the inpult and outpota, colcuiabons, and axpe netoded to solve the protlom c. What calculotors do you need to do to transform inputs into outputs? List at formelas needed, if applicable if tiere are no calculitions needed, state there are ro calculations for this aigorithm Noes nescod a num_ peoplos 2 . numb_ot pitra = sices neciled /12, Totd_price a num_of_pizat "14 95: d. Dosign the loge of your program uaing pacudocode of flowcharts. Here is where you would use condiborials, toops of functore (ff applicucie) and list the steps in transformang hokat into outputs. Waik terough your logic stepa with the lest data form the assignment document or the sample run above. Pseudocode: 1. Number of poopin. 12 2. To find the rumber of pora sices needod, fultply the number of people by 2 . 3. To fnd the cumber of prora nceded, ovide the number of alices by 12 ( 12 alices a a. pirra bexh 4. to fed out the total price for al the pura bonet, muttply the number of pirras by 14 95 Flow chart: 5. Pseudocode Syritax Prition fidtign the input ard but,nut section is not feed an cocrectly look at the sample ta compare and conect Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started