Hello fellow people i'm a new programmer and i have a problem with the
following two exsercises.please help:

1. Assume the following letters are sored in the array called
alphabet,B,J,K,Z,S.  Write and test a function called add
letter(),which accepts both the letter array and a new letter as an
argument,and inserts this new letter in the correct alphabetical order
in the alphabet array.


2. Write a program that stores the following prices in an array named
prices:9.92, 6.32, 12.63, 5.95 ,10.29.your program should also create
two arrays named amounts ant units,each capable of storing 5 double
precision numbers. Using a for loop and an if statement have your
program accept 5 user inputs into the units array when the program is
run.  Your program should store the product of the corresponding
values in the prices and units array

Reply via email to