Question: ASAP! C++ programming: write a simple program in C++ print the expected output! Number of sugar products in the first row of the standard input

ASAP! C++ programming: write a simple program in C++ print the expected output!

Number of sugar products in the first row of the standard input (1N1 000). The following line 3*N contains a description of the bacon sugars: the name of the company producing the bacon sugar, the type of sugar in the bacon and the price of the sugar (500Pricei20 000).

Output

The standard output must be followed by a line with a single # character before each subtask returns, followed by one or more lines containing the result of the subtask. If you can't solve a subtask, you just have to write the # character! If the output does not technically meet this requirement (e.g. writes fewer/more # characters), the evaluator will send an "Output format error" message (even if there is a correct subtask solution).

Part 3: The first line must be the S number of the varieties of marshmallows available in the store! In the next row S, the names of the sugar varieties available in the store must be written (in any order)!

Example input:

5

Bonbonetti

caramel

1000

Somes

peanuts

1200

Bonbonetti

marcipan

1500

Stuhmer

geles

700

Somes

caramel

800

Output:

#

4

caramel

peanuts

marcipan

geles

#

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!