Programming does not always happen smoothly, sometimes a lot of patience, devotion and perseverance are required to solve programming problems and stumbling blocks on your way of creating a new programming solution.While developing an application you might come across a number of programming questions the answers to which are not easy to be found. To spare yourself the trouble, submit your programming questions here and you will get programming answers within the shortest time period.
Ask Your question
Search & Filtering
its digits reversed. For example, the value of reverseDigit(12345) is 54321; the value of
reverseDigit(5600) is 65; the value of reverseDigit(7008) is 8007; and the value of reverseDigit(-
532) is -235.
Assume that all the variables have already been declared and that x, y, and z have been assigned values .
• The formula f= (9/5 * c) + 32 converts Celsius to Fahrenheit.
The result format should have one decimal place. Example 3.3 @ 4.5
Below 2000 No tax
2001 - 3000 5%
Above 3000 10 %
(a) Declare all variables as type Double.
(b) Ask user to input purchasePrice.
(c) Ask user to input sellingPrice.
(d) Assign, to the variable percentProfit, 100 times the value of the difference between sellingPrice and purchasePrice divided by purchasePrice.
Display the value of the variable percentProfit.
The cash register has the following bills: 1x 20eur, 2x 10eur, 3x 5 eur,1x 2eur, 1x 1eur. The program asks: „how large is the change:“ .If the change is too large, then: „There isnt enough change". If it isnt possible to give out an exact change (for example: 24 eur), then „Its not possible to give exact change". But if there is enough change (lets say 37 eur) then the program should say like this:
„The change is:
20 eur: 1x
10 eur: 1x
5 eur: 1x
2 eur: 1x
The program has to generate a random number between -1000 and 1000. User has 11 guesses max. Then the person guesses, if the quess is too high then the program has to say „your guess was too high“ and if the guess was too low then „your guess was too low“. If the user guesses the number then the program has to say „you found the hidden number“. If the user didnt find the number after 11 guesses then: „you lost. The hidden number is -(hidden number)-.