Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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).

Subtask 2: The first line must be a type of marshmallow produced by only one company (the first in the input in the case of several solutions)! If you don't have one, you'll have to use the word NONE.

Example input:

5

Bonbonetti

caramel

1000

Somes

peanuts

1200

Bonbonetti

marcipan

1500

Stuhmer

geles

700

Somes

caramel

800

Output:

#

peanuts

#

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

Advances In Databases And Information Systems 23rd European Conference Adbis 2019 Bled Slovenia September 8 11 2019 Proceedings Lncs 11695

Authors: Tatjana Welzer ,Johann Eder ,Vili Podgorelec ,Aida Kamisalic Latific

1st Edition

3030287297, 978-3030287290

More Books

Students also viewed these Databases questions