What is a socket descriptor? Draw its structure and explain its components
Compute and display the grade of a student in the exam. Grade is equal to 1/3 of the minor exam and 2/3 of the major exam.
Compute and display the grade of a student in the exam. Grade is equal to 1/3 of the minor exam and 2/3 of the major exam.
Input Output
Start: 0 0, 2, 4, 6, 8
Step: 2 count: 4
Stop: 8 sum: 20
Start: 2 2, 6, 10
Step: 4 count: 3
Stop: 12 sum: 18
Start: 1 1, 2, 3, 4, 5
Step: 1 count: 5
Stop: 5 sum: 15
This should be what I'll see when I run the program like this below:
SCREEN LAYOUT / DESIGN
START: 0
STEP: 2
STOP: 10
SSS: 0 2 4 6 8 10
COUNT: 6
SUM: 30
Try Another [Y/N]:Y
I want you to make an array of numbers for me. All you have to do is make a program that will let me input any random integer in one line. Afterwards, it will then print out all the numbers I've inputted, backwards, on separate lines.
Care to do that for me?
Input
The first line contains the size of the array.
The next line contains the integers separated by a space.
5
1·64·32·2·11Output
Multiple lines containing integers on each.
11
2
32
64
1