SlideShare uma empresa Scribd logo
1 de 1
Baixar para ler offline
Restaurant Bill Instructions: Using MS Word, or any text editor, write the Pseudo-code for the
following scenario: 1. you finished a restaurant meal and need to pay the bill 2. the tip to be left
is 16.5% 3. the sales tax is 8.55% - Write the pseudo-code to perform the following tasks:
declare all necessary variables and constants (assigned values, i.e., tip / tax rates) accept input of
the bill amount calculate the amount of the tip (do not tip on the tax amount) calculate the
amount of the tax calculate the total bill display all the amounts, bill, tax, tip and total (bill + tip
and tax)
IIDeclare variables and constants DECLARE billAmount AS NUMERIC DECLARE tipRate AS
CONSTANT NUMERIC =0.165 DECLARE taxRate AS CONSTANT NUMERIC =0.0855
DECLARE tipAmount AS NUMERIC DECLARE taxAmount AS NUMERIC DECLARE
totalBill AS NUMERIC. I/Accept input of the bill amount ACCEPT billAmount //Calculate the
amount of the tip SET tipAmount = billAmount tipRate I/Calculate the amount of the tax SET
taxAmount = billAmount taxRate I/Calculate the total bill SET totalBill = billAmount +
tipAmount + taxAmount IIDisplay all the amounts: bill, tip, tax and total DISPLAY "Bill
Amount: $" + billAmount DISPLAY "Tip Amount: $" + tipAmount DISPLAY "Tax Amount:
$ " + taxAmount DISPLAY "Total Bill Amount: $ " + totalBill

Mais conteúdo relacionado

Semelhante a Restaurant Bill Instructions Using MS Word, or any text editor, writ.pdf

People. I need some help with this assignment that needs to be done .docx
People. I need some help with this assignment that needs to be done .docxPeople. I need some help with this assignment that needs to be done .docx
People. I need some help with this assignment that needs to be done .docxodiliagilby
 
Advanced accounting in Tally ERP 9
Advanced accounting in Tally ERP 9Advanced accounting in Tally ERP 9
Advanced accounting in Tally ERP 9Accounts Arabia
 
Free QuickBooks Pro, Premier Training 2013, 2014, 2015, 2016, 2017 Download
Free QuickBooks Pro, Premier Training 2013, 2014, 2015, 2016, 2017 DownloadFree QuickBooks Pro, Premier Training 2013, 2014, 2015, 2016, 2017 Download
Free QuickBooks Pro, Premier Training 2013, 2014, 2015, 2016, 2017 DownloadOgechi Ndukwe
 
How To Prepare A Worksheet - Bookkeeping
How To Prepare A Worksheet - BookkeepingHow To Prepare A Worksheet - Bookkeeping
How To Prepare A Worksheet - BookkeepingDivine Grace Martinez
 
QuickBooks Contractors Edition
QuickBooks Contractors EditionQuickBooks Contractors Edition
QuickBooks Contractors Editionquailrunventures
 
Unrealized Currency Gains or Losses in Odoo 15 Accounting
Unrealized Currency Gains or Losses in Odoo 15 AccountingUnrealized Currency Gains or Losses in Odoo 15 Accounting
Unrealized Currency Gains or Losses in Odoo 15 AccountingCeline George
 
Sap 1099 misc generic withholding tax reporting
Sap 1099 misc generic withholding tax  reportingSap 1099 misc generic withholding tax  reporting
Sap 1099 misc generic withholding tax reportingSURESH BABU MUCHINTHALA
 
What Is a Vat Number_ _ VAT Stand For _ VAT On Amazon.pdf
What Is a Vat Number_ _ VAT Stand For _ VAT On Amazon.pdfWhat Is a Vat Number_ _ VAT Stand For _ VAT On Amazon.pdf
What Is a Vat Number_ _ VAT Stand For _ VAT On Amazon.pdfFarihaSaddique
 
