Showing posts with label eaglesoft. Show all posts
Showing posts with label eaglesoft. Show all posts

Wednesday, January 6, 2021

Delete Element from array in c++ with Eaglesoft programmers

 


#include <iostream>
using namespace std;
int main()
{
    int array[5] = {43256};
    int p;
    cout << "Before delete element" << endl;
    for (int i = 0i < 5i++)
    {
        cout << "Value of array[" << i << "] " << array[i<< endl;
    }
    cout << "Enter position of element that you want to delete:" << endl;
    cin >> p;
    for (int i = pi < 5i++)
    {
        array[i] = array[i + 1];
    }
    cout << "After delete element" << endl;
    for (int i = 0i < 4i++)
    {
        cout << "Value of array[" << i << "] " << array[i<< endl;
    }
    return 0;
}

Insertion in array in c++ with Eaglesoft Programmers

 


#include<iostream>
using namespace std;
int main()
{
    int array[100]={4,5,6,7,32};
    int pos,num;
    // take value and position
    cout<<"Enter the value that you want to insert in array:"<<endl;
    cin>>num;
    cout<<"Enter the position of array where you want to insert you entred vlue: "<<endl;
    cin>>pos;

    // insert value in array
    for(int i=4;i>=pos;i--)
    {
        array[i+1]=array[i];
    }
    array[pos]=num;

    // show array value after inserting
    cout<<"new array is : "<<endl;
    for (int i=0;i<6;i++)
    {
        cout<<"Value of array["<<i<<"]: "<<array[i]<<endl;
    }


    return 0;
}

Wednesday, December 2, 2020

Find divisor in python with Eaglesoft Programmers

 


n=int(input("Enter a number of apples:"))
mn=int(input("Enter minimum number:"))
mx=int(input("Enter maximum number"))
for i in range(mn,mx+1):
    if n%i==0:
        print(f"{i} is a divisor of {n}")
    else:
        print(f"{i} is not a divisor of {n}")


print("***This is Eaglesoft Programmer***")

Monday, November 23, 2020

Assignment of CS201

 #include<iostream>

using namespace std;
int main()
{
    int no_emplyes=10,sal_level_a=125000,sal_level_b=80000,sal_level_c=45000;
    int tax_level_a,tax_level_b,tax_level_c,total_tax_level_a,total_tax_level_b,total_tax_level_c;
    int net_sal_level_a,net_sal_level_b,net_sal_level_c,total_pay;
    int anual_sal_level_a,anual_sal_level_b,anual_sal_level_c;
    int wal_fund=600,total_tax;
    int total_walfare=no_emplyes*wal_fund;
    int opt;
    
    anual_sal_level_a=sal_level_a*12;
    anual_sal_level_b=sal_level_b*12;
    anual_sal_level_c=sal_level_c*12;

    if(anual_sal_level_a>600000){
        tax_level_a=sal_level_a*1/100;
    }
    else
    {
        tax_level_a=0;
    }
    total_tax_level_a=tax_level_a*2;

    if(anual_sal_level_b>600000){
        tax_level_b=sal_level_b*1/100;
    }
    else
    {
        tax_level_b=0;
    }
    total_tax_level_b=tax_level_b*3;

    if(anual_sal_level_c>600000){
        tax_level_c=sal_level_c*1/100;
    }
    else
    {
        tax_level_c=0;
    }
    total_tax_level_c=tax_level_c*5;

    total_tax=total_tax_level_a+total_tax_level_b+total_tax_level_c;

    net_sal_level_a=sal_level_a-tax_level_a-wal_fund;
    net_sal_level_b=sal_level_b-tax_level_b-wal_fund;
    net_sal_level_c=sal_level_c-tax_level_c-wal_fund;
    total_pay=net_sal_level_a+net_sal_level_b+net_sal_level_c;

    //Output
    cout<<"The amout of tax that detect for all employess: "<<total_tax<<endl;
    cout<<"Total amount of welfare fund collected each month from all employees: "<<total_walfare<<endl;
    cout<<"Net monthly salary of lavel A employess: "<<net_sal_level_a<<endl;
    cout<<"Net monthly salary of lavel B employess: "<<net_sal_level_b<<endl;
    cout<<"Net monthly salary of lavel C employess: "<<net_sal_level_c<<endl;
    cout<<"Total amount which organization pays to its employees each month: "<<total_pay<<endl;

    //Menu
    cout<<"Enter 1 to know the tax collect of level A employess"<<endl;
    cout<<"Enter 2 to know the tax collect of level B employess"<<endl;
    cout<<"Enter 3 to know the tax collect of level C employess"<<endl;
    cin>>opt;

    if(opt==1){
        cout<<"Tax collect of level A employess is: "<<total_tax_level_a<<endl;
    }
    else if(opt==2){
        cout<<"Tax collect of level B employess is: "<<total_tax_level_b<<endl;
    }
    else if(opt==3){
        cout<<"Tax collect of level C employess is: "<<total_tax_level_c<<endl;
    }
    else
    {
        cout<<"Invaild input"<<endl;
    }
    
    




 
    return 0;
}

Thursday, November 19, 2020

c++ course source code

 #include <iostream>

//using namespace std;

int main(){

std::cout<<"welcome to eaglesoft";

cout<<"it will not come ";

return 0;

}

Saturday, August 29, 2020

Opp in python | opp in python full source code at Eaglesoft

#Source code

 class Employee:

    no_leaves=8
def __init__(self,namea,rolea,salarya):
self.name=namea
self.role=rolea
self.salary=salarya
def printdetails(self):
return f"Name: {self.name} Role: {self.role} Salary: {self.salary}"
@classmethod
def change_leaves(cls,new_leaves):
cls.no_leaves=new_leaves
@classmethod
def from_dash(cls,string):
params=string.split("-")
return cls(params[0],params[1],params[2])
@staticmethod
def printgood(string):
print("Eaglesoftpk is good and " + string)
return print("Eaglesoftpk.blogspot.com")

pass
ashfaq=Employee('Muhammad Ashfaq','Programmer',100000)
zoya=Employee('Zoya Ali','Graphic Designer',100000)
noman=Employee.from_dash("Noman Ahmad-SEO-40000")
print(ashfaq.printdetails())
print(zoya.printdetails())
print(noman.printdetails())
print(Employee.printgood("Best"))

Sunday, January 5, 2020

What is RAM and ROM


What is RAM and ROM
RAM
RAM stands for Random Access Memory. RAM holds the data only temporarily.

The information can be read and write on it.
 RAM is a volatile memory the data disappears lost when the computer power off.
It is also known as read/write memory. 
ROM
ROM stands for Read Only Memory. ROM is used to store data and information permanently.

Program is stored on ROM chips when the computer is manufactured.
 You can only read the information from ROM.
Any new information cannot be written in to it.
 ROM is non-Volatile memory the data that is stored in ROM cannot be lost even when the computer is turned power off.

Create ISO File


Create ISO file of the operating system is very easy. But first of all that we need to know why we create ISO file.
There is many reason for creating ISO file. The main reason is make USB bootable by creating ISO file or installing operating system in PC.  It is very simple process by following these steps we are able to crate ISO file.




Step-1: install a software in you’re PC which name is imagBurn you find this software easily on internet.


Step-2: when you install software then open this software in you’re PC.


Step-3: when you open it you will see the same interface:

This software provide you different options for you. You will chose according to you’re need. But when you have you’re operating system in disc you will select create image file from disc.


Step-4: you will face the following interface:

Now you’re computer auto select the disc of operating system that in you’re disc driver ( For that you insert a disc in you’re PC disc driver). If that not happen then you select the file by clicking under source.

Step-5: Now you select the location where you want to store that file in destination option:

Step-6: when you click on Destination option a dialog box appear:

You select the folder or path where you want to store file and write the name of that file actually that file have default name is CD_ROM . When you select location and name then click on Save button.




Step-7: After selecting storage location you will click the following icon(ready):





Step-8: Now you’re ISO file started crating it will take few minute.
                             

After that you’re ISO file is ready for use in you’re selected location. You use it for you’re desired purposes that you want.


Also watch this video for Creating ISO file: