Answered step by step
Verified Expert Solution
Question
1 Approved Answer
code language = python You are considering using some of your savings to purchase stock. When doing so, you understand that there will be a
code language = python
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started