maintenance planning and shedding in (SAP PM EAM )
maintenance planning and shedding in (SAP PM EAM )maintenance planning and shedding in (SAP PM EAM )
maintenance planning and shedding in (SAP PM EAM )Goolla Dwarakesh
 
Chapter 8 the six column work sheet
Chapter 8 the six column work sheetChapter 8 the six column work sheet
Chapter 8 the six column work sheetIva Walton
 
What's New in Odoo 14 Accounting?
What's New in Odoo 14 Accounting?What's New in Odoo 14 Accounting?
What's New in Odoo 14 Accounting?Odoo
 
SAP FI/CO - Challenges in SAP AP Invoice Posting
 SAP FI/CO - Challenges in SAP AP Invoice Posting SAP FI/CO - Challenges in SAP AP Invoice Posting
SAP FI/CO - Challenges in SAP AP Invoice PostingSanjay Ram
 
Texas Instrument Financial Calculator Guide
Texas Instrument Financial Calculator GuideTexas Instrument Financial Calculator Guide
Texas Instrument Financial Calculator GuideSiti Syahirah
 
Accounting 101 Income Statement
Accounting 101 Income StatementAccounting 101 Income Statement
Accounting 101 Income Statementmajesticstomach05
 

Semelhante a Restaurant Bill Instructions Using MS Word, or any text editor, writ.pdf (20)

Tally 9
Tally 9Tally 9
Tally 9
 
People. I need some help with this assignment that needs to be done .docx
People. I need some help with this assignment that needs to be done .docxPeople. I need some help with this assignment that needs to be done .docx
People. I need some help with this assignment that needs to be done .docx
 
Advanced accounting in Tally ERP 9
Advanced accounting in Tally ERP 9Advanced accounting in Tally ERP 9
Advanced accounting in Tally ERP 9
 
Free QuickBooks Pro, Premier Training 2013, 2014, 2015, 2016, 2017 Download
Free QuickBooks Pro, Premier Training 2013, 2014, 2015, 2016, 2017 DownloadFree QuickBooks Pro, Premier Training 2013, 2014, 2015, 2016, 2017 Download
Free QuickBooks Pro, Premier Training 2013, 2014, 2015, 2016, 2017 Download
 
6 advanced accounting
6 advanced accounting6 advanced accounting
6 advanced accounting
 
How To Prepare A Worksheet - Bookkeeping
How To Prepare A Worksheet - BookkeepingHow To Prepare A Worksheet - Bookkeeping
How To Prepare A Worksheet - Bookkeeping
 
Value Added Tax
Value Added TaxValue Added Tax
Value Added Tax
 
QuickBooks Contractors Edition
QuickBooks Contractors EditionQuickBooks Contractors Edition
QuickBooks Contractors Edition
 
Unrealized Currency Gains or Losses in Odoo 15 Accounting
Unrealized Currency Gains or Losses in Odoo 15 AccountingUnrealized Currency Gains or Losses in Odoo 15 Accounting
Unrealized Currency Gains or Losses in Odoo 15 Accounting
 
Sap 1099 misc generic withholding tax reporting
Sap 1099 misc generic withholding tax  reportingSap 1099 misc generic withholding tax  reporting
Sap 1099 misc generic withholding tax reporting
 
What Is a Vat Number_ _ VAT Stand For _ VAT On Amazon.pdf
What Is a Vat Number_ _ VAT Stand For _ VAT On Amazon.pdfWhat Is a Vat Number_ _ VAT Stand For _ VAT On Amazon.pdf
What Is a Vat Number_ _ VAT Stand For _ VAT On Amazon.pdf
 
maintenance planning and shedding in (SAP PM EAM )
maintenance planning and shedding in (SAP PM EAM )maintenance planning and shedding in (SAP PM EAM )
maintenance planning and shedding in (SAP PM EAM )
 
Chapter 8 the six column work sheet
Chapter 8 the six column work sheetChapter 8 the six column work sheet
Chapter 8 the six column work sheet
 
