Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

ppData/Local/Temp/Temp 1-HW01 %20(1).zip/HWO 1-DrillProblems.pdf 415 Inputs: 1. (double) Number of party attendees 2. (double) Number of pizzas ordered Outputs 1. (double) Slices of pizza per

image text in transcribed

ppData/Local/Temp/Temp 1-HW01 %20(1).zip/HWO 1-DrillProblems.pdf 415 Inputs: 1. (double) Number of party attendees 2. (double) Number of pizzas ordered Outputs 1. (double) Slices of pizza per person 2. (double) Slices of pizza left over Function Description: You decide to host a party and buy some pizzas for you and your friends. But, in order to be fair, every person should get the same number of slices of pizza. Any extra slices will be left over and saved for later You could try and calculate the pizza slice distribution yourself, but why bother when you can have MATLAB do all the hard work! Given the number of people at the party and the number of pizzas ordered, write a functi should should receive, and how many slices of pizza will be left over on that outputs how many slices of pizza each person would get 3 slices, and 1 slice would be left over, so the first output would be 3 and the second output would be 1 Example pizzaParty(S, 2) 3, 1 Notes: Assume every pizza is cut into 8 slices. You cannot have fraction slices. Hints . You may find the floor() and/or modO) functions useful

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Processing Fundamentals Design And Implementation

Authors: David M. Kroenke

5th Edition

B000CSIH5A, 978-0023668814

More Books

Students also viewed these Databases questions

Question

=+8.3(i)). If j is transient, then fi= C PH) /(1+2 Pc)

Answered: 1 week ago

Question

how would you do a while loop without using break though

Answered: 1 week ago