Friday, 16 December 2016

c++ program to make a heater with lowest and highest temperatures using a class and objects.



#include <iostream>                                  
using namespace std;
class heater
{
private:
    int temp;
    int mini;
    int maxi;
    int incre;
public:
    heater()
    {  temp=15;}
    heater (int z )
    {  incre=z;}
    heater(int x, int y): mini(x),maxi(y)
    { }
    void warmer()
    {
        temp=temp+incre;
        if(temp>maxi)
            cout<<"warmest temperature"<<temp<<endl;
        else
            cout<<"temperature is high";
    }
    void cold()
    {
        temp=temp-incre;
        cout<<"temperature is cold"<<temp;
  }
    int output()
    {
        cout<<temp<<endl;
        return temp;
    }
};
int main()
{
 heater obj2(5);
    heater obj3(0,30);
heater temp;
    temp.warmer();
    temp.cold();
    temp.output();
retorn 0;
}

C++ Program to find the Area and Perimeter of a Rectangle Using Class and Objects.



                                
#include <iostream>
using namespace std;
class rectangle
{
private:
    int length;
    int width;
    int area;
    int perimeter;
public:
    rectangle(float l, float w): length(l),width(w)
    {  }
    void set_data()
    {
       cout<< "Enter length_";
        cin>>length;
        cout<<"enter width_";
        cin>>width;
    }
    void getdata()
    {
        cout<<"\nlength_"<<length;
        cout<<"\nwidth_"<<width;
    }
    void area()
    {
        area=length*width;
        cout<<"\n area"<<area<<endl;
    }
    void perimeter()
    {
        perimeter=length+width;
        perimeter= 2*perimeter;
        cout<<"\nperimeter"<<perimeter;
   }
};
int main()
{
  rectangle d1(1,1);
    rectangle object;
    object.set_data();
    object.area();
    object.perimeter();
return 0;
}

A C++ Program To calculate a+(b-c)/10 .



#include <iostream>

using namespace std;

int main()
{   floata,b,c,d, e;                                      //Declaration of included Variables
cout<<"Enter a: ";                               //Get value of a//
cin>>a;                                          
cout<<"Enter b: ";                       
cin>>b;                                               //Read second point entered
cout<<"Enter c: ";                    
cin>>c;                                       
cout<<"Enter d: ";                  
cin>>d;                                    
    e=(a+(b-c)*d)/10;                        //Get the value of e by operations//
cout<<"\ne = " <<e;                   //Print the value of e//
cout<<endl;
return 0;
}

Thursday, 15 December 2016

Brochure and its Types.



Brochure:-
Definition;
                         (A brochure is an informative paper document (often also used for advertising), that can be folded into a template, pamphlet or leaflet.)
·          Purpose of brochure:
 Brochures are advertising pieces mainly used to introduce a company or organization and inform about products or services to a target audience.
·       Distribution:
Brochures are distributed by radio, handed out personally or placed in brochure racks. They may be considered as grey literature. They are usually present near tourist attractions.
·   Printing:-
                              Brochures are often printed using four-color process on thick, glossy paper to give an initial impression of quality. Businesses may print small quantities of brochures on a computer printer or on a digital printer, but offset printing turns out higher quantities for less cost.
Compared with a flyer, a brochure usually uses higher-quality paper, more color, and is folded.
Types of brochures:-

1; Bi-Fold Brochures
2; Tri-Fold Brochures.

3; Flayers.
4; Multi-Page Bi-Folds / Booklets / Catalogs
A.K.A. 8-Age, 12-Page Bi-Folds, Etc

.5: Double Gate Fold Brochures.