[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Function Question

Posted on 2000-03-05
9
Medium Priority
?
276 Views
Last Modified: 2010-05-18
In a Programmer Defined Function , what would the code be to deduct a percentage (ex 20%) from a gross pay.  fedTax 20%
0
Comment
Question by:nationnon
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
  • 2
9 Comments
 
LVL 3

Accepted Solution

by:
Shay050799 earned 40 total points
ID: 2584866
x = gross pay
x*0.8 = net pay

0
 
LVL 22

Expert Comment

by:nietod
ID: 2584867
We cannot provide answers to school assignments.  That is grounds for removal from this site.  (for both you and the experts involved.)  We can provide only limitied help in accademic assignments.    We can answer specific (direct) questions, like you might ask your teacher.  We can review your work and post suggestions, again, like your teacher might do.

Do you have specific questions?
Do you have any work on this (incomplete even) that we can review?
0
 
LVL 22

Expert Comment

by:nietod
ID: 2584868
You can stoart by writting the function declaration, that is the name of the function, its parameters and return value.
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 1

Author Comment

by:nationnon
ID: 2584897
FYI, If you were to answer my question it wouldn't be the answer to my school assignment, it would only be the answer to my Programmer Defined Function.
 
0
 
LVL 1

Author Comment

by:nationnon
ID: 2584908
nietod,
I've already done that.  

shay,
I don't understand why it would be
x*0.8 = net pay when 20% should be taken from the gross pay.  If 0.8 was the percentage that would mean 80% is taken from the gross pay. Am I missing something?




0
 
LVL 1

Author Comment

by:nationnon
ID: 2584913
Also doesn't * mean multiply?
0
 
LVL 3

Expert Comment

by:Shay050799
ID: 2584917
u want to deduct 20% off the gross sallary right ?
that mean that u end up with 80% of ur gross sallary
so multiply ur gross sallary by 80% and thats ur net sallay
0
 
LVL 1

Author Comment

by:nationnon
ID: 2584937
OH! One of the reason's i'm using c++ is to help me learn math.  

Thanks!
0
 
LVL 3

Expert Comment

by:Shay050799
ID: 2584946
it should be the other way around !!
i think ;-)
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

656 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question