Question: C++ 1. Write e C++ program that reads from the user, N element for products code, their quantities as well as the price per unit.
1. Write e C++ program that reads from the user, N element for products code, their quantities as well as the price per unit. Use vectors to perform the following tasks: a. Declare and initialize the respective vectors with N values, the initialization will be done by the user. b. Print the product code with the highest unit price. c. Print the value of each product. d. Print the average price per unit, use the function Average to perform the calculations. e. Display how many products has a price above AA Lek, use the function Count to perform the calculations. 2. A Dudeney number is a positive integer that is a perfect cube such that the sum of its digits is equal to the cube root of the number. There are exactly seven such integers. Write a function isDudeney to test if a parameter number is a Dudeney number. Use this function in a program that determines and prints the first 3 Dudeney integers. Then challenge the power of your computer by finding all 7 Dudeney numbers. Make use of the
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
