Securing Higher Grades Costing Your Pocket? FLAT 25% OFF on all orders
loader

Phone no. Missing!

Enter phone no. to receive critical updates and urgent messages !

Add File

Error goes here

Files Missing!

Please upload all relevant files for quick & complete assistance.

Guaranteed Higher Grade!

Stuck on Your Question?

Get 24x7 live help from our Top Tutors. All subjects covered.

Phone no. Missing!

Enter phone no. to receive critical updates and urgent messages !

loader
250 words

Error goes here

Files Missing!

Please upload all relevant files for quick & complete assistance.

Students Who Viewed This Also Studied

4 Pages
3820ICT Work Integrated Learning

1. It is like a navigating app like google map but it just needs to tell the current position in a room and three or four android mobile hotspot. 2. Use the mobile hotspot as access point. 3. It is a ...

Course

3820ICT

Type

Programming

Subject

Programing

University

Edith Cowan University

5 Pages
Kind of Programming Language

Running Head: Assignment 2 Assignment 2 Name of the Student: Name of the University: Author Note: 1 Assignment 2 1. Procedural programming is built up of small units which are known as procedur ...

Course

ICT103

Subject

Programing

University

Crown Institute of Higher Education

Season

Autumn

10 Pages
ITC508 Object Modelling

Task Assessment - Design Phase In this phase of the project, you need to perform the following design activities in continuation of the analysis activities from assignment 2. Design the sys ...

Course

ITC 508

Type

Programming

Subject

Programing

University

Charles Sturt University

Season

Autumn

25 Pages
MA5851 Data Science Master Class

Task Overview Natural language processing (NLP) is commonly used to build recommendation engines. This assignment involves building reading recommendation engines for students in Australian higher ...

Course

MA5851

Type

Programming

Subject

Programing

University

James Cook University

HIT137 Software Now

Question

Answered

Questions:

Q 1

Assume s is a string of numbers.

Write a program that prints the longest substring of s in which the numbers occur in ascending order and compute the average of the numbers found. For example, if s = '561984235270135785310', then your program should print

Longest substring in numeric descending order is: 013578

Average: 4

Q 2 

Develop a python program that will determine if a department store customer has exceeded the credit limit on a charge account. For each customer, the following facts are available:

  • Account number
  • Balance at the beginning of the month
  • Total of all items charged by this customer this month
  • Total of all credits applied to this customer’s account this month
  • Allowed credit limit

The program should input each of the facts, calculate the new balance (=beginning balance + charges – credits), and determine if the new balance exceeds the customer’s credit limit. For those customers who credit limit is exceeded, the program should display the customer’s account number, credit limit, new balance and the message “Credit limit exceeded”. Here is a sample input/output dialogue:

Enter account number (-1 to end): 100

Enter beginning balance: 5394.78

Enter total charges: 1000.00

Enter total credits: 500.00

Enter credit limit: 5500.00

Account: 100

Credit limit: 5500.00

Balance: 5894.78

Credit Limit Exceeded.

Enter account number (-1 to end): 200

Enter beginning balance: 1000.00

Enter total charges: 123.45

Enter total credits: 321.00

Enter credit limit: 1500.00

Enter account number (-1 to end): -1

Q 3

Write a python program that prompts the user for the names of two text files and compare the contents of the two files to see if they are the same. If they are, the scripts should simply output “Yes”. If they are not, the program should output “No”, followed by the first lines of each file that differ from each other. The input loop should read and compare lines from each file. The loop should break as soon as a pair of different lines is found.

Note: Input file will be given by me

First file name: Master.txt

Second file name: Slave.txt

Q 4

Write a program that encrypts and decrypts the user input. Note – Your input should be only lowercase characters with no spaces.

Your program should have a secret distance given by the user that will be used for encryption/decryption. Each character of the user’s input should be offset by the distance value given by the user

For Encryption Proccess:

  • Take the string and reverse the string.
  • Encrypt the reverse string with each character replaced with distance value (x) given by the user.

For Decryption:

  • Take the string and reverse the string.
  • Decrypt the reverse string with each character replaced with distance value (x) given by the user.

