please I want help necessarily

Discussion in 'C++' started by moonface, Nov 4, 2011.

  1. moonface

    moonface New Member

    Joined:
    Nov 4, 2011
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    Hello
    can some one help me to write my assignment for
    c++


    Write an Algorithm ,Draw Flowchart and write program for all questions given below.


    1-'X' engineer installs coaxial cable for 'Y' company . for each installation there is a basic charge of $25.00 and an additional charge of $2.00 for each foot of cable .during the month of January , 'X' installed a total of 263 yards of cable at 27 different location . What is the total revenue that 'X' generated for a particular month ?

    2- Calculating Area of Triangle using the formula for Area=1/2*(Breadth*height). Also calculate Area of rectangle using the formula Area = breadth*height(Write one program for both)

    3- Finding the highest GPA of three student. There are three student with GPA and calculate the highest GPA by comparing all the student GPA.

    4-An accountant wanted to calculate an employee monthly salary .The inputs are given as follows, basic salary, Marriage allowance Education allowance RO.10 for each ,Accommodation allowance ,and transportation allowance.

    5- The marks of a student in three exams are said to M1,M2 and M3. The average of these three marks is the base for passing or failing the course ,and a value of 50 or greater for this base indicates a pass condition , where as values lower than 50 indicates a fail condition.
     
  2. moonface

    moonface New Member

    Joined:
    Nov 4, 2011
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    no one can help me??????????????????????????
     
  3. ophelia.2010

    ophelia.2010 New Member

    Joined:
    Oct 18, 2011
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    student
    Location:
    london
    Well these are simple if you know the logic for the questions above!!! say I'll do 2 as an example and you do the rest!!!

    FLOWCHART: See ,I can't draw shapes here, I hope you know them;

    start [in somewhat oval shape]
    read b,h [in a parallelogram]
    a1=1/2*(b*h) //you can use an ordinary multiplication symbol too!!!
    a2=b*h [both inside a rectangle]
    print a1,a2 [in a parallelogram]
    stop [in somewhat oval shape]

    PROGRAM:

    #include<iostream.h>
    main()
    {
    int a1,a2,b,h;
    cout<<"Enter breadth and height :\n";
    cin>>b>>h;
    a1=1/2*(b*h);
    a2=b*h;
    cout<<" \n Area of triangle :"<<a1;
    cout<<" \n Area of rectangle :"<<a2;
    }

    ALGORITHM:

    step 1: start by including header file <iostream.h>

    step 2: declare integer variables b-for breadth,h-for height,a1-for triangle's area,a2-for rectangle's area

    step 3: Accept input values for b and h from the user.

    step 4: Calculate area of triangle as a1=1/2*(b*h)

    step 5: Calculate area of rectangle as a2=b*h

    step 6: Display a1 and a2

    step 7: stop

    Hope this helped you!!!
     
  4. zachry00

    zachry00 New Member

    Joined:
    Jul 20, 2011
    Messages:
    30
    Likes Received:
    0
    Trophy Points:
    0
    i like the way you help.. nice..
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice