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

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
icon
Concept explainers
Question
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
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
5 4
S = >) 1*J
8- Write a program to find
5 4 5
s = >>>•+ K)
i=1 j=2 k=3
9- Write a program to find
**
x²
x3
ex = 1+
3!
n!
10- Write a program to find
x3
sin x = x -
3!
x5
x7
+...
7!
x(2n-1)
(-1)n+1,
|
5!
(2n – 1)!
Transcribed Image Text: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 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 5 4 S = >) 1*J 8- Write a program to find 5 4 5 s = >>>•+ K) i=1 j=2 k=3 9- Write a program to find ** x² x3 ex = 1+ 3! n! 10- Write a program to find x3 sin x = x - 3! x5 x7 +... 7! x(2n-1) (-1)n+1, | 5! (2n – 1)!
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Control Structure
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education