Example I/O layout: Enter radius of a circle: 5.0 Area of a circle: routput the result in function areaCirc(int *, int *) Circumference of a circle: "output the result in function circumCircle(int *, int *) */ Diameter of a circle: "output the result in function diamCirc(int *, int *) */ Enter two numbers to swap: a=6 b= 10 "example user inputted yalu for a*/ * example inputted value for b */ Their swap values are a = 10 and b=5 /"output the result of function swap(int ",int *) */ Enter an integer value: 10 The value 10 is an EVEN number. Il samle output if x is even CUBE of 10 is 1000 4. Compress and submit the folder with the project. Sample Output if Applicable A Z:ICCS122-1L13FBC-1\EXER13.EXE Enter radius of a circle: 45 Sircumference of a circle: 282.74 biameter of a circle: 90 Enter two numbers to swap: 100 250 a = 100

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
CCS122_exer_pointer [Read-Only] [Compatibility Mode] - Word
Ace Jan C. Lape
File
Home
Insert
Design
Layout
References
Mailings
Review
View
Help
O Tell me what you want to do
& Share
X Cut
P Find -
Arial
- 11
A A Aa -
AABBCCL AABBC AaBbCc[ AaBbCcl AaBbCcD AaBbC
akc Replace
A Select -
EE Copy
BIU - abe x, x²
A - aly
Paste
- A-
Emphasis Heading 1 1 Normal
Strong
Subtitle
Title
Format Painter
Clipboard
Font
Paragraph
Styles
Editing
Example I/O layout:
Enter radius of a circle: 5.0
Area of a circle:
*output the result in function areaCirc(int *, int *)
*/
Circumference of a circle: *output the result in function circumCircle(int *, int *) */
Diameter of a circle: *output the result in function diamCirclint *, int *) *i
Enter two numbers to swap:
a=6
b= 10
*example user inputted valu for a*/
* example inputted value for b */
Their swap values are a = 10 and b=5 /*output the result of function swap(int *,int *) */
Enter an integer value: 10 <sample input>
The value 10 is an EVEN number. Il samle output if x is even
CUBE of 10 is 1000
4. Compress and submit the folder with the project.
Sample Output if Applicable
CA Z:\CCS122-1\L13FBC~1\EXER13.EXE
Enter radius of a circle: 45
Area of a circle: 6361.74
Circumference of a circle: 282.74
Diameter of a circle: 90
Enter two numbers to swap: 100 250
a = 100
b = 250
Their swap values are a=250 and b=100
Enter an integer value: 69
The value 69 is an ODD number.
Square of 69 is 4761
Remarks
Page 2 of 2
425 words
DE English (United States)
+ 100%
10:16 pm
J 4) ENG
05/04/2022
近
Transcribed Image Text:CCS122_exer_pointer [Read-Only] [Compatibility Mode] - Word Ace Jan C. Lape File Home Insert Design Layout References Mailings Review View Help O Tell me what you want to do & Share X Cut P Find - Arial - 11 A A Aa - AABBCCL AABBC AaBbCc[ AaBbCcl AaBbCcD AaBbC akc Replace A Select - EE Copy BIU - abe x, x² A - aly Paste - A- Emphasis Heading 1 1 Normal Strong Subtitle Title Format Painter Clipboard Font Paragraph Styles Editing Example I/O layout: Enter radius of a circle: 5.0 Area of a circle: *output the result in function areaCirc(int *, int *) */ Circumference of a circle: *output the result in function circumCircle(int *, int *) */ Diameter of a circle: *output the result in function diamCirclint *, int *) *i Enter two numbers to swap: a=6 b= 10 *example user inputted valu for a*/ * example inputted value for b */ Their swap values are a = 10 and b=5 /*output the result of function swap(int *,int *) */ Enter an integer value: 10 <sample input> The value 10 is an EVEN number. Il samle output if x is even CUBE of 10 is 1000 4. Compress and submit the folder with the project. Sample Output if Applicable CA Z:\CCS122-1\L13FBC~1\EXER13.EXE Enter radius of a circle: 45 Area of a circle: 6361.74 Circumference of a circle: 282.74 Diameter of a circle: 90 Enter two numbers to swap: 100 250 a = 100 b = 250 Their swap values are a=250 and b=100 Enter an integer value: 69 The value 69 is an ODD number. Square of 69 is 4761 Remarks Page 2 of 2 425 words DE English (United States) + 100% 10:16 pm J 4) ENG 05/04/2022 近
CCS122_exer_pointer [Read-Only] [Compatibility Mode] - Word
Ace Jan C. Lape
File
Home
Insert
Design
Layout
References
Mailings
Review
View
Help
O Tell me what you want to do
& Share
X Cut
P Find -
Arial
- 11
- A A Aa -
AABBCCL AABBC AaBbCc[ AaBbCcl AaBbCcD AaBbC
akc Replace
A Select -
EE Copy
Paste
BI U - abe x, x A - ay - A
Emphasis
Heading 1
I Normal
Strong
Subtitle
Title
Format Painter
Clipboard
Font
Paragraph
Styles
Editing
1. Create a project named "batch_10_01" inside "batch_10_01" folder.
2. Create the header file "pointer h" and define the methods of the following
functions using pointers as function parameters:
void areaCircle(int *radius, int *acirc)
{
/*compute the area of a circle and store the result to
the variable pointed by *acirc */
}
void circumCircle(int *radius.int *circumCircle)
{
*compute the circumference of a circle andd store the result
to the variable pointed by *circumCircle */
}
void diaCirc(int *radius, int diamCirc)
{/*compute the diameter of a circle andd store the result
to the variable pointed by *diamCirc */
}
void swap(int *a, int *b)
{
* write methods that will swap the value of a and b, such that
the value of a is b and b is a.
Example:
Values of a and b BEFORE
swap()
a=10
b=20
Values of a and b AFTER
swap()
a=20
b=10 */
}
void squareOrCube(int *x, int *result)
{
if the value of the variable pointed by x is ODD compute for the Square of
the number, where result=x * x. If it is EVEN compute for the cube of the
number, where result= x*x*x */
}
3. Create a file named "pointer.c" and include the header file "pointer h"
Implement all functions defined in the header file "pointer.h." in main() (from another
File – pointer test.c. All data inputs are done only in main().
Page 1 of 2
425 words
DE English (United States)
+ 100%
10:16 pm
J 4) ENG
05/04/2022
近
Transcribed Image Text:CCS122_exer_pointer [Read-Only] [Compatibility Mode] - Word Ace Jan C. Lape File Home Insert Design Layout References Mailings Review View Help O Tell me what you want to do & Share X Cut P Find - Arial - 11 - A A Aa - AABBCCL AABBC AaBbCc[ AaBbCcl AaBbCcD AaBbC akc Replace A Select - EE Copy Paste BI U - abe x, x A - ay - A Emphasis Heading 1 I Normal Strong Subtitle Title Format Painter Clipboard Font Paragraph Styles Editing 1. Create a project named "batch_10_01" inside "batch_10_01" folder. 2. Create the header file "pointer h" and define the methods of the following functions using pointers as function parameters: void areaCircle(int *radius, int *acirc) { /*compute the area of a circle and store the result to the variable pointed by *acirc */ } void circumCircle(int *radius.int *circumCircle) { *compute the circumference of a circle andd store the result to the variable pointed by *circumCircle */ } void diaCirc(int *radius, int diamCirc) {/*compute the diameter of a circle andd store the result to the variable pointed by *diamCirc */ } void swap(int *a, int *b) { * write methods that will swap the value of a and b, such that the value of a is b and b is a. Example: Values of a and b BEFORE swap() a=10 b=20 Values of a and b AFTER swap() a=20 b=10 */ } void squareOrCube(int *x, int *result) { if the value of the variable pointed by x is ODD compute for the Square of the number, where result=x * x. If it is EVEN compute for the cube of the number, where result= x*x*x */ } 3. Create a file named "pointer.c" and include the header file "pointer h" Implement all functions defined in the header file "pointer.h." in main() (from another File – pointer test.c. All data inputs are done only in main(). Page 1 of 2 425 words DE English (United States) + 100% 10:16 pm J 4) ENG 05/04/2022 近
Expert Solution
steps

Step by step

Solved in 2 steps with 3 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY