Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In c++ 1 Vinclude 3 #include Objectives Farniliarize the studennt withh: 5 using nanespaco * sets-creating then . sets-counting clements of a specific valuc: .

In c++image text in transcribed

1 Vinclude 3 #include Objectives Farniliarize the studennt withh: 5 using nanespaco * sets-creating then . sets-counting clements of a specific valuc: . sets-finding clements of a spectfic valuc: . sets-lterating over them your code 9 int min) f cet cdouble, ereatercdouble> valuesA 1.1, 2.9, ., 2.71 : 3.14, 2.1,-3.88, 2.19 printing on screen 12 et > values double value; cin >> value; 14 Scenario your code Write a program that creates two sets (the sets are gven in the code below) and asks the user for a number. Next your program should count how many times the given number appears in both sets. if it is not tound, then display: "Not found". but if it is found (cuuaL0), then display a to the end of the set separated with spaces. Create a function to do all ot these operations with the set and the number, and call it twice (tor both setsi Your version ot the program must print the same result as the expected output for all given input. Test it for all input cases. 17 all the elements from the found elemnt Example input 2.71 Example output 2.71-1.1 -2.3 2.71 2.19-3.11-3.88 Example input 2.19 Console? Example output Not tound 2.19-3.14-388 1 Vinclude 3 #include Objectives Farniliarize the studennt withh: 5 using nanespaco * sets-creating then . sets-counting clements of a specific valuc: . sets-finding clements of a spectfic valuc: . sets-lterating over them your code 9 int min) f cet cdouble, ereatercdouble> valuesA 1.1, 2.9, ., 2.71 : 3.14, 2.1,-3.88, 2.19 printing on screen 12 et > values double value; cin >> value; 14 Scenario your code Write a program that creates two sets (the sets are gven in the code below) and asks the user for a number. Next your program should count how many times the given number appears in both sets. if it is not tound, then display: "Not found". but if it is found (cuuaL0), then display a to the end of the set separated with spaces. Create a function to do all ot these operations with the set and the number, and call it twice (tor both setsi Your version ot the program must print the same result as the expected output for all given input. Test it for all input cases. 17 all the elements from the found elemnt Example input 2.71 Example output 2.71-1.1 -2.3 2.71 2.19-3.11-3.88 Example input 2.19 Console? Example output Not tound 2.19-3.14-388

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

Bioinformatics Databases And Systems

Authors: Stanley I. Letovsky

1st Edition

1475784058, 978-1475784053

More Books

Students also viewed these Databases questions

Question

List and describe the challenges enterprise applications pose.

Answered: 1 week ago

Question

=+ Are some laws more important than others? If so, which ones?

Answered: 1 week ago

Question

=+j Describe how EU directives impact IHRM.

Answered: 1 week ago