SlideShare une entreprise Scribd logo
1  sur  1
Télécharger pour lire hors ligne
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

Contenu connexe

Similaire à 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 .docx
odiliagilby
 
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
Iva Walton
 

Similaire à 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
 

Plus de leolight2

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
leolight2
 
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
leolight2
 
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
leolight2
 
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
leolight2
 

Plus 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
 

Dernier

1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
PECB
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
SoniaTolstoy
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
kauryashika82
 

Dernier (20)

Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
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
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
 

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