Reference no: EM13850012
Description:
Create a project called Daily8. Add a C source file to the project named daily8.c. Write a program that will prompt the user to enter a positive integer. Your program should then call a function that you write called loop_down_to_zero that takes one argument of type integer and will use a while loop as we did in class to print all of the integers from the number entered down to and including the number zero with
each number appearing on one line.
Next you should print one line containing four asterisks and a new line.
Finally your program should call another function that you write called loop_up_to_int that takes one argument of type integer and will use a while loop as we did in class to print all of the integers from zero up to and including the number entered from the keyboard.
Please note that you may NOT use recursion in this program, you must use a loop. Your functions may not call themselves.
A sample run of the program is given in the screenshot below:
At the top of your program you should have a comment section that follows the below format:
***********************************************
Author: Dr. Lin
Date: 9/19/2015
Answer to question: <Insert the answer to the following question: What happens if COMP 91.101 (201, 202, 204) Assignment 08, 09-21-2015 F15 - Dr. Lin the integer that you type is again big?
Say 10000 (or 300000 in Mac)? Why is this behavior different than what you sawwith your daily7?>
***********************************************/
This is how the output window looks like in Mac:
The molar heat capacity of nh3
: The molar heat capacity of NH3 (g) at constant pressure in J•mol-1•K-1= 29.75 + 25.1 x 10-3T - 1.55 x 105/T2, where T is the absolute temperature. What is the molar heat capacity at constant pressure at 298K and at 1000 K? What is the maximum value o..
|
Cost of appliance parts used in providing services to others
: The cost of Appliance Parts used in providing services to customers
|
Support for cloud-based strategies
: In this course, you are introduced to general Windows Server concepts like active directory, group policy, security, networking and IIS, access control, and much more. Now that you understand the basic concepts, we will delve a little deeper and l..
|
How does the right to privacy protect a women''s right
: utilize the Constitution, established case law, and scholarly sources to answer the following questions. How does the right to privacy protect a women's right to have an abortion or not?
|
Prompt the user to enter a positive integer
: Create a project called Daily8. Add a C source file to the project named daily8.c. Write a program that will prompt the user to enter a positive integer.
|
Define purposeful actors in the international system
: What IOs, or kinds of IOs, do you find the most effective or necessary and why. Please mention different types of IOs to explain
|
Is jci entitled to use the bfoq defense
: Numerous women, including a woman who had chosen to be sterilized to avoid losing her job, filed a lawsuit against JCI for sex discrimination. Is JCI entitled to use the BFOQ defense
|
Demonstrate strong corporate ethics
: lease discuss the ethical lessons that you learned in this class that will help you in the future. Research a company that demonstrates strong corporate ethics and discuss why the company is a good example of corporate ethics, leadership and applic..
|
How miranda vs arizona and subsequent rulings apply
: Students will analyze the following fact pattern and discuss how Miranda v. Arizona and subsequent rulings apply. Four police officers storm an apartment of a suspected drug trafficker with a history of illegal firearm possession
|