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

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
%9. li. N e
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
1
Ali
86
Omar
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
S =
8- Write a program to find
(I.J + K)
9- Write a program to find
e = 1
2!
n!
10- Write
program to find
(-1)n+1_x2n-1)
(2n - 1)
sin x =x
31
5!
7!
II
<>
Transcribed Image Text:%9. li. N e 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 1 Ali 86 Omar 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 S = 8- Write a program to find (I.J + K) 9- Write a program to find e = 1 2! n! 10- Write program to find (-1)n+1_x2n-1) (2n - 1) sin x =x 31 5! 7! II <>
Expert Solution
steps

Step by step

Solved in 5 steps with 2 images

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.
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