subject

Jane wants to buy a number of shares of stock for investment She must pay her stockbroker a 6% commission if the number of shares is less than 100,4\% less than 200 , and 2\% if more than 200. Write a program to prompt the number of shares Jane wants to buy and the price per share . Based on the entries, calculate and display the following : The amount paid for the stock alone (without the commission ). The amount of the commission The total amount paid (for the stock plus the commission ) NOTE: All amounts should be displayed in U. S. currency with 2 decimal places (e. g.$123.45). Also , use constant variables to store the different commission percentages and the limits of each commission bracket (the values 100 and 200 above). Lastly, check for entry errors (non-numeric entries for the number of shares and stock price per share) and if found, ask the user to re-enter the values.(python language)

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 16:00
Ihave 25$ on an itunes card and i need to buy spotify premium, i have no other payment method.
Answers: 2
question
Computers and Technology, 22.06.2019 11:40
Design a pos circuit that displays the letters a through j on a seven-segment indicator. the circuit has four inputs w, x, y, and z which represent the last 4 bits of the uppercase ascii code for the letter to be displayed. thus, if wxyz = 0001 then "a" will be displayed. (any answer with 22 or fewer gates and inverters, not counting any for the inputs, is acceptable)
Answers: 2
question
Computers and Technology, 24.06.2019 00:00
Visualizing a game of ā€œtagā€ to remember the meaning of contagious
Answers: 3
question
Computers and Technology, 24.06.2019 15:30
The idea that, for each pair of devices v and w, thereā€™s a strict dichotomy between being ā€œin rangeā€ or ā€œout of rangeā€ is a simplified abstraction. more accurately, thereā€™s a power decay function f (Ā·) that specifies, for a pair of devices at distance Ī“, the signal strength f(Ī“) that theyā€™ll be able to achieve on their wireless connection. (weā€™ll assume that f (Ī“) decreases with increasing Ī“.) we might want to build this into our notion of back-up sets as follows: among the k devices in the back-up set of v, there should be at least one that can be reached with very high signal strength, at least one other that can be reached with moderately high signal strength, and so forth. more concretely, we have values p1 ā‰„ p2 ā‰„ . . ā‰„ pk, so that if the back-up set for v consists of devices at distances d1ā‰¤d2ā‰¤ā‰¤dk,thenweshouldhavef(dj)ā‰„pj foreachj. give an algorithm that determines whether it is possible to choose a back-up set for each device subject to this more detailed condition, still requiring that no device should appear in the back-up set of more than b other devices. again, the algorithm should output the back-up sets themselves, provided they can be found.\
Answers: 2
You know the right answer?
Jane wants to buy a number of shares of stock for investment She must pay her stockbroker a 6% commi...
Questions
question
Chemistry, 25.06.2019 02:30
question
Geography, 25.06.2019 02:30