Convert the amounts back into aud and print the total sum

Assignment Help Management Information Sys
Reference no: EM132098308

Assignment

Question 1

Assume s is a string of numbers.

Write a program that checks the string s for the values '2', '3', '5' and '7'. When one of the values is found in the string, record its position within the string and continue to check for more occurrences. Finally, output the results found.

For example, if s = '568714523645873', your program should print:

2 - 7
3 - 8 14
5 - 0 6 11
7 - 3 13

Give Five (5) different examples with its output.

Question 2

Assume s is a string of numbers.

Write a program that prints the longest substring of s in which the numbers occur in descending order. For example, if s = '561984235870154755310', then your program should print

Longest substring in numeric descending order is: 755310

In the case of ties, print the first substring. For example, if s = '742951', then your program should print

Longest substring in numeric descendingorder is: 742

Question 3

You have recently returned to Australia after a holiday abroad. You have some unspent foreign currency that you need to convert back into AUD (Australian Dollars). Write a program that will allow you to enter two or more amounts of foreign currency and theirassociated exchange rate.

Convert the amounts back into AUD and print the total sum of AUD received once all conversions are complete.

Resulting program output might look similar to:

Enter currency amount: 100
Enter exchange rate: 0.75
100.0000 / 0.7500 = 133.33

Enter currency amount: 100
Enter exchange rate: 0.50
100.0000 / 0.5000 = 200.00

Total AUD received = $333.33

Question 4

Write a python program that allows the user to navigate the lines of text in a file. The program should prompt the user for a filename and input the lines of text into a list. The program then enters a loop in which it prints the number of lines in the file and prompts the user for a line number.

Actual line numbers range from 1 to the number of lines in the file. If the input is 0, the program quits. Otherwise, the program prints the line associated with that number.

Question 5

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 word that will be used for encryption/decryption. Each character of the user's input should be offset by the value of the same character in your secret word. For example, if my secret word is "cab" and the user wants to encrypt "apples".

c a b c a b
3 1 2 3 1 2

a p p l e s
1 16 16 12 5 19

4 17 18 15 6 21
d q r o f u

The encrypted output would be "dqrofu".
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
Result: dqrofu

Enter phrase to Decrypt (lowercase, no spaces): dqrofu
Result: apples

Question 6

Write a python program that accepts a text file as input. The program should read the text file and display all unique words in alphabetical order.

It should then display the non-unique words and the number of times that they occurred in the input text.
Input file contains the following text:

how much wood would a woodchuck chuck if a woodchuck could chuck wood

Expected outcome should resemble:

Non-unique words and number of occurrences in no particular order:
wood : 2
a : 2
woodchuck : 2
chuck : 2

Unique words in alphabetic order:
could
how
if
much
would

!End!

Reference no: EM132098308

Questions Cloud

What responsibilities do corporate entities have : What responsibilities do corporate entities (e.g., Target, Bank of America, Google, etc.) have? What is this based on?
Write report on a difficult international business situation : Identify a media article that you will analyse. It should report on- a difficult international business situation and involving cross-cultural management issues
Create the tables and relationships from the database design : Create the tables and relationships from the database design discussed in Lab 2. Create a query with all fields from the student table, where the student's.
Discuss why variable pay-for-performance plans : Discuss why variable pay-for-performance plans have become popular and what elements are needed to make them successful.
Convert the amounts back into aud and print the total sum : HIT137 : Write a program that will allow you to enter two or more amounts of foreign currency and their associated exchange rate.
Analytical case study on workplace scenario : Type: Analytical Case Study on Workplace scenario. Looking at HRD in the context of organizational development
How did the troublesome situations develop : How did the troublesome situations develop? Why have they so permeated the organization and business environment?
How will technology impact your career : How will technology impact your career? Strengthen your chances of stay ability, or worsen your chances?
Describe the features this technology will have over its : Describe the features, capabilities, or basic advantages this technology will have over its predecessor.

Reviews

Write a Review

Management Information Sys Questions & Answers

  A business process to use as the basis for the assignment

An ideal business process is one from an organisation where you have worked or a community organisation you have been involved with.

  How supply management benefits organizations

Based on your experience or readings, Show how Supply Management benefits organizations in the public and private sectors.

  How has technology impacted verbal cues used in interpreting

How has technology impacted the verbal and nonverbal cues used in interpreting messages? Provide examples to support your position.

  What political issues arise with use of information systems

B6111.41- What ethical, social, and political issues arise with the use of information systems? Which of these identified issues can have the most adverse effect on an organization if not managed properly?

  Advantages of using cloud-based enterprise application

What are the advantages and disadvantages of using cloud-based enterprise application

  Evaluate the use and applicability of rfid in industry today

Evaluate the use and applicability of Radio Frequency Identification Devises (RFID) in industry today. Choose a company and provide at least two examples of how these devices can be used to improve productivity in its operations.

  Identify a theory or idea from a non-business course

Identify a theory or idea from a non-business/non-MIS course that relates to concepts in IT. Explain where it came from, what it is, and how it relates to MIS/IT.

  Improve a team members performance

Explain the steps you would take, and the techniques you would use, to mold a group of individuals into a team. Justify your response.

  Discuss how to access team productivity

Discuss how to access team productivity - What conditions need to be in place for teams to excel and why and how would you reward teamwork

  How the procurement process is integrated with other process

The most common item categories are standard, consignment, subcontracting, third-party, and stock transfer. Explain how each of these item categories impactson procurement processwhen a company purchases materials or services?

  Describe the primary purpose of an erp system

Describe the primary purpose of an ERP system? Describe the process of an ERP information system.

  Intranet proposalcomplete imagine you work for a health

intranet proposalcomplete imagine you work for a health care or human service organization that does not use an

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd