subject

Write a for loop to print all elements in coursegrades, following each element with a space (including the last). print forwards, then backwards. end each loop with a newline. ex: if coursegrades = {7, 9, 11, 10}, print: 7 9 11 10 10 11 9 7 hint: use two for loops. second loop starts with i = coursegrades. length - 1. (notes) note: these activities may test code with different test values. this activity will perform two tests, both with a 4-element array. see "how to use zybooks". also note: if the submitted code tries to access an invalid array element, such as coursegrades[9] for a 4-element array, the test may generate strange results. or the test may crash and report "program end never reached", in which case the system doesn't print the test case that caused the reported message.

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 10:30
Auniversity wants to install a client-server network. which feature do you think is important for them as they set up the network? sending email blocking multiple people to use the same file low security low set up cost limited access to files
Answers: 1
question
Computers and Technology, 23.06.2019 01:30
Jason works as an accountant in a department store. he needs to keep a daily record of all the invoices issued by the store. which file naming convention would him the most? a)give the file a unique name b)name the file in yymmdd format c)use descriptive name while naming the files d)use capital letters while naming the file
Answers: 3
question
Computers and Technology, 23.06.2019 05:20
Which operating system is a version of linux?
Answers: 1
You know the right answer?
Write a for loop to print all elements in coursegrades, following each element with a space (includi...
Questions
question
Social Studies, 25.03.2020 20:32
question
Mathematics, 25.03.2020 20:32
Questions on the website: 13722360