Menu

(Solved) : Given Text Document Titled Capacitorstxt Given Product List Capacitors Entries List Scramb Q29708232 . . .

You are given a text document titled capacitors.txt and given aproduct list of capacitors. Some of the entries of the list havescrambled elements. Write a code that  in C++ thatreorganizes each line of the list to follow the followingFormat

7001845,”CAP, 0.1uF, X7R, 10%, 25V,0603″,VJ0603Y104KXXCW1BC,VISHAYDALE

What the list looks like.

7001845,”CAP, 0.1uF, X7R, 10%, 25V,0603″,VJ0603Y104KXXCW1BC,VISHAYDALE
7001845,”CAP, 0.1uF, X7R, 10%, 25V, 0603″,0603B104K250CT,WALSINTECHNOLOGY
7104882,”CAP, 0.1uF, X7R, 10%, 50V, 0402,RoHS”,GRM155R71H104KE14D,MURATA
7104882,”CAP, 0.1uF, X7R, 10%, 50V, 0402,RoHS”,UMK105B7104KV-FR,TAIYO-YUDEN
7104882,”CAP, 0.1uF, X7R, 10%, 50V, 0402,RoHS”,C1005X7R1H104K050BB,TDK
7047169,”CAP, 0.1uF, X7R, 10%, 50V, 0603,RoHS”,GRM188R71H104KA93D,MURATA
7047169,”CAP, 0.1uF, X7R, 10%, 50V, 0603,RoHS”,UMK107B7104KA-T,TAIYO-YUDEN
7047169,”CAP, 0.1uF, X7R, 10%, 50V, 0603,RoHS”,C1608X7R1H104K,TDK
7047169,”CAP, 0.1uF, X7R, 10%, 50V, 0603,RoHS”,C1608X7R1H104K080AA,TDK
7024610,”CAP, 0.22uF, +/-10%, 16V, X5R,0402″,CL05A224KO5NNNC,SAMSUNG
7024610,”CAP, 0.22uF, +/-10%, 16V, X5R,0402″,C1005X5R1C224KT,TDK
7024610,”CAP, 0.22uF, +/-10%, 16V, X5R,0402″,CC0402KRX5R7BB224,YAGEO AMERICA
7054710,”CAP, 0.22uF, X5R, 10%, 25V, 0603,RoHS”,C1608X5R1E224K,TDK

901105,”CAP, 0.22uF, X7R, 10%, 50V, 0805,RoHS”,08055C224KAT2A,AVX
901105,”CAP, 0.22uF, X7R, 10%, 50V, 0805,RoHS”,C2012X7R1H224K125AA,TDK
7082319,”CAP, 0.33uF, X5R, 10%, 6.3V, 0402,RoHS”,GRM155R60J334KE01D,MURATA
7082319,”CAP, 0.33uF, X5R, 10%, 6.3V, 0402,RoHS”,JMK105BJ334KV-F,TAIYO-YUDEN
7082319,”CAP, 0.33uF, X5R, 10%, 6.3V, 0402,RoHS”,CC0402KRX5R5BB334,YAGEO AMERICA
7024375,”CAP, 0.33UF, X7R, 5%, 25V, 0805, ROHS COMPLIANTAVX”,08053C334JAT2A,AVX
7024375,”CAP, 0.33UF, X7R, 5%, 25V, 0805, ROHS COMPLIANTAVX”,C0805C334J3RACTU,KEMET
1027764,”CAP, 0.47uF, +/-10%, 100VDC, X7R, 0805,RoHS”,GRM21BR72A474KA73L,MURATA
901106,”CAP, 0.47uF, X7R, 10%, 25V, 0805,RoHS”,GRM219R71E474KA88D,MURATA
901106,”CAP, 0.47uF, X7R, 10%, 25V, 0805,RoHS”,UMK212B7474KG-T,TAIYO-YUDEN

Expert Answer


Answer to Given Text Document Titled Capacitorstxt Given Product List Capacitors Entries List Scramb Q29708232 . . .

OR