What's New in Odoo 14 Accounting?
What's New in Odoo 14 Accounting?What's New in Odoo 14 Accounting?
What's New in Odoo 14 Accounting?
 
SAP FI/CO - Challenges in SAP AP Invoice Posting
 SAP FI/CO - Challenges in SAP AP Invoice Posting SAP FI/CO - Challenges in SAP AP Invoice Posting
SAP FI/CO - Challenges in SAP AP Invoice Posting
 
Bake for profit step 3
Bake for profit   step 3Bake for profit   step 3
Bake for profit step 3
 
Elosimple manual
Elosimple manualElosimple manual
Elosimple manual
 
Texas Instrument Financial Calculator Guide
Texas Instrument Financial Calculator GuideTexas Instrument Financial Calculator Guide
Texas Instrument Financial Calculator Guide
 
Accounting 101 Income Statement
Accounting 101 Income StatementAccounting 101 Income Statement
Accounting 101 Income Statement
 
GENERAL LEDGER.pdf
GENERAL LEDGER.pdfGENERAL LEDGER.pdf
GENERAL LEDGER.pdf
 

Mais de leolight2

Si el gobierno se hubiera apoderado de los activos de Global Trading.pdf
Si el gobierno se hubiera apoderado de los activos de Global Trading.pdfSi el gobierno se hubiera apoderado de los activos de Global Trading.pdf
Si el gobierno se hubiera apoderado de los activos de Global Trading.pdfleolight2
 
Si bien puede diferir en otros pa�ses, en los Estados Unidos la dist.pdf
Si bien puede diferir en otros pa�ses, en los Estados Unidos la dist.pdfSi bien puede diferir en otros pa�ses, en los Estados Unidos la dist.pdf
Si bien puede diferir en otros pa�ses, en los Estados Unidos la dist.pdfleolight2
 
SHOW STEPS IN EXCEL PLEASE.Data DayDateWeekdayDaily Deman.pdf
SHOW STEPS IN EXCEL PLEASE.Data DayDateWeekdayDaily Deman.pdfSHOW STEPS IN EXCEL PLEASE.Data DayDateWeekdayDaily Deman.pdf
SHOW STEPS IN EXCEL PLEASE.Data DayDateWeekdayDaily Deman.pdfleolight2
 
Si bien la mayor�a de los visitantes de Washington, DC, visitan los .pdf
Si bien la mayor�a de los visitantes de Washington, DC, visitan los .pdfSi bien la mayor�a de los visitantes de Washington, DC, visitan los .pdf
Si bien la mayor�a de los visitantes de Washington, DC, visitan los .pdfleolight2
 
Si bien es importante que los vendedores internacionales aprecien .pdf
Si bien es importante que los vendedores internacionales aprecien .pdfSi bien es importante que los vendedores internacionales aprecien .pdf
Si bien es importante que los vendedores internacionales aprecien .pdfleolight2
 
Show the Relational Algebra formula for each. This one may be a phot.pdf
Show the Relational Algebra formula for each. This one may be a phot.pdfShow the Relational Algebra formula for each. This one may be a phot.pdf
Show the Relational Algebra formula for each. This one may be a phot.pdfleolight2
 
should be at least two paragraphs long, or more, depending upon the .pdf
should be at least two paragraphs long, or more, depending upon the .pdfshould be at least two paragraphs long, or more, depending upon the .pdf
should be at least two paragraphs long, or more, depending upon the .pdfleolight2
 
Should Governments Report Like BusinessesHistorically, states a.pdf
Should Governments Report Like BusinessesHistorically, states a.pdfShould Governments Report Like BusinessesHistorically, states a.pdf
Should Governments Report Like BusinessesHistorically, states a.pdfleolight2
 
