Answer to Question #273654 in C++ for Amey

Question #273654

A company Digicom Parts manufactures 2 types of unique products for laptop and desktop computers. It manufactures 10 types of laptop products and 42 types of desktop products. Each product manufactured by the company has a unique productID from a-z and A-Z. The laptop product have productID (a, i, e, o, u, ALE, O, U) while the rest of the productIDs are assigned to the desktop products. The company manager wishes to find the sales data for the desktop products. Given a list of productIDs of the sales of the last N products, write an algorithm to help the manager find the productIDs of the desktop products.

1
Expert's answer
2021-11-30T18:18:31-0500
1 Set i equal 1
2 If i grater than N go to step 14
3     Get next product data
4     If productID is lowercase
5         Convert productID to uppercase
6     If productID is A go to step 12
7     If productID is I go to step 12
8     If productID is E go to step 12
9     If productID is O go to step 12
10    If productID is U go to step 12
11    Process data as desktop products
12    Increment i by 1
13    Go to step 2
14 Exit

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

Prince
15.07.22, 16:54

Good things

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS