c programming arrays help

Anonymous
timer Asked: Nov 20th, 2013
account_balance_wallet $5

Question Description

Type your programming question here...

  1. Consider the following function main and copy it into a file to be run later:

#include <stdio.h>

int main()

{

int alpha[20];

int beta[20];

int gamma[4];

int delta[10];

gamma[0]  = 11; gamma[1]  = 13; gamma[2]  = 15; gamma[3]  = 17;

delta[0] = 3; delta[1] = 5; delta[2] = 2; delta[3] = 6; delta[4] = 10;


a.  create the code that prompts the user to input 20 numbers and stores the numbers into alpha.

b.  write the code that initializes the elements in beta to 2 times the corresponding values in alpha. Make sure NOT to modify the values in alpha.

c.  create the code that displays all of the values in alpha.

(submit has hw9.5.c and hw9.5 (output))


Tutor Answer

usmanghani62
School: Boston College

increase the pledge i will do it for you.

flag Report DMCA
Review

Anonymous
Excellent job

Similar Questions
Hot Questions
Related Tags
Study Guides

Brown University





1271 Tutors

California Institute of Technology




2131 Tutors

Carnegie Mellon University




982 Tutors

Columbia University





1256 Tutors

Dartmouth University





2113 Tutors

Emory University





2279 Tutors

Harvard University





599 Tutors

Massachusetts Institute of Technology



2319 Tutors

New York University





1645 Tutors

Notre Dam University





1911 Tutors

Oklahoma University





2122 Tutors

Pennsylvania State University





932 Tutors

Princeton University





1211 Tutors

Stanford University





983 Tutors

University of California





1282 Tutors

Oxford University





123 Tutors

Yale University





2325 Tutors