Question about Computers & Internet

1 Answer

How can to make a salary computation using the c++(looping)..pls

Posted by on

  • Dave Gordon
    Dave Gordon May 11, 2010

    You have not given me much to work with but how is this: Int hoursWorked = 0; int TotalHoursWorked = 40; // or whatever it may be Double TotalPay = 0; Double PayPerHour = 10; for(HoursWorked = 0 to TotalHoursWorked) { TotalPay = PayPerHour * HoursWorked; printf("£%f Total Pay for %d Hours worked\n\r",TotalPay,HoursWorked); } That should help you. If this helped please vote kindly!

×

1 Answer

  • Level 2:

    An expert who has achieved level 2 by getting 100 points

    MVP:

    An expert that got 5 achievements.

    Mentor:

    An expert who has written 3 tips or uploaded 2 video tips.

    Governor:

    An expert whose answer got voted for 20 times.

  • Expert
  • 137 Answers

Hi, well u don't need looping in salary computation. here is the program:-
#include<iostream.h> #include<conio.h> int main() { float bs,gs,hra,da; cout<<"enter basic salary"; cin>>bs; hra=40*bs/100; da=20*bs/100; gs=bs+hra+da; cout<<gs; return 0; }
regards, poly

Posted on Oct 19, 2009

1 Suggested Answer

6ya6ya
  • 2 Answers

SOURCE: I have freestanding Series 8 dishwasher. Lately during the filling cycle water hammer is occurring. How can this be resolved

Hi,
a 6ya expert can help you resolve that issue over the phone in a minute or two.
best thing about this new service is that you are never placed on hold and get to talk to real repairmen in the US.
the service is completely free and covers almost anything you can think of (from cars to computers, handyman, and even drones).
click here to download the app (for users in the US for now) and get all the help you need.
goodluck!

Posted on Jan 02, 2017

Add Your Answer

Uploading: 0%

my-video-file.mp4

Complete. Click "Add" to insert your video. Add

×

Loading...
Loading...

Related Questions:

2 Answers

The equation S = 1352x + 44,609 can be used to estimate the average salary S of teachers in public schools x years after 2000. Determine in what year the average salary will be $63,537.


i think teachers need to be payed a good wage .. after all they single handed look after 30 kids for like 4 or 5 hrs...

how the fek do they do it my home is a reck after an hour with three..?

Mar 26, 2015 | Encore Math Advantage Algebra II and...

1 Answer

Indian member of parliament salary


Salary & Govt. Concessions for a Member of Parliament (MP)

Monthly Salary : 12,000

Jun 28, 2014 | Computers & Internet

1 Answer

If there is an employee table containing salary column how to find the 3rd maximum salary in the salary column?


What software are you using? If you are using EXCEL, it's simple to select the column,
and then click 'Data' as 'SORT' and choose 'Descending', and then to pick the 3rd row in the ordered column.

Mar 30, 2011 | Microsoft Computers & Internet

1 Answer

Inflation & business maths!


The formula that would have been used to increase his salary each year probably was: Original Salary * (100% + inflation) = New Salary

Rearranging this, we get: Original Salary = New Salary / (100% + inflation)

So...

Last Year: 42000 / 102% = 41176.47 = 41176 (rounded)
2 Years Ago: 41176.47 / 103% = 39977.16 = 39977 (rounded)

Oct 31, 2009 | Mathsoft StudyWorks! Mathematics Deluxe...

2 Answers

To find a lost mobile


1/ check if anyone handed it in
2/ try ringing the number
3/ advertise in the locality
4/ give up and get it blocked so its useless

Sep 03, 2009 | LG KG220 Cellular Phone

3 Answers

Else if statement on turbo c, # hour worked: bonus: hour<40 & >=45 P500 hour <40 &>=35 P300 hour >20 & <=30 P150 display bonus,salary and...


Hi, First of all please check the conditions but as far as i understand the conditions the program would be like this-
#include<stdio.h> #include<conio.h> void main() { int salary,bonus,totalsalary,hours; printf("enter salary"); scanf("%d",&salary); printf("enter hours"); scanf("%d",&hours); if(hours<45 && hours>=40) { bonus=500; } else { if(hours<40 && hours>=35) { bonus=300; } else { if(hours<=30 && hours>20) { bonus=150; } else { bonus=0; } } } totalsalary=salary+bonus; printf("Salary=%d",salary); printf("Bonus=%d",bonus); printf("Total Salary=%d",totalsalary); getch(); }
But the conditiosn given by you are not seems to be correct.Just correct the conditions value if wrong and run the program Thanks! mannu_rakesh

Aug 04, 2009 | Computers & Internet

Not finding what you are looking for?
Computers & Internet Logo

Related Topics:

209 people viewed this question

Ask a Question

Usually answered in minutes!

Top Computers & Internet Experts

Doctor PC
Doctor PC

Level 3 Expert

7733 Answers

kakima

Level 3 Expert

102366 Answers

David Payne
David Payne

Level 3 Expert

14161 Answers

Are you a Computer and Internet Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides

Loading...