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, 21.06.2019 22:00
Problems: 1. using textbooks, reference books, and internet as your source of research, draw the following microprocessor microarchitectures i. intel 8086 ii. motorola 68000 i atmel atmega32 iv. mips single cycle v. arm cortex-m3 write an hdl module for a hexadecimal seven-segment display decoder. the input is 4-bit binary representing a hex number (0-f), and the output is 8-bit seven segment display bits (a-h). thus, the decoder must handle the digits 10 - 15 to display a-f respectively, in addition to 0-9 numbers. 2. design a 4-bit left and right rotator (both outputs). first sketch schematic diagrams of your design. then implement your design using hdl coding. 3. 4. design a modified priority encoder that receives an 8-bit input, a7: 0 and produces a 3-bit output, y2o. y indicates the most significant bit of the input that is true. y should be 0 if none of the inputs are true. give a simplified boolean equation, sketch a schematic, and write an hdl code. 5.write an 8: 1 multiplexer module called mux8 with selection inputs s, data input d, and data output y. data input (d) and data output (v) are 32-bit wide
Answers: 3
question
Computers and Technology, 22.06.2019 11:10
The total cost of textbooks for the term was collected from 36 students. create a histogram for this data. $140 $160 $160 $165 $180 $220 $235 $240 $250 $260 $280 $285 $285 $285 $290 $300 $300 $305 $310 $310 $315 $315 $320 $320 $330 $340 $345 $350 $355 $360 $360 $380 $395 $420 $460 $460
Answers: 2
question
Computers and Technology, 23.06.2019 07:50
Apython programming question: assume s is a string of lower case characters. write a program that prints the number of times the string 'bob' occurs in s. for example, if s = 'azcbobobegghakl', then your program should print number of times bob occurs is: 2
Answers: 3
question
Computers and Technology, 23.06.2019 13:30
Anetwork security application that prevents access between a private and trusted network and other untrusted networks
Answers: 1
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, 16.11.2020 20:40
question
Mathematics, 16.11.2020 20:40
question
English, 16.11.2020 20:40
question
English, 16.11.2020 20:40
question
Mathematics, 16.11.2020 20:40
Questions on the website: 13722366