Question: Mind the Logic errors for the current code! Question 1 Uvitraindtrien A cockie rectper calts for the following ingiedients: - 15 cups of sugar -


Question 1 Uvitraindtrien A cockie rectper calts for the following ingiedients: - 15 cups of sugar - 1 cup of butter - 2.75 cups of flour Ther recipe prodicers 43 eDokies with thit amownt of ingredents. Write a grogram that asks the user how marfy cookles thary want to make arvd chen displays. Uhe fuumber of cups af each irveretient needed for the specified nutnber of cookies. When the program asks the yoer for the number of cockies, it shoudd timplay the following rtring ars a prempt: "Enter number of eookiest" When the program dirplays the number of cups af ingrediente, itshould displyy a message in the following formut You need x cuph of gygar, y eupul of hytedfi and z cupis of flout. Where x is the number of cups of sugar, y is the number of cups of butter; and z is the number of cups of flour. Bont worry about formatning the fumbers if the butout. The following sarmple run shows an example of the peogram's output. The urer's input is shown in boid: Sample Run Hinter fumber - def cook iond 448 of Yoti noed 1.5 cups df sugar, 1.0 cups of hutter, atid 2.75 cupa of tlour. stion 1 of 1 Tect cace tahle
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
