AaBbCcDd AaBbCeDd AaBbCc Aal 1 Normal 1 No Spac. Heading 1 Headi 2 Paragraph Using comments em Description put using any selection statement, develop and run a C program that isplays your information properly: student name, id, section number, instruc mail

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
C-Lab1-InLabExercises-SectionSV2- Word
OUT
REFERENCES
MAILINGS
REVIEW
VIEW
* 21 1 AaBbCcDd AaBbCcDd AaBbCc AaBbt AaBbCcDr AaBbCc
1 Normal 1 No Spac. Heading 1 Heading 2 Heading 3 Heading 4
Styles
Paragraph
V Using comments
Problem Description
Without using any selection statement, develop and run a C program that
- Displays your information properly: student name, id, section number, instructor name, and student
email
Declare 2 arrays of integers, each array of size 3. The arrays should be called first and second
Declare an arrays of integers of size 4 called result
- Prompts (asks) the user to gnter.two positive integers, each integer of exactly 3 digits (such as 361).
- Read in each number using a single statement
Note: Assume the user will enter a proper number of exactly 3 digits, no need to check for improper input
The program inserts the 3 digits of the first number in the array called first.
Similarly, the program inserts the 3 digits of the second number in the array called second.
After that, the program finds the sum of the two numbers by doing summation of the values in the
two arrays cells and puts the output in the array "result".
Each cell in result array must contain one digit only.
Do not attempt to do summation without using the arrays. (you get 0 if you do the summation
without using arrays)
- Do not use any selection statement (you lose 3 marks if you use a selection statement)
- Add your name title, and email address as a comment at the beginning of the program.
Sample output :
Student name: Ali Zaid
Student id : 453218
Instructor Name: Abdullah Aref
Student Email: ali453218@std.psut.edu. jo
Enter the first number: 999
Enter the second number: 999
The result is 1998
ED STATES)
Transcribed Image Text:C-Lab1-InLabExercises-SectionSV2- Word OUT REFERENCES MAILINGS REVIEW VIEW * 21 1 AaBbCcDd AaBbCcDd AaBbCc AaBbt AaBbCcDr AaBbCc 1 Normal 1 No Spac. Heading 1 Heading 2 Heading 3 Heading 4 Styles Paragraph V Using comments Problem Description Without using any selection statement, develop and run a C program that - Displays your information properly: student name, id, section number, instructor name, and student email Declare 2 arrays of integers, each array of size 3. The arrays should be called first and second Declare an arrays of integers of size 4 called result - Prompts (asks) the user to gnter.two positive integers, each integer of exactly 3 digits (such as 361). - Read in each number using a single statement Note: Assume the user will enter a proper number of exactly 3 digits, no need to check for improper input The program inserts the 3 digits of the first number in the array called first. Similarly, the program inserts the 3 digits of the second number in the array called second. After that, the program finds the sum of the two numbers by doing summation of the values in the two arrays cells and puts the output in the array "result". Each cell in result array must contain one digit only. Do not attempt to do summation without using the arrays. (you get 0 if you do the summation without using arrays) - Do not use any selection statement (you lose 3 marks if you use a selection statement) - Add your name title, and email address as a comment at the beginning of the program. Sample output : Student name: Ali Zaid Student id : 453218 Instructor Name: Abdullah Aref Student Email: ali453218@std.psut.edu. jo Enter the first number: 999 Enter the second number: 999 The result is 1998 ED STATES)
Expert Solution
steps

Step by step

Solved in 3 steps with 1 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