Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please write the program in c++. it says download and complete lab10_2.cpp. so i have added picture of it. So please follow the pattern and

image text in transcribed

image text in transcribed

image text in transcribed

please write the program in c++. it says download and complete lab10_2.cpp. so i have added picture of it. So please follow the pattern and commenting given on lab10_2.cpp to finish the exercise. the instructions and testing hints are given on the first picture.

again, please complete the lab10_2.cpp. i know we can approach to a problem in many ways, but the exercise is here to finish it in the way that is given on lab10_2.cpp.

Thank you

chase cu xNew Tabx 10.pdf n Facebook Exercise 2: Utility String and Vector Functions Download lab10_2.cpp and submit the completed.cpp file New Tab Admission counselo O search 2004 Acura TL Gre.. D vendor Info Write a program which implements several useful functions for strings and vectors. We have implemented main for you, which you should use to test these functions. The function requirements are listed in the starter file. You will complete the following functions: 1. void printIntVector (vector numbers) 2. double mean (vector & numbers, int queryvalue) 4. int countLetters (string word, char letter) 5. string reversestring (string word) Testing You should test your program after completing each function. Your output should match the test output for each test from main. The beginning of the correct output is shown below. bash-4.1s gtt lab10 2.cpp /a.out Test l: Printing the vector Yours 5 12 6 30 19 correct: 5 12 6 30 19 Test 2: Mean Yours:14.4 Correct: 14.4 Hints .We recommend that you use a printVector function in future labs and projects! Use push back to add a character to the back of a string Make sure your loops iterate over the full size of the input string or vector You can iterate from size-1 to o to iterate a string/vector in reverse

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

Current Trends In Database Technology Edbt 2006 Edbt 2006 Workshops Phd Datax Iidb Iiha Icsnw Qlqp Pim Parma And Reactivity On The Web Munich Germany March 2006 Revised Selected Papers Lncs 4254

Authors: Torsten Grust ,Hagen Hopfner ,Arantza Illarramendi ,Stefan Jablonski ,Marco Mesiti ,Sascha Muller ,Paula-Lavinia Patranjan ,Kai-Uwe Sattler ,Myra Spiliopoulou ,Jef Wijsen

2006th Edition

3540467882, 978-3540467885

More Books

Students also viewed these Databases questions