1- Write a program to find the average of 50 numbers and print the result.

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
2 0:20 A %0)
SHEET NO.2.pdf
->
Sheet No.2
1- Write a program to find the average of 50 numbers and print the result.
2- Write a program to find the sum of the even numbers between 1&1000
3- Write a program to read marks for 50 students in 3 subjects and then find the average for
every student and print:
Student number
Student name
Ali
Average
86
1
2
Omar
76
50
4- Write a program that reads the average of 30 students and find the number of pass
students , the number of fail students then print the results.
5- Write a program that reads 20 numbers then find the number of negative and positive
numbers and the number of numbers equal to zero .and print the results.
6- Write a program to read three numbers A,B,C then find whether A,B,C can form the sides of
a triangle, if yes compute the parameter of the triangle , if no print the massage ( not a
triangle), then determine whether A,B,C form the side of an (a)) equilateral triangle ,b))
isosceles triangle ,c)) right angle triangle
Hint: ( A,B,C can form a triangle if each side is less than the sum of the other two sides)
7- Write a program to find
S =
8- Write a program to find
S =
(IJ + K)
9- Write a program to find
1!
2!
3!
10- Write a program to find
x3
sin x = x -
3!
x7
+ *** .... (-1)n+1 x(2n-1)
5!
(2n – 1)!
...
Transcribed Image Text:2 0:20 A %0) SHEET NO.2.pdf -> Sheet No.2 1- Write a program to find the average of 50 numbers and print the result. 2- Write a program to find the sum of the even numbers between 1&1000 3- Write a program to read marks for 50 students in 3 subjects and then find the average for every student and print: Student number Student name Ali Average 86 1 2 Omar 76 50 4- Write a program that reads the average of 30 students and find the number of pass students , the number of fail students then print the results. 5- Write a program that reads 20 numbers then find the number of negative and positive numbers and the number of numbers equal to zero .and print the results. 6- Write a program to read three numbers A,B,C then find whether A,B,C can form the sides of a triangle, if yes compute the parameter of the triangle , if no print the massage ( not a triangle), then determine whether A,B,C form the side of an (a)) equilateral triangle ,b)) isosceles triangle ,c)) right angle triangle Hint: ( A,B,C can form a triangle if each side is less than the sum of the other two sides) 7- Write a program to find S = 8- Write a program to find S = (IJ + K) 9- Write a program to find 1! 2! 3! 10- Write a program to find x3 sin x = x - 3! x7 + *** .... (-1)n+1 x(2n-1) 5! (2n – 1)! ...
Expert Solution
steps

Step by step

Solved in 4 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