Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I Need The Second Question, Please a 1 (25) -Write function that takes the x-y 3 (30p) - Write a function that counts the number

image text in transcribed I Need The Second Question, Please

a 1 (25) -Write function that takes the x-y 3 (30p) - Write a function that counts the number of coordinates of a point in the Cartesian plane odd digits and even digits in an integer. The as parameters and printe a message telling function take the integer number and does not either an axis on which the point lies or the return any value. The function determines the quadrant in which it is found. number of odd digits and even digits and display results to user. Example: if the number is 142386 ON Result will be Odd digit count: 2 Even digit count: 4 4 (30p) - What does the following program output and Explain the output comming from where? (Only QIV Output even it is correct) or (only explanation even it is correct) or (wrong Explanation with correct answer) is zero pointi #include Samples //Prototypes It coordinates are (-1.0, -2.5).output void sp2(int al 1, int b[ 1); void spi(int a, int b); message should be quadrant III If coordinates are 10.0.. 4.8).output int main() { void sp3(int *a, int *b); message should be on the y-axis int a[2) - (1, 2); 2 (30p) -Write a function that determines int b[2] {8, 9); standart deviation of float array. The spica[e), a[1]); function takes dataset as a float array sp2(a, b); parameter 1 And it also return result as a sp3 (8[0], &b[1]); float. printf("xd, d, X, Xd ", a[@], a[1], b[), b[1]): (Clue: calculate average first) return 0; } Definations: // functions void splint a, int b){ int temp = a; (x - 2) ab; b. temp:) void sp2(int a 1, int b[ 16 - standard deviation int temp = a[0]: xi - each value of dataset a[e] = b[@]; * (with a bar over it) - the arithmetic mean b[@] - temp:) of the data. (This symbol will be indicated as void. sp3(int *a, int *b){ average of dataset) int tempa; N = the total number of data points *a*b; (if you need square root of some number you temp:) can use sort function in math.h library. Usage example: a-sqrt(b): which means "a" is equal to square root of "b

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: 3

blur-text-image

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

Intelligent Information And Database Systems Asian Conference Aciids 2012 Kaohsiung Taiwan March 2012 Proceedings Part 2 Lnai 7197

Authors: Jeng-Shyang Pan ,Shyi-Ming Chen ,Ngoc-Thanh Nguyen

2012th Edition

3642284892, 978-3642284892

More Books

Students also viewed these Databases questions