Seventy-three percent of adults in a certain country believe that li.pdf
Seventy-three percent of adults in a certain country believe that li.pdfSeventy-three percent of adults in a certain country believe that li.pdf
Seventy-three percent of adults in a certain country believe that li.pdfleolight2
 
Sheffield Corporation, a private corporation, was organized on Febru.pdf
Sheffield Corporation, a private corporation, was organized on Febru.pdfSheffield Corporation, a private corporation, was organized on Febru.pdf
Sheffield Corporation, a private corporation, was organized on Febru.pdfleolight2
 
SHOW ANSWER ON GRAPH Many demographers predict that the United State.pdf
SHOW ANSWER ON GRAPH Many demographers predict that the United State.pdfSHOW ANSWER ON GRAPH Many demographers predict that the United State.pdf
SHOW ANSWER ON GRAPH Many demographers predict that the United State.pdfleolight2
 
Ser capaz de amplificar fragmentos de ADN espec�ficos es fundamental.pdf
Ser capaz de amplificar fragmentos de ADN espec�ficos es fundamental.pdfSer capaz de amplificar fragmentos de ADN espec�ficos es fundamental.pdf
Ser capaz de amplificar fragmentos de ADN espec�ficos es fundamental.pdfleolight2
 
Solve all of them If the marginal propensity to save is 0.25 , then.pdf
Solve all of them  If the marginal propensity to save is 0.25 , then.pdfSolve all of them  If the marginal propensity to save is 0.25 , then.pdf
Solve all of them If the marginal propensity to save is 0.25 , then.pdfleolight2
 
Solution Register a service endpoint in the Dataverse instance that.pdf
Solution Register a service endpoint in the Dataverse instance that.pdfSolution Register a service endpoint in the Dataverse instance that.pdf
Solution Register a service endpoint in the Dataverse instance that.pdfleolight2
 
Solutions for The Toliza Museum of Art, did not cover all the answer.pdf
Solutions for The Toliza Museum of Art, did not cover all the answer.pdfSolutions for The Toliza Museum of Art, did not cover all the answer.pdf
Solutions for The Toliza Museum of Art, did not cover all the answer.pdfleolight2
 
Soles es una empresa de calzado que ha abierto recientemente su tien.pdf
Soles es una empresa de calzado que ha abierto recientemente su tien.pdfSoles es una empresa de calzado que ha abierto recientemente su tien.pdf
Soles es una empresa de calzado que ha abierto recientemente su tien.pdfleolight2
 
So I have 3 enums named land_type, entity, tile as shown enum lan.pdf
So I have 3 enums named land_type, entity, tile as shown enum lan.pdfSo I have 3 enums named land_type, entity, tile as shown enum lan.pdf
So I have 3 enums named land_type, entity, tile as shown enum lan.pdfleolight2
 
So for C-ferns the CP is the commonwild type (green) and the cp is .pdf
So for C-ferns the CP is the commonwild type (green) and the cp is .pdfSo for C-ferns the CP is the commonwild type (green) and the cp is .pdf
So for C-ferns the CP is the commonwild type (green) and the cp is .pdfleolight2
 
So I need to create a compound word game, and I dont quite understa.pdf
So I need to create a compound word game, and I dont quite understa.pdfSo I need to create a compound word game, and I dont quite understa.pdf
So I need to create a compound word game, and I dont quite understa.pdfleolight2
 
SLL Corporation�s balance sheet is shown below. The current rate on .pdf
SLL Corporation�s balance sheet is shown below. The current rate on .pdfSLL Corporation�s balance sheet is shown below. The current rate on .pdf
SLL Corporation�s balance sheet is shown below. The current rate on .pdfleolight2
 

Mais de leolight2 (20)

Si el gobierno se hubiera apoderado de los activos de Global Trading.pdf
Si el gobierno se hubiera apoderado de los activos de Global Trading.pdfSi el gobierno se hubiera apoderado de los activos de Global Trading.pdf
Si el gobierno se hubiera apoderado de los activos de Global Trading.pdf
 
