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

Elements Of Electromagnetics
7th Edition
ISBN:9780190698614
Author:Sadiku, Matthew N. O.
Publisher:Sadiku, Matthew N. O.
ChapterMA: Math Assessment
Section: Chapter Questions
Problem 1.1MA
icon
Related questions
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
1
2
Student name
Ali
Omar
Average
86
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
8- Write a program to find
54 5
=1 =2 k=3
9- Write a program to find
2! 3!
10- Write a program to find
x(2n-1)
sin x = x -
(-1)*+1.
(2n – 1)!
3! 5! 7!
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 1 2 Student name Ali Omar Average 86 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 8- Write a program to find 54 5 =1 =2 k=3 9- Write a program to find 2! 3! 10- Write a program to find x(2n-1) sin x = x - (-1)*+1. (2n – 1)! 3! 5! 7!
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Entropy
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, mechanical-engineering and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Elements Of Electromagnetics
Elements Of Electromagnetics
Mechanical Engineering
ISBN:
9780190698614
Author:
Sadiku, Matthew N. O.
Publisher:
Oxford University Press
Mechanics of Materials (10th Edition)
Mechanics of Materials (10th Edition)
Mechanical Engineering
ISBN:
9780134319650
Author:
Russell C. Hibbeler
Publisher:
PEARSON
Thermodynamics: An Engineering Approach
Thermodynamics: An Engineering Approach
Mechanical Engineering
ISBN:
9781259822674
Author:
Yunus A. Cengel Dr., Michael A. Boles
Publisher:
McGraw-Hill Education
Control Systems Engineering
Control Systems Engineering
Mechanical Engineering
ISBN:
9781118170519
Author:
Norman S. Nise
Publisher:
WILEY
Mechanics of Materials (MindTap Course List)
Mechanics of Materials (MindTap Course List)
Mechanical Engineering
ISBN:
9781337093347
Author:
Barry J. Goodno, James M. Gere
Publisher:
Cengage Learning
Engineering Mechanics: Statics
Engineering Mechanics: Statics
Mechanical Engineering
ISBN:
9781118807330
Author:
James L. Meriam, L. G. Kraige, J. N. Bolton
Publisher:
WILEY