CFanatic

Go Back   CFanatic > Programming > C++ Programming

Join CFanatic Forum Now

please I want help necessarily topic posted under C++ Programming which is a part of Programming category in CFanatic Forum
Reply
 
Thread Tools Display Modes
  #1  
Old 11-03-2011, 11:57 PM
Junior Member
 
Join Date: Nov 2011
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
moonface is on a distinguished road
| More
please I want help necessarily

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.
Reply With Quote
  #2  
Old 11-08-2011, 03:47 AM
Junior Member
 
Join Date: Nov 2011
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
moonface is on a distinguished road
| More
Re: please I want help necessarily

no one can help me??????????????????????????
Reply With Quote
  #3  
Old 11-20-2011, 03:13 AM
ophelia.2010's Avatar
Junior Member
 
Join Date: Oct 2011
Location: london
Posts: 14
Thanks: 0
Thanked 6 Times in 5 Posts
ophelia.2010 is on a distinguished road
| More
Re: please I want help necessarily

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!!!
Reply With Quote
The Following User Says Thank You to ophelia.2010 For This Useful Post:
shabbir (11-20-2011)
  #4  
Old 11-20-2011, 08:33 PM
zachry00's Avatar
Junior Member
 
Join Date: Jul 2011
Posts: 26
Thanks: 9
Thanked 0 Times in 0 Posts
zachry00 is on a distinguished road
| More
Re: please I want help necessarily

i like the way you help.. nice..
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

 

Advertisement

CFanatic Search
Custom Search

Advertisement

All times are GMT -5. The time now is 03:35 PM.



Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO ©2010, Crawlability, Inc.
Cfanatic.com is a premier member of the IDG TechNetwork. For advertising opportunities contact here
Get Paid for Working on Projects Matching Your Expertise at Go4Expert's Jobs Board