Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

in pythonn Write a program that reads a number between 10,000 and 99,999 from the user, where the user enters a comma in the input.

in pythonn

Write a program that reads a number between 10,000 and 99,999 from the user, where the user enters a comma in the input. Your program will extract the number on the left of the comma and add to it one. It also extracts the number on the right side of the comma and subtract from it one. It then displays the result as shown below.

Sample run1: Enter a number between 10,000 and 99,999: 23,589 left number plus one = 24 right number minus one = 588

Sample run2: Enter a number between 10,000 and 99,999: 52,100 left number plus one = 53 right number minus one = 99

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts

Authors: David M. Kroenke, David J. Auer

7th edition

133544621, 133544626, 0-13-354462-1, 978-0133544626

More Books

Students also viewed these Databases questions

Question

=+What is the brand's character or personality?

Answered: 1 week ago