Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

can you fix my code i dont get the correct outputs Check: begin{tabular}{|c|c|c|c|} hline Input & & xpected & Got hline begin{tabular}{l} 4A123

can you fix my code i dont get the correct outputs image text in transcribed
image text in transcribed
image text in transcribed
Check: \begin{tabular}{|c|c|c|c|} \hline Input & & xpected & Got \\ \hline \begin{tabular}{l} 4A123 \\ 4A124 \\ 90321 \\ 99817 \\ 83222 \\ 51423 \\ 51424 \\ 73918 \\ 43908 \\ ENO \\ 4A123 \\ 99321 \\ 43900 \\ END \end{tabular} & & & \\ \hline \begin{tabular}{l} 4A123 \\ 4A124 \\ 90321 \\ 90417 \\ 83222 \\ 51423 \\ 51424 \\ 73918 \\ 43900K \\ END \\ 83222 \\ 73918 \\ 12345 \\ 4A124 \\ END \end{tabular} & & & \\ \hline \begin{tabular}{l} 4A123 \\ 4A124 \\ 90321 \\ 90317 \\ 83222 \\ 51423 \\ 51424 \\ 73918 \\ 43908 \\ END \\ 4a123 \\ 4A124 \\ 90517 \\ 90321 \\ 43908 \\ ENO \end{tabular} & & & \\ \hline \begin{tabular}{l} 58231 \\ 58232 \\ 89432 \\ 80433 \\ 94567 \\ 62458 \\ 62459 \\ 64729 \\ 54100 \\ END \\ 56231 \\ 58232 \\ 94566 \\ 94567 \\ 54100 \end{tabular} & & & \\ \hline \end{tabular} Iinclude sectes Finetudt estring Binclede stomaniso using namespose utd; wile (true) 1 string line; patilinex(in, lins)] ) pricet puth bock(itenisiso): 1 1 ) ) Cheturn -1 i 1 string the; cout er enal: anile (true) 1 getiline(cin, 1(mos) : if cline = rans) f lineoly 1 int intex = finaticode indexsercodes, ar(ede): If (bedex =1) i 1 otse 1 1 1) Sobit sictotel - a. a: nibtotat is teteltesefrice: ) Acolle watit - subtetal * 0.14: Acrible - tatat = ridretal + watis; cout se endt! cous se Fotat! I" ex tetal ex end? 1. privin facictoon int mino i vectar-sitritigs ercoses: yectorestrings iftens; vectoredrebis triceis narkatorteboie(excoles, itens, prices); shoppingliotercethe, iten, arich); return afi )

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_2

Step: 3

blur-text-image_3

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