Answered step by step
Verified Expert Solution
Question
1 Approved Answer
* * * i need help idk how to do this can you give me step by step with screen shots on how to do
i need help idk how to do this can you give me step by step with screen shots on how to do this
Instructions
The following exercises will demonstrate your ability to apply Python variables, data types, and operators by
addressing the programming problems given to you. Please create the following programs in Python.
For each of the following questions, create a separate py file for it After completion, submit the four py files
and a screenshot showing the result of each programs execution.
File :
operators.py
Write a program to output the results of using the modulus operator and the floor division operator in
arithmetic expressions. Using five print functions with strings to display the results. For each line of the
outputs, the left operand of the operators is and the right operands are and
respectively. The output should look like this:
Knowing how and work will help you answer the next few questions.
File :
separationpy
Write a Python program that asks users to input a digit integer. The program will then separate the integer into
individual digits. Print the digits out and separate them by the hyphen character. For example:
Please use and operators to complete this task.
File :
separationpy
Same as the previous question, but this time please use string slicing to complete this task.
File :
dollars.py
Create a Python program that asks its user to provide the number of quarters cents dimes cents nickels
cents and pennies cent they have. Afterward, output the total amount of dollars and cents the user has.
For example: How many dimes do you have?:
How many nickels do you have?:
How many pennies do you have?:
The total amount you have is cents, which is equivalent to dollars and cents.As:How many dimes do you have?:
How many nickels do you have?:
How many pennies do you have?:
The total amount you have is cents, which is equivalent to dollars and cents.
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