Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 6 results for
airtravel
- Page 1
Need help with float function and sales tax code!
Programming
Software Development
15 Years Ago
by monolith45
…); //Displaying output cout << "The cost of the
airtravel
is: " << flightCost << endl; cout <…
Re: Alternate Transportation
Community Center
Geeks' Lounge
16 Years Ago
by vegaseat
I think MegLev is actually trying to compete with medium distance
airtravel
. In the future electricity is slated to get much cheaper and I haven't heard of an electric commuter plane yet.
Re: Multilingual Web Design
Digital Media
UI / UX Design
14 Years Ago
by almostbob
… f___, the software was written in English the internet, shipping,
airtravel
, native language is English. A limited character set for transport…
Re: Need help with float function and sales tax code!
Programming
Software Development
15 Years Ago
by vmanes
Your question is not very clear. What do you mean by "this needs to be floating" and "without knowing the float code for calculation"? That the sales tax rate can vary? Or that you need to use a floating point value (which can be of type float or type double)? Really, the first thing you should do is clear up errors in the…
Re: Need help with float function and sales tax code!
Programming
Software Development
15 Years Ago
by monolith45
Thanks for the reply! I guess I was not very clear with my problem. First, this program needs to be user input only, no fixed values. I set it up with constants because I was unclear of the way to be a variable input program. Second, I was also unclear about how to add in a sales tax to every applicable item. I will try your modification and try to…
Re: Need help with float function and sales tax code!
Programming
Software Development
15 Years Ago
by vmanes
Well, it sounds like you need to ask the user for values for all those costs, one time at the beginning. Store them to variables, and add the appropriate variables as parameters to the functions that need them. If sales tax is applicable to all expenses, and it's the same for all categories (not necessarily so in real life) then you just need to …
Search
Search
Forum Categories
Hardware/Software
Programming
Digital Media
Community Center
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Forums
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2024 DaniWeb® LLC