HIT137: Write a Program that Separates a Long String that Contains Both Numbers - Engineering Assignment Help

Download Solution Order New Solution
Assignment Task:

Task:

Question 1 Marks 5 Assume s is a string. Write a program that separates a long string (at least length of 16) that contains both numbers and letters (upper and lower case) into two substrings of numbers and letters. And then convert the even numbers in the ‘number substring’ and upper-case letter in the ‘letter string’ into ASCII Code Decimal Values. Example Scenario: String = '56aAww1984sktr235270aYmn145ss785fsq31D0' Separate them – 56198235270145785310 (number string) and aAwwsktraYmnssfsqD (letter string). Convert the even numbers in the number string to ASCII Code Decimal Values. 6, 8, 2, 2, 0, 4, 8, 0 (Even Numbers) 54, 56, 50, 50, 48, 52, 56, 48 (ASCII CODE) Convert the upper-case letter in letter string to ASCII Code Decimal Values. A, Y, D (Upper-case Letters) 65, 89, 68 (ASCII CODE Decimal Values)

Question 2 Mark 5 Write a program to create an empty “.txt” and store it on the “Desktop”. (Must be Desktop). The user should be asked to input the name of the file. After storing the file on the desktop, the user should be asked to input some content into the file (through code) (content should only have UPPER-CASE letters). Finally, replace the content in the file with “unused alphabets (A-Z)”. Example Scenario: Enter Name of the File: Abhi Store it on Desktop: Abhi.txt User Input for the file: HELLO Replace content in the file with ABCDFGIJKMNPQRSTUVWXYZ

Question 3 Mark 6 Input message - Python Message Encrypted = »äßÓÚÙ Message Decrypted = Python (You can use the ASCII Character Code Table or Python function) Write a program to showcase the “formula” used for encryption and decryption. (Tip: Calculate “Average” of the input message based on ASCII Code Decimal Values of each character and use the average value as the base for finding the formula ) No Example Scen

The above Engineering Assignment has been solved by our  Engineering Assignment  Experts at My Uni Paper. 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 considered worthy of the highest distinction.

Get It Done! Today

Country
Applicable Time Zone is AEST [Sydney, NSW] (GMT+11)
+

Every Assignment. Every Solution. Instantly. Deadline Ahead? Grab Your Sample Now.