![subject](/tpl/images/cats/informatica.png)
Computers and Technology, 12.02.2021 04:50 vickygloom
Modify the last program (Practice with Classes) to
Ask the user to enter 10 products. To do this, you need to create an array of objects from the class product.
Use the priceCalculator method to determine the total price of each one of the products.
If the product's price is greater than $100 copy it in a new array of expensive purchases.
To do this, you need to create also another array of 10 products, named expensivePurchases
If the product's price is less than or equal to $100, copy it in a new array of regular purchases.
To do this, you need to create also another array of 10 products, named regularPurchases.
Then print out both lists.
Please code it in C++
![ansver](/tpl/images/cats/User.png)
Answers: 2
![](/tpl/images/ask_question.png)
![](/tpl/images/ask_question_mob.png)
Other questions on the subject: Computers and Technology
![image](/tpl/images/cats/informatica.png)
Computers and Technology, 23.06.2019 07:00, MissSmartyPants88
To produce a starlight effect in her photograph, lina should choose the filter for her camera.
Answers: 1
![image](/tpl/images/cats/informatica.png)
![image](/tpl/images/cats/informatica.png)
Computers and Technology, 23.06.2019 14:30, naomi20044
Select the correct answer. andy received a potentially infected email that was advertising products. andy is at risk of which type of security threat? a. spoofing b. sniffing c. spamming d. phishing e. typo-squatting
Answers: 2
You know the right answer?
Modify the last program (Practice with Classes) to
Ask the user to enter 10 products. To do this, y...
Questions in other subjects:
![Konu](/tpl/images/cats/fizika.png)
![Konu](/tpl/images/cats/mat.png)
Mathematics, 12.03.2020 20:28
![Konu](/tpl/images/cats/istoriya.png)
![Konu](/tpl/images/cats/mir.png)
![Konu](/tpl/images/cats/mat.png)
![Konu](/tpl/images/cats/istoriya.png)
History, 12.03.2020 20:28
![Konu](/tpl/images/cats/mat.png)
Mathematics, 12.03.2020 20:28
![Konu](/tpl/images/cats/geografiya.png)
Geography, 12.03.2020 20:28
![Konu](/tpl/images/cats/istoriya.png)
History, 12.03.2020 20:28