Computers and Technology

Write a program that declares three one-dimensional arrays namedprice, quantity and amount. each array should be declared and should be capable of holding 10 double-precisionnumbers. the numbers that should be stored in price are 10.62,14.89, 13.21, 16.55, 18.62, 9.47, 6.58, 18.32, 12.15, 3.98. thenumbers that should be stored in quantity are 4, 8.5, 6, 8.35, 9,15.3, 3, 5.4, 2.9, 4.8. your program should pass these arrays to afunction called extend which should calculate the elemnts inthe amount array as the product of the equivalent element in theprice and quantity arrays.

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 13:30, 21megoplin
In which phase does software coding and testing happen in the spiral model? the spiral model does not have a separate testing phase. both, software coding and testing occurs during the phase.
Answers: 3
image
Computers and Technology, 22.06.2019 14:30, qxchung7310
The “rule of 72” is used to approximate the time required for prices to double due to inflation. if the inflation rate is r%, then the rule of 72 estimates that prices will double in 72/r years. for instance, at an inflation rate of 6%, prices double in about 72/6 or 12 years. write a program to test the accuracy of this rule. for each interest rate from 1% to 20%, the program should display the rounded value of 72/r and the actual number of years required for prices to double at an r% inflation rate. (assume prices increase at the end of each year.)
Answers: 1
image
Computers and Technology, 23.06.2019 06:10, erick7123
The head restraint should be adjusted so that it reaches a. the top of your ears b. the base of your skull c. the top of the head
Answers: 1
image
Computers and Technology, 23.06.2019 22:30, keel5468
You draw two cards from a standard deck of 52 cards, but before you draw the second card, you put the first one back and reshuffle the deck. (a) are the outcomes on the two cards independent? why?
Answers: 3
Do you know the correct answer?
Write a program that declares three one-dimensional arrays namedprice, quantity and amount. each arr...

Questions in other subjects:

Konu
Mathematics, 04.09.2019 07:10