# please I want help necessarily

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

1. ### moonfaceNew Member

Joined:
Nov 4, 2011
Messages:
3
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. ### moonfaceNew Member

Joined:
Nov 4, 2011
Messages:
3
0
Trophy Points:
0
no one can help me??????????????????????????

3. ### ophelia.2010New Member

Joined:
Oct 18, 2011
Messages:
14
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]
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;
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!!!

Joined:
Jul 20, 2011
Messages:
30