Si bien puede diferir en otros pa�ses, en los Estados Unidos la dist.pdf
Si bien puede diferir en otros pa�ses, en los Estados Unidos la dist.pdfSi bien puede diferir en otros pa�ses, en los Estados Unidos la dist.pdf
Si bien puede diferir en otros pa�ses, en los Estados Unidos la dist.pdf
 
SHOW STEPS IN EXCEL PLEASE.Data DayDateWeekdayDaily Deman.pdf
SHOW STEPS IN EXCEL PLEASE.Data DayDateWeekdayDaily Deman.pdfSHOW STEPS IN EXCEL PLEASE.Data DayDateWeekdayDaily Deman.pdf
SHOW STEPS IN EXCEL PLEASE.Data DayDateWeekdayDaily Deman.pdf
 
Si bien la mayor�a de los visitantes de Washington, DC, visitan los .pdf
Si bien la mayor�a de los visitantes de Washington, DC, visitan los .pdfSi bien la mayor�a de los visitantes de Washington, DC, visitan los .pdf
Si bien la mayor�a de los visitantes de Washington, DC, visitan los .pdf
 
Si bien es importante que los vendedores internacionales aprecien .pdf
Si bien es importante que los vendedores internacionales aprecien .pdfSi bien es importante que los vendedores internacionales aprecien .pdf
Si bien es importante que los vendedores internacionales aprecien .pdf
 
Show the Relational Algebra formula for each. This one may be a phot.pdf
Show the Relational Algebra formula for each. This one may be a phot.pdfShow the Relational Algebra formula for each. This one may be a phot.pdf
Show the Relational Algebra formula for each. This one may be a phot.pdf
 
should be at least two paragraphs long, or more, depending upon the .pdf
should be at least two paragraphs long, or more, depending upon the .pdfshould be at least two paragraphs long, or more, depending upon the .pdf
should be at least two paragraphs long, or more, depending upon the .pdf
 
Should Governments Report Like BusinessesHistorically, states a.pdf
Should Governments Report Like BusinessesHistorically, states a.pdfShould Governments Report Like BusinessesHistorically, states a.pdf
Should Governments Report Like BusinessesHistorically, states a.pdf
 
Seventy-three percent of adults in a certain country believe that li.pdf
Seventy-three percent of adults in a certain country believe that li.pdfSeventy-three percent of adults in a certain country believe that li.pdf
Seventy-three percent of adults in a certain country believe that li.pdf
 
Sheffield Corporation, a private corporation, was organized on Febru.pdf
Sheffield Corporation, a private corporation, was organized on Febru.pdfSheffield Corporation, a private corporation, was organized on Febru.pdf
Sheffield Corporation, a private corporation, was organized on Febru.pdf
 
SHOW ANSWER ON GRAPH Many demographers predict that the United State.pdf
SHOW ANSWER ON GRAPH Many demographers predict that the United State.pdfSHOW ANSWER ON GRAPH Many demographers predict that the United State.pdf
SHOW ANSWER ON GRAPH Many demographers predict that the United State.pdf
 
Ser capaz de amplificar fragmentos de ADN espec�ficos es fundamental.pdf
Ser capaz de amplificar fragmentos de ADN espec�ficos es fundamental.pdfSer capaz de amplificar fragmentos de ADN espec�ficos es fundamental.pdf
Ser capaz de amplificar fragmentos de ADN espec�ficos es fundamental.pdf
 
Solve all of them If the marginal propensity to save is 0.25 , then.pdf
Solve all of them  If the marginal propensity to save is 0.25 , then.pdfSolve all of them  If the marginal propensity to save is 0.25 , then.pdf
Solve all of them If the marginal propensity to save is 0.25 , then.pdf
 
Solution Register a service endpoint in the Dataverse instance that.pdf
Solution Register a service endpoint in the Dataverse instance that.pdfSolution Register a service endpoint in the Dataverse instance that.pdf
Solution Register a service endpoint in the Dataverse instance that.pdf
 
