Write a c program and define a function

Assignment Help C/C++ Programming
Reference no: EM131249628

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 <string.h> 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.

Reference no: EM131249628

Questions Cloud

Implement to increase customer retention : 1. Explain why customer satisfaction may not be enough to keep customers loyal. 2. What strategies can a marketer implement to increase customer retention?
Emphasize treatment in your research and presentation : Emphasize treatment in your research and presentation (up to date knowledge of treatment approaches). You can also add additional information that you think is important for therapist to know.
Commercial building still under construction : A trendy restaurant is one of the first businesses to open in a small corner of a commercial building still under construction. The restaurant has received rave reviews and has lines of diners waiting for tables most nights.
Sketch the budget constraint associated : Assuming that it is impossible to sell the vouchers, sketch the budget constraint asso- ciated with $5 in cash, and show how the constraint changes when Oedipus receives $20 in vouchers in addition. Please make your drawing on the figure at the en..
Write a c program and define a function : EEL 2161 Electrical Engineering Computer Methods- Fall 2016 Assignment. 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
Does the stoic view of character appeal to you : Compare and constrast Kant's position to Humes position on character and Can you defend Mill's stand on character?
What are important dynamics that provide success for team : Some history and background are needed for introduction and why you selected your team. What are the most important dynamics that provide success for your team and what can be done to improve their performance?
What is the mutual information of the source and receiver : A source X sends 0's and 1's with probabilities π and 1-π, respectively, to a receiver Y. - What is the mutual information of the source and receiver?
Define a business problem including problem statement : Define a business problem including problem statement, purpose, objective and any research questions you want to answer with the research..

Reviews

len1249628

10/20/2016 5:15:47 AM

You don't have to send me the C files. Just copy the programming and paste it in a word doc, so then i go myself and copy and paste to my C files. 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.

Write a Review

C/C++ Programming Questions & Answers

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd