Answered step by step
Verified Expert Solution
Link Copied!
Question
1 Approved Answer

C-Lab 1-InLabExercises-Section 5V2 - Word REVIEW VIEW DUT REFERENCES MAILINGS A 2. d AaBbcc * Normal No Spac Heading 1 Heading 2 Heading 3 Heading

image text in transcribed
C-Lab 1-InLabExercises-Section 5V2 - Word REVIEW VIEW DUT REFERENCES MAILINGS A 2. d AaBbcc * Normal No Spac Heading 1 Heading 2 Heading 3 Heading 4 Styles Paragraph 1 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 enter 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 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: al 453218@std.psu.edu jo Faster the first number: 999 Enter the second number: 999 The result is 1998 ED STATES) O

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_2

Step: 3

blur-text-image_3

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

Excel As Your Database

Authors: Paul Cornell

1st Edition

1590597516, 978-1590597514

More Books

Students explore these related Databases questions