Question

Imagine that you and a number of friends go to a luxury restaurant, and when you...

Imagine that you and a number of friends go to a luxury restaurant, and when you ask for the bill you want to split the amount and the tip (15 percent) between all. Write pseudocode (in Java style) for calculating the amount of money that everyone has to pay. Your program should print the amount of the bill, the tip, the total cost, and the amount each person has to pay. It should also print how much of what each person pays is for the bill and for the tip.

Homework Answers

Answer #1

Step 1:START

Step 2:INPUT bill,n //n refers to the total number of people and bill is the amount excluding the tip

Step 3:DIM tip //DIM means declare in Memory

Step 4:tip=(15*bill)/100

Step 4:DIM total

Step 5:total=bill+tip

Step 6:DIM split_amount

Step 7:split_amount=total/n

Step 8:DIM split_amount_bill,split_amount_tip

Step 9:split_amount_bill=bill/n

split_amount_tip=tip/n

Step 10:DISPLAY bill,tip,total,split_amount,split_amount_bill,split_amount_tip

Step 11:STOP

If you want the program for this then please let me know

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Write the following program using the if/else decision structure using C programming. This problem calculates the...
Write the following program using the if/else decision structure using C programming. This problem calculates the cost of a movie ticket. If a person is 5 years old or younger, the movie ticket is free. If the person is over 65, then the movie ticket costs $5.00. Everyone else pays $10.00. Your program should ask for the person’s age. It should also print output which looks like this: You are (put their age her) year old, so your movie ticket...
Suppose that you and two friends go to a​ restaurant, which last month filled approximately 88.3...
Suppose that you and two friends go to a​ restaurant, which last month filled approximately 88.3 % of the orders correctly. What are the mean and standard deviation of the binomial​ distribution? Interpret these values. The mean is_____ The standard deviation is_____ Interpret the mean and standard deviation On average, ____ orders are correctly filled, while there is an approximate variation of _____ from the ____(maximum, minimun, or average) number of orders_____(taken, correctly filled, or incorrectly filled) Round to four...
1/ Imagine a party with n people. When a person comes to the party they go...
1/ Imagine a party with n people. When a person comes to the party they go and shake hands with a few other people (but not necessarily everyone - in fact there can be unfriendly people who do not shake hands with anyone!). None of the attendees narcissistic enough to shake hands with themselves. Prove that there are two people who shake the same number of hands. For example, suppose 3 people attend the party and everyone shakes hand with...
Split the Bill? A study compared the cost of restaurant meals when people pay individually versus...
Split the Bill? A study compared the cost of restaurant meals when people pay individually versus splitting the bill as a group. In the experiment half of the people were told they would each be responsible for individual meals costs and the other half were told the cost would be split equally among the six people at the table. The data in SplitBill includes the cost of what each person ordered (in Israeli shekels) and the payment method (Individual or...
You are planning to purchase a restaurant and are wondering how much to pay for it....
You are planning to purchase a restaurant and are wondering how much to pay for it. You’ve estimated that the restaurant will generate $382,421 per year for the next 16 years, starting next year. If you want to earn 11.79% on your investments, how much should you pay for the restaurant today? You have an investment that pays $5,026 each year for 4 years, starting next year. The interest rate is 4.5% compounded annually. What is the present value of...
Create a C# application You are to create a class object called “Employee” which included eight...
Create a C# application You are to create a class object called “Employee” which included eight private variables: firstN lastN dNum wage: holds how much the person makes per hour weekHrsWkd: holds how many total hours the person worked each week. regHrsAmt: initialize to a fixed amount of 40 using constructor. regPay otPay After going over the regular hours, the employee gets 1.5x the wage for each additional hour worked. Methods:  constructor  properties  CalcPay(): Calculate the regular...
Phone number lookup Design a program that has two parallel arrays: a string array named people...
Phone number lookup Design a program that has two parallel arrays: a string array named people that is initialized with the names of seven of your friends, and a string array named phoneNumbers that is initialized with your friends phone numbers. The program should allow the user to enter a persons name (or part of a persons name). it should then search for that person in the people array. If the person is found, it should get that persons phjone...
Many of you may have watched Friends when it was on television and may even still...
Many of you may have watched Friends when it was on television and may even still watch the reruns. In 2000, the case of Friends, one of the hottest shows on television, demanded a pay increase. The demand was made with a valid contract in place and near the time NBC was to announce its fall lineup. The six stars demanded $1,000,000 each per episode. NBC settled for $750,000 per star, up from the stars’ $150,000 per episode figure renegotiated...
Imagine you are a provider of portfolio insurance. You are establishing a four-year program. The portfolio...
Imagine you are a provider of portfolio insurance. You are establishing a four-year program. The portfolio you manage is currently worth $140 million, and you promise to provide a minimum return of 0%. The equity portfolio has a standard deviation of 25% per year, and T-bills pay 6.4% per year. Assume for simplicity that the portfolio pays no dividends (or that all dividends are reinvested). a-1. What percentage of the portfolio should be placed in bills? (Input the value as...
For this assignment, you will be creating a simple “Magic Number” program. When your program starts,...
For this assignment, you will be creating a simple “Magic Number” program. When your program starts, it will present a welcome screen. You will ask the user for their first name and what class they are using the program for (remember that this is a string that has spaces in it), then you will print the following message: NAME, welcome to your Magic Number program. I hope it helps you with your CSCI 1410 class! Note that "NAME" and "CSCI...