Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

write the program in c++ Itslearning Courses Groups Calendar Support BAU BAUGO BAU Library P1001 (1-3) Introduc... Overview Plans Resources Follow-up and reports Assignment Write

write the program in c++image text in transcribed
Itslearning Courses Groups Calendar Support BAU BAUGO BAU Library P1001 (1-3) Introduc... Overview Plans Resources Follow-up and reports Assignment Write a program that will read several abbreviations given as std::string values until the value of "END" is given. After reading each abbreviation, the program will check if the same abbreviation already exists in a data base. If not, it will add this new abbreviation to the correct row of the database. The abbreviation data base will be composed of a 2D std:string array with 3 rows and 20 columns Abbreviations starting with digits will be kept in the first row, abbreviations starting with a lower case letter will be kept in the second row, and abbreviations starting with an upper case letter will be kept in the third row After checking over all the input the program will write the data base to the screen as seen in the examples below NOTE: For each row there can be no more than 20 abbreviations. You do NOT need to check this in the input NOTE YOU MUST use a ZD String array to keep all the database in this question HINT: For checking if a given String exists in the data base, it would be a good idea to write a method like (doesExistin DB) Using such a method will reduce a lot of code repetition HINT: You can check the first char of a string as if the string is a 10 char array (e.g. std:strings stop). Input sql AQL 007 011 KAR ENG KITT HAL BAX END KAR 1 END bio BIO MX 977 END Output 0-9:007 011 0-9:1 0 - 9: 977 a-2: 3-2 sql - bio A-Z: KAR ENG KITT A - ZAQL. BAX HAL A-2: BIO MX MacBook Pro Q @ % 2 3# 4 Jo 5

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

Beginning C# 2005 Databases

Authors: Karli Watson

1st Edition

0470044063, 978-0470044063

More Books

Students also viewed these Databases questions