26 Sep Pizza Party Your user is throwing a pizza party and must determine if they have enough pizza to feed their guests. Givens: How many pizzas did you order? How many slices per pizza?
2: Pizza Party Your user is throwing a pizza party and must determine if they have enough pizza to feed their guests. Givens: How many pizzas did you order? How many slices per pizza? How many guests will be at the party? How many slices will each guest eat? Result To Print Out: "Yes, you have enough pizza for your guests with X slices left over." or "You need at least X more slices of pizza. You should order more pizza." Problem #3: Discount Double Check You are going to purchase (2) items from an online store. If you spend $100 or more, you will get a 10% discount on your total purchase. If you spend between $50 and $100, you will get a 5% discount on your total purchase. If you spend less than $50, you will get no discount. Givens: Cost of First Item (in $) Cost of Second Item (in $) Result To Print Out: "Your total purchase is $X." or "Your total purchase is $X, which includes your X% discount." Problem #4 – Logical Operators: Movie Ticket Price The local movie theater in town has a ticket price of $12.00. But, if you are a senior (55 and older), or are under 10, or are seeing a matinee which screens from 3 pm to 5 pm, you get the discounted price of $7.00, nice! Hint 1: "55 and older" is INCLUSIVE Hint 2: under 10 is EXCLUSIVE Hint 3: the range 3 to 5 is INCLUSIVE Hint 4: limit 1 per patron (i.e., it doesn’t compound) Hint 5: considering there’s 3 am and pm and 5 am and pm, using a 24-hour clock (aka military time) may be an easier option (0000 to 2359) Determine which of the two prices the customer is eligible for. Givens: Time of Movie (Assume whole numbers here) Age of the customer Result To Print Out: "The ticket price is X"
Our website has a team of professional writers who can help you write any of your homework. They will write your papers from scratch. We also have a team of editors just to make sure all papers are of HIGH QUALITY & PLAGIARISM FREE. To make an Order you only need to click Ask A Question and we will direct you to our Order Page at WriteDemy. Then fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.
Fill in all the assignment paper details that are required in the order form with the standard information being the page count, deadline, academic level and type of paper. It is advisable to have this information at hand so that you can quickly fill in the necessary information needed in the form for the essay writer to be immediately assigned to your writing project. Make payment for the custom essay order to enable us to assign a suitable writer to your order. Payments are made through Paypal on a secured billing page. Finally, sit back and relax.
About Wridemy
We are a professional paper writing website. If you have searched a question and bumped into our website just know you are in the right place to get help in your coursework. We offer HIGH QUALITY & PLAGIARISM FREE Papers.
How It Works
To make an Order you only need to click on “Order Now” and we will direct you to our Order Page. Fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.
Are there Discounts?
All new clients are eligible for 20% off in their first Order. Our payment method is safe and secure.
