Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

YouTube X C Get Homework Help With Cheg X CATS: CSC1001- Programming X Microsoft Word - OSE 1001 - Ass X - CSE X Microsoft

image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribed

YouTube X C Get Homework Help With Cheg X CATS: CSC1001- Programming X Microsoft Word - OSE 1001 - Ass X - CSE X Microsoft Word - CSC1001- Assix + c cats.iku.edu.tr/access/content/attachment/469731cf ab6b-1df8-bcid 9f2cf0bc1030/Assignments/fae321cc d519 1cb3-ba23-7492e_1d5c898/CSE1001%20-%20Assignment_3.pdf Write a C program that provides each of the following tasks as separate functions. 1- Calculate the result of following formula: f(x) = 270 = 1 + x + +*+... 2- Calculate the Roots of Quadratic Formula A quadratic equation can have either one or two distinct real or complex roots depending upon nature of discriminant of the equation. Where discriminant of the quadratic equation is given by A = b2-4.a. If discriminant is positive. Then there are two real distinct roots given by -b+va and -b- 3- Perfect Number Checker A perfect number is a positive integer that is equal to the sum of its positive divisors, excluding the number itself. For instance, 6 has divisors 1, 2 and 3 (excluding itself), and I + 2 + 3 = 6, so 6 is a perfect number. For instance, 28 is perfect as I + 2 + + + 7 + 14 = 28. 4- Prime Number Checker 5- Binary to Decimal Conversion 6- Exit Write an additional function menu which has the following prototype; int menu (void); Aramak iin buraya yazn O FI CU 22:10 8.01.2021 Youtube X C Get Homework Help With Cheg X CATS: CSC1001- Prograinining! x Microsoft Word - CSE1001- Ass X Microsoft Word - CSE1001 - Assix + c cats.iku.edu.tr/access/content/attachment/469731cf ab6b-1df8-bcid 9f2cf0bc1030/Assignments/fae321cc d519 1cb3-ba23-7492e_1d5c898/CSE1001%20-%20Assignment_3.pdf 5. Binary to Decimal Conversion 6-Exir Write an additional function menu which has the following prototype, int menu (void); Function menu let user select an option between the numbers given above 1 and 6. The proper function based on the return value of menu() must be called in an infinite loop in main() function. The program must continue as long as user does not enter 6. Assignment Rules: Be sure that your outputs are the same as the sample screens. Pay attention to programming conventions such as indentation, comment lines etc, which affect your grades. Cheating and similarity in assignments will not be tolerated. Put your projects in a folder with your name and upload using CATS system in compressed form (e.g. stdNumber_NameSurname.rar which includes your project with source code and sample screenshots) Give a comment box before each function Do NOT send your assignments by e-mail. SAMPLE OUTPUTS: Aramak iin buraya yazn O 22:11 8.01.2021 YouTube X C Get Homework Help With Cheg X CATS: CSE1001- Programming X Microsoft Word - CSE 1001 - Ass X Microsoft Word - CSE1001 - Assix + c cats.iku.edu.tr/access/content/attachment/469731cf ab6b-1df8-bcid 9f2cf0bc1030/Assignments/fae321cc d519 1cb3-ba23-7492e_1d5c898/CSE1001%20-%20Assignment_3.pdf SAMPLE OUTPUTS: **SELECT AN OPTION BELOW 1 - Write a function to calculate the formula fix) - 1 + x + x^2/21 + x3/31 + x^4/41+. 2 - Moots of Quadratic Formula 3 - Perfect Number Function 4 - Prime Number Function 5 - Convert Binary to Decimal 6 - Exitit Enter x and the limit..13 the result is 2.67 LESELECT AN OPTION BELOM 1. Write a function to calculate the formula f(x) = 1 + x + x2/2! + x3/3! **4/4! .... Rosts of Ouadratie formula 3 - Perfect Nuster function Prime Number Function Convert Binary to Decimal 6 Exit.. **SELECT AN OPTION BELOW 1. Write a function to calculate the formula f(x) = 1 + x + x^2/21 + x^3/3! + x^4/4! + ... 2 - Roots of Quadratic Formula 3 - Perfect Number Function 4 - Prise Number Function 5 - Convert Binary to Decimal Exit.. Enter x and the limit..)23 The result is 6.31 **SELECT AN OPTION BELOW** - Write a function to calculate the formula f(x) = 1 + x + x^2/21 + x^3/31 + x^4/4 + ... x) = 1 2+ 41 Roots of Quadratic Formula Perfect Number Function 4. Prime Number Function Convert Binary to Decleal Exit. Enter coefficients a, b and c: 25-3 rooti - 8.58 and root2 - -3.00 Aramak iin buraya yazn OBI CU 22:11 8.01.2021 Youtube Get Homework Ielp With Chegy X CATS: CSC1001- Programining X Microsoft Word - CSE 1001 - Ass X Microsoft Word - CSE1001 - Assix + C cats.iku.edu.tr/access/content/attachment/1f9731cf ab6b 1df8 bc1d9f2cf0bc1030/Assignments/fae321cc d519-1cb3-ba23-7492e_1d5c898/CSE1001%20-%20Assignment_3.pdf * Microsoft Word - CSE1001 - Assignment03.docx 3 / 3 **SELECT AN OPTION BELOW 1 - Write function to calculate the formula f(x) = 1 +*+ **2/21 + x^3/31 + **6/41 +... Roots of Quadratic Formula Perfect Number Function Prime Number Function Convert Binary to Decimal Exit.. Enter a number for perfect number checking> 28 The number 28 is perfect.. Enter a number for perfect number checking> 33 The number 33 Is NOT perfect.. SELECT AN OPTION BELOW** 1 - Write a function to calculate the formula f(x) = 1 + x + x^2/21 + x^3/31 + x^4/4 + ... 2 - Roots of Quadratic Formula 3. Perfect Number Function 4. Prime Number Function 5 - Convert Binary to Decimal Enter a number for prime number checking 17 The number 17 is Prine.. Enter a number for prime number checking> 16 The number 16 is NOT Prime **SELECT AN OPTION BELOW** 1 - Write a function to calculate the formula f(x) - 1+*+ **2/21 + **3/31 + **1/4 + Roots of Quadratic Formula Perfect Number Function Prime Number Function Convert Binary to Decimal 6 - Exit. Enter a number in binary form> 11111 Decinal equivalent of 11111 is 31.. Enter a number in binary form> 1001 Decimal equivalent of 1001 is 9.. Ekran grnts kaydedildi Ekran grnts OneDrive'nza eklendi. OneDrive Aramak iin buraya yazn o 22:11 8.01.2021

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

Database Concepts International Edition

Authors: David M. Kroenke

6th Edition International Edition

0133098222, 978-0133098228

More Books

Students also viewed these Databases questions