Subject Code : SWE20004
Assignment Task:
SWE20004: Technical Software Development IT Assignment Help
 

Problem
Assume you are working as a programmer in a communication field. Your task is to alter the original data before transmitting because of a security reason. All of their data
is an integer that contains the number of digits between two and eight (inclusive), thus the possible integers are between 10 and 99999999. You have to read in an
integer and complete the following stages.

Stage 1:
Your task is to modify the data for transmission according to the following set of rules.

1. If the number is a two digit number you swap the positions of the numbers (eg: if the number is 56, altered number is 65).

2. If the number is a three digit number, digits at positions 1 and 3 are swapped. (eg: number is 123, altered number is 321)

3. If the number is four digits or above the following rules apply. Replace the first digit by the remainder after the sum of that digit plus 1 is divided by 10, the second digit by the remainder after the sum of that digit plus 2 is divided by 10, third digit by the remainder after the sum of that digit plus 3 is divided by 10, fourth digit by the remainder after the sum of that digit plus 4 is divided by 10 and so on.

 

SWE20004: Technical Software Development IT Assignment Help

Stage 2: Extra protection (done only on 8 digits numbers – if the user chooses this option) Eight digit data contains more valuable information, so you are asked to enable extra protection if the user chooses to. The extra protection is done on modified number in stage one by swapping the digit in position 1 with digit in position 8, digit in position 2 with digit in position 7, digit in position 3 with digit in position 6, digit in position 4 with digit in position 5. If the modified number in stage 1 is as shown below:

 

SWE20004: Technical Software Development IT Assignment Help

Stage 3: 
Once the encoding stages are over, write the codes to recover your original data from the encoded data. Other requirements:

  1.  This assignment must be written in C++
  2.  Your code must have appropriate header(multiline/block) comments including your name and student number, the name of the .cpp file, the purpose of the program, brief explanations of variables and explanations of any code, which is not obvious to another programmer, summarising the input, output and local variables as well as expressions used in your program and test data.
  3.  Include inline (single-line) comments throughout the program describing important statements.
  4.  Use appropriate and descriptive variable following the naming rules and conventions.
  5.  Write a brief (no more than several pages) report, which illustrates your program design (algorithm or flowchart, identification of variables, constants) and include evidence of testing – screen shots or pasted output text of several tests, and the contents of the .cpp file

 


This SWE20004: IT Assignment has been solved by our IT experts at UniLearnO. Our Assignment Writing Experts are efficient to provide a fresh solution to this question. We are serving more than 10000+ Students in Australia, UK & US by helping them to score HD in their academics. Our experts are well trained to follow all marking rubrics & referencing style.

Be it a used or new solution, the quality of the work submitted by our assignment experts remains unhampered. You may continue to expect the same or even better quality with the used and new assignment solution files respectively. There’s one thing to be noticed that you could choose one between the two and acquire an HD either way. You could choose a new assignment solution file to get yourself an exclusive, plagiarism (with free Turnitin file), expert quality assignment or order an old solution file that was considered worthy of the highest distinction.

Eureka! You've stumped our genius minds (for now)! This exciting new question has our experts buzzing with curiosity. We can't wait to craft a fresh solution just for you!

  • Uploaded By : Noah
  • Posted on : December 27th, 2018

Whatsapp Tap to ChatGet instant assistance