Sample:

String input

Encryption process – udc -> xgf (encrypted)

The program should ask the user for input to encrypt, and then display the resulting encrypted output. Next your program should ask the user for input to decrypt, and then display the resulting decrypted output.

Enter phrase to Encrypt (lowercase, no spaces): apples

Enter distance value: 3

Result: xgf

Enter phrase to Decrypt (lowercase, no spaces): xgf

Enter distance value: 3

Result:

HIT137 Software Now

Answer in Detail

Solved by qualified expert

Get Access to This Answer

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Hac habitasse platea dictumst vestibulum rhoncus est pellentesque. Amet dictum sit amet justo donec enim diam vulputate ut. Neque convallis a cras semper auctor neque vitae. Elit at imperdiet dui accumsan. Nisl condimentum id venenatis a condimentum vitae sapien pellentesque. Imperdiet massa tincidunt nunc pulvinar sapien et ligula. Malesuada fames ac turpis egestas maecenas pharetra convallis posuere. Et ultrices neque ornare aenean euismod. Suscipit tellus mauris a diam maecenas sed enim. Potenti nullam ac tortor vitae purus faucibus ornare. Morbi tristique senectus et netus et malesuada. Morbi tristique senectus et netus et malesuada. Tellus pellentesque eu tincidunt tortor aliquam. Sit amet purus gravida quis blandit. Nec feugiat in fermentum posuere urna. Vel orci porta non pulvinar neque laoreet suspendisse interdum. Ultricies tristique nulla aliquet enim tortor at auctor urna. Orci sagittis eu volutpat odio facilisis mauris sit amet.

Tellus molestie nunc non blandit massa enim nec dui. Tellus molestie nunc non blandit massa enim nec dui. Ac tortor vitae purus faucibus ornare suspendisse sed nisi. Pharetra et ultrices neque ornare aenean euismod. Pretium viverra suspendisse potenti nullam ac tortor vitae. Morbi quis commodo odio aenean sed. At consectetur lorem donec massa sapien faucibus et. Nisi quis eleifend quam adipiscing vitae proin sagittis nisl rhoncus. Duis at tellus at urna condimentum mattis pellentesque. Vivamus at augue eget arcu dictum varius duis at. Justo donec enim diam vulputate ut. Blandit libero volutpat sed cras ornare arcu. Ac felis donec et odio pellentesque diam volutpat commodo. Convallis a cras semper auctor neque. Tempus iaculis urna id volutpat lacus. Tortor consequat id porta nibh.

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Hac habitasse platea dictumst vestibulum rhoncus est pellentesque. Amet dictum sit amet justo donec enim diam vulputate ut. Neque convallis a cras semper auctor neque vitae. Elit at imperdiet dui accumsan. Nisl condimentum id venenatis a condimentum vitae sapien pellentesque. Imperdiet massa tincidunt nunc pulvinar sapien et ligula. Malesuada fames ac turpis egestas maecenas pharetra convallis posuere. Et ultrices neque ornare aenean euismod. Suscipit tellus mauris a diam maecenas sed enim. Potenti nullam ac tortor vitae purus faucibus ornare. Morbi tristique senectus et netus et malesuada. Morbi tristique senectus et netus et malesuada. Tellus pellentesque eu tincidunt tortor aliquam. Sit amet purus gravida quis blandit. Nec feugiat in fermentum posuere urna. Vel orci porta non pulvinar neque laoreet suspendisse interdum. Ultricies tristique nulla aliquet enim tortor at auctor urna. Orci sagittis eu volutpat odio facilisis mauris sit amet.