Solutions for The Toliza Museum of Art, did not cover all the answer.pdf
Solutions for The Toliza Museum of Art, did not cover all the answer.pdfSolutions for The Toliza Museum of Art, did not cover all the answer.pdf
Solutions for The Toliza Museum of Art, did not cover all the answer.pdf
 
Soles es una empresa de calzado que ha abierto recientemente su tien.pdf
Soles es una empresa de calzado que ha abierto recientemente su tien.pdfSoles es una empresa de calzado que ha abierto recientemente su tien.pdf
Soles es una empresa de calzado que ha abierto recientemente su tien.pdf
 
So I have 3 enums named land_type, entity, tile as shown enum lan.pdf
So I have 3 enums named land_type, entity, tile as shown enum lan.pdfSo I have 3 enums named land_type, entity, tile as shown enum lan.pdf
So I have 3 enums named land_type, entity, tile as shown enum lan.pdf
 
So for C-ferns the CP is the commonwild type (green) and the cp is .pdf
So for C-ferns the CP is the commonwild type (green) and the cp is .pdfSo for C-ferns the CP is the commonwild type (green) and the cp is .pdf
So for C-ferns the CP is the commonwild type (green) and the cp is .pdf
 
So I need to create a compound word game, and I dont quite understa.pdf
So I need to create a compound word game, and I dont quite understa.pdfSo I need to create a compound word game, and I dont quite understa.pdf
So I need to create a compound word game, and I dont quite understa.pdf
 
SLL Corporation�s balance sheet is shown below. The current rate on .pdf
SLL Corporation�s balance sheet is shown below. The current rate on .pdfSLL Corporation�s balance sheet is shown below. The current rate on .pdf
SLL Corporation�s balance sheet is shown below. The current rate on .pdf
 

Último

Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxJisc
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsKarakKing
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - Englishneillewis46
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the ClassroomPooky Knightsmith
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentationcamerronhm
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibitjbellavia9
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...Poonam Aher Patil
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxDr. Sarita Anand
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxheathfieldcps1
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptxMaritesTamaniVerdade
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17Celine George
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17Celine George
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structuredhanjurrannsibayan2
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxJisc
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and ModificationsMJDuyan
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxRamakrishna Reddy Bijjam
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxPooja Bhuva
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 

Último (20)

Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 

Restaurant Bill Instructions Using MS Word, or any text editor, writ.pdf

  • 1. Restaurant Bill Instructions: Using MS Word, or any text editor, write the Pseudo-code for the following scenario: 1. you finished a restaurant meal and need to pay the bill 2. the tip to be left is 16.5% 3. the sales tax is 8.55% - Write the pseudo-code to perform the following tasks: declare all necessary variables and constants (assigned values, i.e., tip / tax rates) accept input of the bill amount calculate the amount of the tip (do not tip on the tax amount) calculate the amount of the tax calculate the total bill display all the amounts, bill, tax, tip and total (bill + tip and tax) IIDeclare variables and constants DECLARE billAmount AS NUMERIC DECLARE tipRate AS CONSTANT NUMERIC =0.165 DECLARE taxRate AS CONSTANT NUMERIC =0.0855 DECLARE tipAmount AS NUMERIC DECLARE taxAmount AS NUMERIC DECLARE totalBill AS NUMERIC. I/Accept input of the bill amount ACCEPT billAmount //Calculate the amount of the tip SET tipAmount = billAmount tipRate I/Calculate the amount of the tax SET taxAmount = billAmount taxRate I/Calculate the total bill SET totalBill = billAmount + tipAmount + taxAmount IIDisplay all the amounts: bill, tip, tax and total DISPLAY "Bill Amount: $" + billAmount DISPLAY "Tip Amount: $" + tipAmount DISPLAY "Tax Amount: $ " + taxAmount DISPLAY "Total Bill Amount: $ " + totalBill