Question: need to make a simple loop that sets the # of hotdogs to 4 and then decrements for each loop and then tracks the #

need to make a simple loop that sets the # of hotdogs to 4 and then decrements for each loop and then tracks the # of loops and displays it in terminal!!!!!!!!!!!! will upvote if working!!! pls help!!!
Directions: complete all the steps listed items as specified. Create a while, do-while, for loop to process the number of hotdogs required by a user. Modify a loop construct where specified. When all is completed and error free, have your instructor check your work for credit. Loops 1. Declare and initialize a variable such as "dogPrice" or a variable name you prefer to $5.95. 2. The user initially wants 4 hotdogs. Create a ... loop ... that exits if the number of hotdogs drops below 1. 3. Add a changer to the loop body that decrements by one. Add a loop counter so you know how many times the loop repeats. Display the number of times your loop looped! Instruction Initials
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
