Need help with float function and sales tax code! Programming Software Development by monolith45 …); //Displaying output cout << "The cost of the airtravel is: " << flightCost << endl; cout <… Re: Alternate Transportation Community Center Geeks' Lounge 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 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 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 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 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 …