Eel 2161 electrical engineering computer methods- fall 2016


Electrical Engineering Computer Methods Assignment

Q1. Write the pseudocode, the flow chart and then code a C program that shows a "Main Menu" where the user to can select an operation to be perform for two floats:

a) Add   

b) Subtract 

c) Multiply  

d) Divide

Then you can enter:

Number1        

Number 2   

Ask the use to continue and return to the main menu or exit

Hint. Use Functions

Q2. Using Arrays (and Strings), write the pseudocode, the flow chart and then code a C program to do the next:

  • Ask the user the number of last names to enter (up to 20)
  • Sort the last names in Descending alphabetical order
  • Print the sorted last names

Hint: Check on the   #include library and the strcmp (String compare), and strcpy (String copy) functions.

Q3. Write a C program and define a function that will calculate the average of an arbitrary number of floating point values that are passed to the function in an array. Demonstrate the operation of this function by implementing a program that will accept an arbitrary number of values entered from the keyboard, and output the average.

Q4. Write a C program containing different functions to calculate following quantities for any given floating point values array:

Minimum value

Maximum value

Average

Standard Deviation

https://www.mathsisfun.com/data/standard-deviation.html (In case you need it)

Q5. Write a C function to sort an array of ten integer values in ascending order. The function will accept two arguments-- a pointer that points to the array and the array size. The function returns a pointer that point to the sorted array.

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: Eel 2161 electrical engineering computer methods- fall 2016
Reference No:- TGS01653468

Expected delivery within 24 Hours