Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1/2 Programming for Engineers (2017/18) 1) Design a C program for the following problems and submit t as one C source 2) Write a report

image text in transcribed
1/2 Programming for Engineers (2017/18) 1) Design a C program for the following problems and submit t as one C source 2) Write a report includes your C code, best resuts, submit t as one pat file The commented C source code and the report should be submitted on e-Submission by 4pm Thursday 16th November 2017 The objectve for the Main Project toprogram a menu dven system that wil give the user a choice ofthe options as follows 1) Ask user to enter student candidate number, calculate the sum of the digis the sum is an even number, show the square of (sum2), otherwise show the (10 Marks) oube of (sum-1)/2 2) Calculate the roots of a quadratic equation ax: +bx + c . 0-when -4ac 0. Ask the user to supply the values a, b and e and the program will then caloulate the (10 Marks) roots using the function e use user defined function) structure to calculate + 1)"- by a user input integer 3) Prompt the user for two real numbers (a and ) and an integer (n). Use a loop (10 Marks) Find the number and sum of al integers between 200 and 300 which are divisible (10 Marks) 4) 5) Ask user to enter the following array data, then prompt user to enter a number to replace the last element (2017) in the aray. Dsplay the product of the data in the updated array 12 2017 (10 Marks) 6)Prompt user to enter three numbers, fnd the maximn, nmber armong the (10 Marks) numbers using a pointer 7) Load the data fle (data txt) which is given on the next page, into an aray belore presenting the user with a further options menu 40 Marks) )Print out the values b) Find the maximum value c) Calculate the RMS (root mean square) d) Count he number of negative values e) Ext back to main menu Note: In this option, the C program should: Use funcsion calls for each of the active options

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_step_2

Step: 3

blur-text-image_step3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Students also viewed these Databases questions