subject

This assignment will be divided up into two files. The first file will test your knowledge of using cin, cout, and vectors. The second file will require you to apply this knowledge, as well as using stringstreams File 1 (40% of grade) In the first file, you will need to do the following: Create two vectors. The first will store strings, the second will store doubles Create a loop that will run infinitely o Get user input for a string o If user input is "STOP", then break out of the loop o Store that string in the vector of strings Create a second loop that will run infinitely o Get user input for a double o If user input is "-999.00", then break out of the loop o Store that double in the vector of doubles Create a third loop that will run to the size of the smaller of the two vectors o For each iteration of the loop, print out the same index value of the string vector and the double vector i. e. if i 0, print out stringvector[0] and doublevector[0];

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 13:30
Jane’s team is using the v-shaped model for their project. during the high-level design phase of the project, testers perform integration testing. what is the purpose of an integration test plan in the v-model of development? a. checks if the team has gathered all the requirements b. checks how the product interacts with external systems c. checks the flow of data in internal modules d. checks how the product works from the client side
Answers: 1
question
Computers and Technology, 23.06.2019 00:10
Write a function so that the main0 code below can be replaced by the simpler code that calls function mphandminutes tomiles0. original main0 int main) l double milesperhour-70.0; double minutestraveled = 100.0; double hourstraveled; double milestraveled; hourstraveled = minutestraveled / 60.0; milestraveled = hourstraveled * milesperhour; cout < "miles" 2 using namespace std; 4 /* your solution goes here/ 6 int maino 1 test passed 7 double milesperhour 70.0 all tests passed 8 double minutestraveled 100.0; 10 cout < < "miles: " < < mphandminutestomiles(milesper-hour, minutestraveled) < < endl; 12 return 0; 13
Answers: 1
question
Computers and Technology, 24.06.2019 12:00
Match the function to its purpose. fast worth 50pts.
Answers: 1
question
Computers and Technology, 24.06.2019 13:00
Your mom wants to purchase a laptop computer. she said she wants her new computer to be able to play her dvds so she can listen to music and wants to know what type of optical drives will play her disk. which type of drive should she look for?
Answers: 1
You know the right answer?
This assignment will be divided up into two files. The first file will test your knowledge of using...
Questions
question
Mathematics, 10.02.2021 23:00
Questions on the website: 13722367