C ++ Project
$10-30 USD
Pagado a la entrega
Description:
Your program receives from user two strings of symbols: first long one and then short one. Then your program returns all positions in long string where short string occurs as a substring.
For example: long string is "aabcccbabc" and short one is "abc". Short string can be seen twice in the long string "aabcccbabc" in positions 1 and 7 (enumeration of positions in string starts as always from 0). Position of the substring is the position of its first symbol in the whole string.
Requirements:
1) Your program invites user to enter long string. 2) Program gets the long string from user.
3) Your program invites user to enter short string. 4) Program gets the short string from user.
5) If the length of the short string is larger than the length of the long string then repeat steps 1-5. In other words, force user to reenter both strings again and again untill long string is finaly longer or as long as the short string.
This step will require you to compute the lengths of both string. Your should do it yourself. You are NOT allowed to use build-in tools for finding string length (like strlen() )
6) Output the line "The occurances were found in the following positions: " and then from the new string you list all the positions separated by space. If nothing was found then instead of list of positions message "Required substring was not found".
7) If at least one occurance of short string was found in the long string output the total number of occurances in the following format on the separate line
"Total number of occurances is #number_of_occurances" Additionally:
Your programming stile also will be evaluated. In case the program is written hard-to-read way it will affect your grade. Pay attention to the following things:
- Parts of the program are separated by empty lines.
- For each loop it is easy to see the beginning and the end of it. - Variable names are somewhat meaningful.
- Comments are included.
Executed in .cpp file
Nº del proyecto: #7568559
Sobre el proyecto
Adjudicado a:
Hello, I specialize in C++ programming and have excellent reviews here. I help students with C++ and other programming assignments. I read your requirements, and I can write the C++ program (assignment) as instru Más
35 freelancers están ofertando un promedio de $19 por este trabajo
Hello, My name is Pavel and I have Licentiate Degree in Computer Science.I have a great experience in c/c++/c# and java. All of the my employees are satisfied with the quality and speed of my work. See my profile to b Más
I have more than 4+ years of experience in C/C++ programming, all the functionality in the description can be provided on time with efficiency and can be done within 1-2 hourss, Thanks
Hello, i really interest on this project. Let me do it for you. Thank you verry much. Hello, i really interest on this project. Let me do it for you. Thank you verry much. Hello, i really interest on this project. Le Más
[PRICE TO NEGOTIATION] Hi, I'm experienced C/C++ developer working currently in Nokia.I done many students projects so far. Always well written BR, Konrad
Hello, I am experienced and specialized in C and C++ programing. I have taken part in many competitions, including national competition, in which I won 2nd prize. I always work with responsibility and quality. Please c Más
I can help you ...............................................................................................................................................
Hi, I can finish this in no time. Please contact me and I shall start as soon as possible. Thanks. Jason
Worked on many c,c++ & c# projects. This project is a beginner level project for string manipulation and wont take long to develop.
Hi there, I can solve this within two hours. I am waiting for your response to complete this project.
I will get you the program within 12hours. Please feel free to contact. I am a computer engineer and working with c for more than 5years