- 3

Could you please help me in dev c++

has a matrix of 8 rows and 8 columns where it places its food or beverages. Once a week a person from the company fills the dispenser placing a certain stock of products, the name and the price of each one of them. To do this we are asked to create a program that by means of a menu executes the following commands: 1-emptyMachine that receives 3 arrays (product_name, stock and price) and leaves them with their null values. (int = 0, string = " ") 2-fillMachine that receives the 3 arrays and asks the worker for the data of each of the products that will be left in the machine (name, stock, price).3-sale that simulates a sales system, where customers enter the coordinates of the product they want to buy (must be valid) in addition to the amount in money, if the amount is equal to or greater than the selling price of the product is deducted a unit from the stock and is displayed on the screen the change that the customer receives, otherwise display a message of insufficient amount. 4-amountRecovered that returns

4th Jul 2021, 11:20 PM
joseph mendoza
joseph mendoza - avatar
1 Réponse
0
Give it a shot, save your tryout code in SoloLearn and share its link in thread's Description. People are more eager to help when they see an effort from your side. Here's how to share code link in case you didn't know https://www.sololearn.com/post/75089/?ref=app
5th Jul 2021, 1:56 AM
Ipang