subject

Close the project and create a new one called 'Labo-Part3' with the same options as in the previous step. Write a C++ program that does the following: • Creates a 50-element array, either statically or dynamically • Fills the array with random integers between 1 and 100 inclusive . Then, creates two more 50-element arrays: - One holding odd values The other holding even values • These values should be copied from the original array. Each of the two new arrays may not be filled completely (if half of the original 50 numbers are even, and half are odd, each array would be filled with 25 elements). • Prints the even and odd arrays to the screen, one number at a time separated by a space. Compile and run this program so it runs as expected. Your output should look similar to this: Odd numbers: 51 7 63 99 39 31 63 85 49 3 79 21 63 25 77 47 9 55 75 85 73 27 19 79 57 53 Even numbers: 189 48 30 32 76 10 30 18 52 60 18 96 90 36 6 12 74 12 70 76 78 48 56

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 15:30
When creating a budget, log fixed expenses before income. after income. after savings. at the top.
Answers: 1
question
Computers and Technology, 23.06.2019 00:30
Pl i need the answer now ! which one of the following is considered a peripheral? a software b mouse c usb connector d motherboard
Answers: 1
question
Computers and Technology, 23.06.2019 06:00
Which statement is true of web-based social media? a.they allow consumers to interact with and update content. b.they cannot be updated easily, as compared to print media. c.they are expensive to produce and maintain, as compared to print and television. d.they can exist independent of the internet.
Answers: 1
question
Computers and Technology, 23.06.2019 15:00
Barbara is interested in pursuing a career in the science and math pathway. which qualifications will her reach that goal? a.an advanced knowledge of physics and math b.an advanced knowledge of engineering and math c. an advanced knowledge of physics and robotics an d. advanced knowledge of machinery and math
Answers: 2
You know the right answer?
Close the project and create a new one called 'Labo-Part3' with the same options as in the previous...
Questions
question
Mathematics, 27.01.2021 17:20
question
Computers and Technology, 27.01.2021 17:20
question
Mathematics, 27.01.2021 17:30
question
Mathematics, 27.01.2021 17:30
question
Mathematics, 27.01.2021 17:30
Questions on the website: 13722360