Question
Draw a flowchart that takes a 6-digit number from user and reverses the last three digits and first three digits of input number separately. The
Draw a flowchart that takes a 6-digit number from user and reverses the last three digits and first three digits of input number separately. The reverse numbers are joined in such a way that double of input number is in between them and output the resulting number.
[14 marks]
Following sample run helps you to understand this problem
Sample Run:
Enter a number: 123456
Reverse digits are: 321 and 654
Double of input numbers: 246912
You desired number is: 654246912321
Instructions:
- Verify that input number is of 6 digits or not
- Do not use arrays
- It is your choice to use loop or not
You can split problem in multiple flowcharts for your easiness but do not forget to mention the working of each flowchart.
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