# I need the following done in C++ formatting and please use while statement instead of for....

###### Question:

I need the following done in C++ formatting and please use while statement instead of for.

Write a program called vectorMismatch.c that that reads 2 vectors of 10 positive integers the prints a count of how many times the 2 vectors have the same value in the same position just as in the previous exercise) and how many times the vectors have the same value but in a different position. Note you have to avoid double-counting -carefully examine the examples below to understand whats wanted Your program must match the examples below perfectly. Your program can assume it is given correct input (20 positive integers). Your program must break down the problem into suitable functions /vectorMismatch Enter vector 1 of 10 positive numbers: 55515 5 255 5 Enter vector 2 of 10 positive numbers: 6661 6 266 6 6 Vectors match in 1 positions. Vectors mismatch in 1 positions.

#### Similar Solved Questions

##### Horace buys 2 3/4 pounds of blueberries for a pie. He needs 48 ounces of blueberries for the pie. How many more pounds of blueberries does he need to buy?
Horace buys 2 3/4 pounds of blueberries for a pie. He needs 48 ounces of blueberries for the pie. How many more pounds of blueberries does he need to buy?...
##### 4. Juan deposits of $1,000 in a savings account that pays 8% compounded annually. Exactly 2... 4. Juan deposits of$1,000 in a savings account that pays 8% compounded annually. Exactly 2 years later he deposits $3,000; 2 years later he deposits$4,000; and 4 years later he withdraws all of the interest earned to date and transfers it to a fund that pays 10%compounded annually. How much money ...
please help! please writw in detail and clearly . 4. [20 Points] The time required for an automotive center to complete an oil change service on an automobile approximately follows a normal distribution, with a mean of 19 minutes and a standard variance of 9 minutes. (a) The automotive center gu...
##### U. 107 y. 10° Q.10 (kg/m) 0.9950 (kJ/kg.K) 1.009 (N.s/m?) 208.2 (mʻ/s) 20.92 k. 10 (W/m.K)...
u. 107 y. 10° Q.10 (kg/m) 0.9950 (kJ/kg.K) 1.009 (N.s/m?) 208.2 (mʻ/s) 20.92 k. 10 (W/m.K) 30.0 (m²/s) 29.9 Pr 0.700 Air at p = latm enters a thin-walled long tube at an inlet temperature of Tmi = 100 °C. The diameter and length of the tube are 5 mm and 2 m respectively. A constant...
##### How does lightning work?
How does lightning work?...
##### QUESTION 29 In setting their pay structures, companies use a procedure known as performance assessment, which...
QUESTION 29 In setting their pay structures, companies use a procedure known as performance assessment, which determines the worth of each job by determining the market value of the knowledge, skills, and requirements needed to perform it True False QUESTION 30 The first selection device that most j...
##### QUESTION B1. (7 marks) This question assumes the following relational schema Employee (employeeNumber, lastName, firstName, DOB,...
QUESTION B1. (7 marks) This question assumes the following relational schema Employee (employeeNumber, lastName, firstName, DOB, HireDate, Position Salary, Dept) Primary Key: employeeNumber Foreign key: Dept refers to DeptID in Department Department (DeptID, DeptName, DeptLocation) Primary Key: Dept...
##### Problem 5 (18 points): The formation of ozone in the atmosphere occurs via a two-step process....
Problem 5 (18 points): The formation of ozone in the atmosphere occurs via a two-step process. First, sunlight causes the reaction: Step 1: 02(g) → 20(9) Then, as the free 0 atoms move through the atmosphere, they collide with another Oz: Step 2: 0(g) + O2(g) → 03(9) a. (6 points) Determin...
##### The Navarro Frenk & White (NFW) model describes the (spherically symmetric) haloes of dark matter that...
The Navarro Frenk & White (NFW) model describes the (spherically symmetric) haloes of dark matter that form in cosmological simulations. It says that the density of dark matter follows the distribution , where is the distance from the center of the halo, and is an arbitrary length. Show (usin...
##### 11. An E-field, as shown below, can be described by the function Ē(x, y) = (5...
11. An E-field, as shown below, can be described by the function Ē(x, y) = (5 kg/C-s-m?)a’yk. What is the flux of electric field through a rectangle, with one corner placed at the origin, that is 3 meters long in the r-direction and 4 meters long in the y-direction? Show all steps for ful...
##### If a 10g mass is oscillating in simple harmonic motion with a spring constant of 2N/m,...
If a 10g mass is oscillating in simple harmonic motion with a spring constant of 2N/m, find the time for one full oscillation (period)....
1.2. Assume you need to evaluate an ecotouristic project. Each year the project requires maintenance costs equal to $200 and you have benefits (income) of$500. Except for the first year when you invest \$1,000 and you have zero income. The market interest rate is 5% What is the Net Present Value of ...