Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I would like this program in ANCI C, and I need the program TOGETHER, in ONE program, not separately, in sections, but together as a

I would like this program in ANCI C, and I need the program TOGETHER, in ONE program, not separately, in sections, but together as a whole, so that when it all compiles, there are no errors with each other. a) Create and call a function called numericalComputations(), without passing any parameters b) In the function, assign the value 100 to the int maximunNumber c) Display EACH result for EACH of the following computations: maximunNumber % 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 using printf and maximunNumber - 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 using printf and \t maximunNumber + 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 using printf and maximunNumber * 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 using printf and \t maximunNumber / 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 using printf and This means: compute maximunNumber with 1, then maximunNumber with 2, maximunNumber with 3 ... This function will have a total of 50 printf statements d) Create and call a function called sumOfNumbers(), without passing any parameters e) In the function, assign the value 100 to the int N. f) Using the sum of numbers formula: (1 + N)*(N/2) print the total amount of the sum of digits from 1 to 100 To find the sum of all the numbers from 1 to 100 (1 + 2 + 3 + 4 + . . + 100), the formula (1 + N)*(N/2) will do it. That is: (1 plus N quantity) times (N divided by 2). g) Create variables in the main() function and assign the corresponding values for: h) Your name i) Your mayor j) Amount of credits taken k) Amount of credits taking this semester l) This class's name m) Create and call a function named myInfo(..........), passing the above parameters n) In the function print: Hi my name is .. My major is .. I have completed .. credits. I and taking .. credits. This class's name is .. o) Do the same problem as problem 1 using a for loop. p) Do the same problem as problem 1 using a while loop. q) Find and print the sum of all numbers from 1 to 100 using a for loop, displaying "The sum of all numbers from 1 to 100 is ????".

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

Professional SQL Server 2000 Database Design

Authors: Louis Davidson

1st Edition

1861004761, 978-1861004765

More Books

Students also viewed these Databases questions

Question

b. What groups were most represented? Why do you think this is so?

Answered: 1 week ago