You work for a bakery that sells two items: muffins and cupcakes. The number of muffins and cupcakes in your shop at any given time is stored in the <span style="text-decoration: none;">variables</span> muffins and cupcakes, which have been defined for you.
Write a program that takes strings from standard input indicating what your customers are buying ("muffin" for a muffin, "cupcake" for a cupcake). If they buy a muffin, decrease muffins by one, and if they buy a cupcake, decrease cupcakes by 1. If there is no more of that baked good left, print ("Out of stock").
Once you are done selling, input "0", and have the program print out the number of muffins and cupcakes remaining, in the form "muffins: 9 cupcakes: 3" (if there were 9 muffins and 3 cupcakes left, for example).
Instead of writing an essay, try writing in bulleted form, briefly explaining what you understand from the findings.
Note any areas where you may want or need some further explanation. Ask questions of your fellow classmates. Revisit the Discussion Forum often, responding to at least three other classmates and responding to anyone who responded to your original post.
There is one button and one listbox on the form.
Adding the names and surnames of personnel younger than 35 years old into the listbox when the button is clicked.
is requested.
Using object-oriented programming techniques the required class (with methods) and from that class
code the object to be created.
Thanks in advance to those who help.
Silver Express Theme Park Pvt Ltd is a tourist attraction that offers three types of tickets.
1. Regular adult tickets at R30 per person.
2. Student tickets at R25 per person
3. Family ticket for two adults and two children is R75, with an additional R15 for each child beyond two children
Design a c++ application that will so the following:
a. The program should display a menu with three options.
b. The program should ask the user to select type of tickets needed. If the first or second options are selected, the program should ask the user to enter the number of people in the group. However, if the third option is selected, the program should ask the user to enter the number of additional children in the group.
c. The program should then calculate the total amount due and display it on screen
d. Make sure the user cannot select invalid options in the menu and that the number of people in the group is always greater than 0
Write a MATLAB code to solve the following difference equations by z-transform and display the solutions by stem plots:
3) A bank account gives an interest rate of 5% compounded monthly. If you invest initially Rs .1000 and add Rs. 10 every month. How much money do you have after 5 years?
Write a MATLAB code to solve the following difference equations by z-transform and display the solutions by stem plots:
2) Suppose that the number of bacteria in a colony doubles every hour. If a colony begins with five bacteria, how many will be present in n hours?
Write a MATLAB code to solve the following difference equations by z-transform and display the solutions by stem plots:
1) An amount of USD 10,000 $ is deposited in a bank account with an annual interest
rate of 4%. Determine the balance of the account after 15 years.
student teacher data management project
Write a program that displays a string in all possible combinations of foreground and background colors (16 x 16 =256). The colors are numbered from 0 to 15, so you can use a nested loop to generate all possible combinations. Also use a delay of 1s in each foreground color change.