Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ An electronic store wants to keep an inventory of the products in its store. You are asked to write a program that asks the

C++

An electronic store wants to keep an inventory of the products in its store. You are

asked to write a program that asks the user to enter the brand (string, eg. Elba), serial

number (string, eg. ELB102), type (string, eg. kettle), warranty period (int) and the price

(double) for each product. The user can enter as many product's information as needed

(use a loop of your choice).

An electronic store wants to keep an inventory of the product in its store. Update the program from Assignment 1 using struct that represents the Product with the data; the brand (string, eg. Elba), serial number (string, eg. ELB102), type (string, eg. kettle), warranty period (int) and the price (double) for each product. The user can enter as many products information as needed (use a loop of your choice).

The program should do the following:

1. Identify the total and average price of all products in the inventory.

2. Display the brand and model of the most expensive product.

3.How many kettles are in the inventory?

4..How many kettles of type ELBA are in the inventory.

Requires :

variables, data types

basic input/output

logic (if else if statements)

loops (for, while, or do-while. Hint : data has to be processed within the loop)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions