برنامج الاحصاء النسخه 21 الي تشتغل ونعتمدها 👇🏻👇🏻
اخوان اخوات
الي امتحن OOP وبمجموعه A1 و A2 خل يدزلي الاسئلة
الي امتحن OOP وبمجموعه A1 و A2 خل يدزلي الاسئلة
//(using methods) , write a program to read a two dimension ,
and return the number of odd elements of each coloumn in one dimensional array.
//(Bases on OOP) , write a program to creat a class called "person" with attributes"id,name,birth_year,and age"
with methods to print the information and calculate the age (2023-birth_year)
make a list of three persons in the main section.
هاي A3
and return the number of odd elements of each coloumn in one dimensional array.
//(Bases on OOP) , write a program to creat a class called "person" with attributes"id,name,birth_year,and age"
with methods to print the information and calculate the age (2023-birth_year)
make a list of three persons in the main section.
هاي A3
Forwarded from Zainab jasim almosawy🍊
package exam;
public class Student {
String name;
int age;
int marks[]=new int[6];
double average;
Student(String name, int age, int[] marks) {
this.name = name;
this.age = age;
this.average = average;
for (int i=0; i<6; i++)
this.marks[i] = marks[i];
}//Student
double average(){
double sum=0;
for (int i=0; i<6; i++)
sum += marks[i];
average = sum/6;
return average;
}//average
void printInfo(){
System.out.println(name + " " + age + " " + average);
}//printInfo
}
Forwarded from Zainab jasim almosawy🍊
package exam;
import java.util.Scanner;
public class StudentArray {
public static void main(String[] args) {
int size, age;
String name;
int marks[]= new int[6];
Scanner cin = new Scanner(System.in);
System.out.print("Enter number of student ::");
size = cin.nextInt();
if (size>0){
Student stud[] = new Student[size];
for (int i = 0; i< size ; i++){
System.out.print("Enter name ::");
name = cin.next();
System.out.print("Enter age ::");
age = cin.nextInt();
for (int j = 0; j< 6 ; j++){
System.out.print("Enter mark["+j+"]::");
marks[j] = cin.nextInt();
}//forj
System.out.println();
stud[i] = new Student(name, age, marks);
stud[i].average();
}//for i
System.out.println();
for (int j = 0; j< size ; j++)
stud[j].printInfo();
}//if
else
System.out.print(" OUT OF RANGE " );
}//main
}//StudentArray
Forwarded from Zainab jasim almosawy🍊
صمم كلاس يستقبل اسم صاحب الحساب البنك ورقمه التسلسلي وفلوسة
الدوال المطلوبة داخل الكلاس
1_دالة للسحب
2_دالة للايداع
3_دالة لطباعة المعلومات قبل السحب والايداع
الدوال المطلوبة داخل الكلاس
1_دالة للسحب
2_دالة للايداع
3_دالة لطباعة المعلومات قبل السحب والايداع
Forwarded from Zainab jasim almosawy🍊
package exam;
public class BANKACCOUNT {
String id;
String name;
int balance;
int many;
int input;
BANKACCOUNT(String id,String name,int balance,int many,int input){
this.id=id;
this.name=name;
this.balance=balance;
this.many=many;
this.input=input;
}
public void printInfo(){
System.out.println(id+" ::: "+ name+" ::: "+ balance+" :::");
}
public int withDraw(){
System.out.println(" ");
int sub=0;
sub=(balance-many);
return sub;
}
public int deposit(){
int sum=0;
sum=((withDraw())+(input));
return sum;
}
}
❤3
ضايعه محفظه صغيره لون اسود جلد بيها هويتي
شهد نوفل :
شهد نوفل :
أيام العطل حسب قرار مجلس الوزراء الأخير:
1- الأحد: 10/12/2023 (عيد النصر).
2- الأحد+الاثنين: 17,18/12/2023 (إنتخابات مجالس المحافظات)
3- الاثنين: 25/12/2023 (مولد السيّد المسيح (ع))
4- الاثنين: 1/1/2024 (رأس السنة الميلادية)
...
عمي هاي سرقتها من قناة حمزة ممثل العلوم ❗️
1- الأحد: 10/12/2023 (عيد النصر).
2- الأحد+الاثنين: 17,18/12/2023 (إنتخابات مجالس المحافظات)
3- الاثنين: 25/12/2023 (مولد السيّد المسيح (ع))
4- الاثنين: 1/1/2024 (رأس السنة الميلادية)
...
عمي هاي سرقتها من قناة حمزة ممثل العلوم ❗️
😎8🍓3🫡3❤2👍1