Question: Pizza with toppings This program will create a pizza string based on the user's chosen toppings. It will begin by asking the user to provide

 Pizza with toppings This program will create a pizza string based

Pizza with toppings This program will create a pizza string based on the user's chosen toppings. It will begin by asking the user to provide the number of pepperoni, onions and jalapenos they want, then print "Here's your pizza!" followed by the words "pepperoni", "onion" and "jalapeno" repeated the number of times specified by the user. Please see the samples below to guide the design of your program's output. Note that bold values in the sample represents input by the user. Sample input/output: Sample with toppings: How many pepperoni do you want? 3 How many onions do you want? 2 How many jalapenos do you want? 5 Here's your pizza! Pizza with: pepperoni pepperoni pepperoni onion onion onion onion jalapeno jalapeno jalapeno jalapeno jalapeno Sample with only some toppings: How many pepperoni do you want? O How many onions do you want? 2 How many jalapenos do you want? 2 Here's your pizza! Pizza with: onion onion jalapeno jalapeno Sample with no toppings: How many pepperoni do you want? O How many onions do you want? O How many jalapenos do you want? Looks like you weren't hungry. Maybe next time

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!