Question: code language = python You are considering using some of your savings to purchase stock. When doing so, you understand that there will be a
You are considering using some of your savings to purchase stock. When doing so, you understand that there will be a fee (commission) based upon the dollar amount of your purchase. You decide to write a program to calculate the purchase amount. commission and total cash needed for the transaction. The commission is based upon the following schedule The program should ask the user to input: - The stock name - The stock price per share - Shares to be purchased. Note: the variable names should be descriptive. After the user enters the information, the program should calculate and display - The purchase amount - Commission - Total amount (purchase amount + commission) Ensure the output is formatted properly and descriptive enough that anyone looking at it would understand what it is. Don't forget to include comments at the top indicating the purpose of the program and your name as the programmer as well as throughout the program where appropriate
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