Tellus molestie nunc non blandit massa enim nec dui. Tellus molestie nunc non blandit massa enim nec dui. Ac tortor vitae purus faucibus ornare suspendisse sed nisi. Pharetra et ultrices neque ornare aenean euismod. Pretium viverra suspendisse potenti nullam ac tortor vitae. Morbi quis commodo odio aenean sed. At consectetur lorem donec massa sapien faucibus et. Nisi quis eleifend quam adipiscing vitae proin sagittis nisl rhoncus. Duis at tellus at urna condimentum mattis pellentesque. Vivamus at augue eget arcu dictum varius duis at. Justo donec enim diam vulputate ut. Blandit libero volutpat sed cras ornare arcu. Ac felis donec et odio pellentesque diam volutpat commodo. Convallis a cras semper auctor neque. Tempus iaculis urna id volutpat lacus. Tortor consequat id porta nibh.

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Hac habitasse platea dictumst vestibulum rhoncus est pellentesque. Amet dictum sit amet justo donec enim diam vulputate ut. Neque convallis a cras semper auctor neque vitae. Elit at imperdiet dui accumsan. Nisl condimentum id venenatis a condimentum vitae sapien pellentesque. Imperdiet massa tincidunt nunc pulvinar sapien et ligula. Malesuada fames ac turpis egestas maecenas pharetra convallis posuere. Et ultrices neque ornare aenean euismod. Suscipit tellus mauris a diam maecenas sed enim. Potenti nullam ac tortor vitae purus faucibus ornare. Morbi tristique senectus et netus et malesuada. Morbi tristique senectus et netus et malesuada. Tellus pellentesque eu tincidunt tortor aliquam. Sit amet purus gravida quis blandit. Nec feugiat in fermentum posuere urna. Vel orci porta non pulvinar neque laoreet suspendisse interdum. Ultricies tristique nulla aliquet enim tortor at auctor urna. Orci sagittis eu volutpat odio facilisis mauris sit amet.

Tellus molestie nunc non blandit massa enim nec dui. Tellus molestie nunc non blandit massa enim nec dui. Ac tortor vitae purus faucibus ornare suspendisse sed nisi. Pharetra et ultrices neque ornare aenean euismod. Pretium viverra suspendisse potenti nullam ac tortor vitae. Morbi quis commodo odio aenean sed. At consectetur lorem donec massa sapien faucibus et. Nisi quis eleifend quam adipiscing vitae proin sagittis nisl rhoncus. Duis at tellus at urna condimentum mattis pellentesque. Vivamus at augue eget arcu dictum varius duis at. Justo donec enim diam vulputate ut. Blandit libero volutpat sed cras ornare arcu. Ac felis donec et odio pellentesque diam volutpat commodo. Convallis a cras semper auctor neque. Tempus iaculis urna id volutpat lacus. Tortor consequat id porta nibh.

22 More Pages to Come in This Document. Get access to the complete answer.

More HIT137 HIT137 Software Now: Questions & Answers

Q
icon

We aren't endorsed by this University

3820ICT Work Integrated Learning

1. It is like a navigating app like google map but it just needs to tell the current position in a room and three or four android mobile hotspot. 2. Use the mobile hotspot as access point. 3. It is a programming task. So I need this to be done in Android Studio using the language JAVA. Then send the ...

View Answer
Q
icon

We aren't endorsed by this University

Kind of Programming Language

Running Head: Assignment 2 Assignment 2 Name of the Student: Name of the University: Author Note: 1 Assignment 2 1. Procedural programming is built up of small units which are known as procedures and the focus of this kind of programming language is on these procedures while in object- orie ...

View Answer
Q
icon

We aren't endorsed by this University

ITC508 Object Modelling

Task Assessment - Design Phase In this phase of the project, you need to perform the following design activities in continuation of the analysis activities from assignment 2. Design the system architecture, describing the important hardware and software components (servers, clients etc.) ...

View Answer
Q
icon

We aren't endorsed by this University

MA5851 Data Science Master Class

Task Overview Natural language processing (NLP) is commonly used to build recommendation engines. This assignment involves building reading recommendation engines for students in Australian higher education based on a sample of subject reading lists sourced from public sites.    Th ...

View Answer

Content Removal Request

If you are the original writer of this content and no longer wish to have your work published on Myassignmenthelp.io then please raise the content removal request.

Choose Our Best Expert to Help You

icon

5% Cashback

On APP - grab it while it lasts!

Download app now (or) Scan the QR code

*Offer eligible for first 3 orders ordered through app!

screener
ribbon
callback request mobile Chat Now
Have any Query?
close
Subtraction Payment required!

Only one step away from your solution of order no.