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:

  1. Verify that input number is of 6 digits or not
  2. Do not use arrays
  3. 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!