per tirantsu? 4 tiranisus evenly among 8 people, you will have s and o slices Teft over. lting... /cnick/csULA/cs2011/code ndreople? us? 1 per tiranisu? 4 tiranisus evenly anong 7 people, you will have is and 1 slices left over. elting... 4/Nick/csULA/csz011/code andreoplez us?S per tiranisu?S

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
M E su meleing...
Problem 4
This problem is very similar to Problem 2. and you should use your solution to Problem 2 as starter code.
The inputs are the same, but the output is a bit different: rather than telling the user how many slices in total will be left over, display the number of whole tiramisus plus number of slices from the tiramisu that had some slices removed.
Sample Runs:
nickemimi MINGW64 /c/Nick/CSULA/Cs2011/Code
S java TiramisUAndPeoplez
How many tiramisus? 5
How many slices per tiranisu? 4
How many people? 8
If you split ail tiranisus evenly among 8 people, you will have
1 full
melting...
nickamimi MINGW64 /c/Nick/CSULA/Cs2011/Code
S java TiramisUandPeople2
HOW many tiramisus? 3
How many slices per tiramisu? 4
HOw many people? 7
If you split all tiramisus evenly among 7 people, you wi11 have
1 full
ft over.
melting...
nickamini MINGW64 /c/Nick/CSULA/CS2011/Code
S java TiramisUAndreoplez
How many tiranisus? S
HOW many slices per tiramisu? 5
HOW many people? 9
If you split all tiramisus evenly among 9 people, you will have
1 full
2 slices left
Submission:
Submit TiramisuAndPeople2.java
Transcribed Image Text:M E su meleing... Problem 4 This problem is very similar to Problem 2. and you should use your solution to Problem 2 as starter code. The inputs are the same, but the output is a bit different: rather than telling the user how many slices in total will be left over, display the number of whole tiramisus plus number of slices from the tiramisu that had some slices removed. Sample Runs: nickemimi MINGW64 /c/Nick/CSULA/Cs2011/Code S java TiramisUAndPeoplez How many tiramisus? 5 How many slices per tiranisu? 4 How many people? 8 If you split ail tiranisus evenly among 8 people, you will have 1 full melting... nickamimi MINGW64 /c/Nick/CSULA/Cs2011/Code S java TiramisUandPeople2 HOW many tiramisus? 3 How many slices per tiramisu? 4 HOw many people? 7 If you split all tiramisus evenly among 7 people, you wi11 have 1 full ft over. melting... nickamini MINGW64 /c/Nick/CSULA/CS2011/Code S java TiramisUAndreoplez How many tiranisus? S HOW many slices per tiramisu? 5 HOW many people? 9 If you split all tiramisus evenly among 9 people, you will have 1 full 2 slices left Submission: Submit TiramisuAndPeople2.java
Expert Solution
steps

Step by step

Solved in 3 steps with 3 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY