1- Write a program to find the average of 50 numbers and print the result.
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...
Related questions
Question
![e lr:1
* Asiacell liı.
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
Average
86
1
Ali
Omar
2
76
3
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
i=1 j=1
8- Write a program to find
5 4 5
s =>>>*J + K)
i=1 J=2 k3
9- Write a program to find
e* = 1+
1!
2!
3!
n!
10- Write a program to find
x(2n-1)
x3
sin x = x
3!
x5
(-1)n+1.
(2n – 1)!](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F7ec9b7b0-40d5-4950-b497-1da9221967d2%2F18e11fa7-d079-4cc9-8c1d-737f300580dd%2Ftigpz69_processed.jpeg&w=3840&q=75)
Transcribed Image Text:e lr:1
* Asiacell liı.
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
Average
86
1
Ali
Omar
2
76
3
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
i=1 j=1
8- Write a program to find
5 4 5
s =>>>*J + K)
i=1 J=2 k3
9- Write a program to find
e* = 1+
1!
2!
3!
n!
10- Write a program to find
x(2n-1)
x3
sin x = x
3!
x5
(-1)n+1.
(2n – 1)!
Expert Solution
![](/static/compass_v2/shared-icons/check-mark.png)
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 4 steps with 2 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
Recommended textbooks for you
![Computer Networking: A Top-Down Approach (7th Edi…](https://www.bartleby.com/isbn_cover_images/9780133594140/9780133594140_smallCoverImage.gif)
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…](https://www.bartleby.com/isbn_cover_images/9780124077263/9780124077263_smallCoverImage.gif)
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)](https://www.bartleby.com/isbn_cover_images/9781337569330/9781337569330_smallCoverImage.gif)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
![Computer Networking: A Top-Down Approach (7th Edi…](https://www.bartleby.com/isbn_cover_images/9780133594140/9780133594140_smallCoverImage.gif)
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…](https://www.bartleby.com/isbn_cover_images/9780124077263/9780124077263_smallCoverImage.gif)
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)](https://www.bartleby.com/isbn_cover_images/9781337569330/9781337569330_smallCoverImage.gif)
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](https://www.bartleby.com/isbn_cover_images/9781337093422/9781337093422_smallCoverImage.gif)
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
![Prelude to Programming](https://www.bartleby.com/isbn_cover_images/9780133750423/9780133750423_smallCoverImage.jpg)
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
![Sc Business Data Communications and Networking, T…](https://www.bartleby.com/isbn_cover_images/9781119368830/9781119368830_smallCoverImage.gif)
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY