Create a jes function

Assignment Help Python Programming
Reference no: EM13739577

All of your code must be in a single JY file named assignment2.jy. Each of the following levels (except level 0, which is not code) must be attempted in its own function (e.g. level 1 in level1(), etc.).

While you are permitted to create helper/utility functions that may be shared between the different levels, there must not be any direct interactions between the functions of different levels. E.g. level2() must never call level1(), etc. While this may not be ideal, if there is an issue with one level, we can still mark the other levels for what they are.

Level 0: Data preparation

Before any coding, prepare your data based on the given guidelines. You must create at least one character image (needed for level 1) and at least one image containing the text to detect. The text to detect must contain at least two occurrences of the chosen character and as shown must be just a single row of text.

Level 1: Detect instances of one character

Create a JES function named level1() and include the relevant behaviours. Specifically, in this level, you only need to detect just one character from the text and the text is only in a single row. The text image needs to have at least two occurrences of the character that you have chosen to detect.

Level 2: Detect all characters including space

Copy, paste and extend your level1() in a function named level2() so that all characters (uppercase A to Z and space) can be detected.

Hint: There is no need to use lists for level 2 (see level 3) but there will be a lot of code repetition (which is permitted for this level).

Tip 1: Look up "QUICK BROWN FOX..." (or similar) when preparing your text image to detect.

Tip 2: As having one image file per character mask can be tedious, feel free (but it is not a requirement) to create a single image with characters A-Z and "extract" the masks from that. You can manually enter/assume the bounding coordinates of each character.

Level 3: Using lists/arrays

Copy, paste and extend the level2() function in a function named level3() for this level. You must now store the character mask picture objects for A to Z and the space character in a list/array. This should significantly reduce code repetition that you would have in level 2.

 

Reference no: EM13739577

Questions Cloud

What you learned from the research in the articles : What connections and or confirmations can you make between the results of your interview and what you learned from the research in the articles?
What institutions are playing a role in greeces future : Greece is trying to re-establish its power within a complex system of regional and international organizations. Describe Greece's situation. What institutions are playing a role in Greece's future? Are there other institutions and factors affecting t..
Bargaining power of suppliers : Before writing your response, using the textbook and knowledge you have about the airline industry, complete the industry analysis. Provide a rating for each area and provide a short justification for the rating: Rate High, Medium, Medium to Low, or..
Competitors on factors important in the industry : Question 1: Critical-Success-Factor (CSF) analysis is one of the few analytical tools available to compare one's company with its competitors on factors important in the industry.
Create a jes function : Create a JES function named level1() and include the relevant behaviours. Specifically, in this level, you only need to detect just one character from the text and the text is only in a single row.
What is the effective annual rate : You credit card statement says that you will be charged 1.05% interest a month on unpaid balances. What is the Effective Annual Rate (EAR) being charged
Debate about whether high employment rates : Currently there is a debate about whether high employment rates in the US are the result of cyclical factors or structural factors. Describe this debate? What impact might immigration have on the different types of unemployment?
Income taxes affect aggregate demand : Which of the following was not a cause of the U.S. budget deficits in the 1980s? Which of the following does not qualify as an automatic stabilizer? Income taxes affect aggregate demand. Which of the following constitutes a direct tax?
All organizational learning disabilities : Identify a current organization that is not, in your opinion, a Learning Organization. Your are to develop a presentation and supporting paper that will describe how, through a Systems View

Reviews

Write a Review

Python Programming Questions & Answers

  Specializes in solving the equations ax=b by doolittle''s dec

Write a  program that specializes in solving the equations Ax=b by Doolittle's decomposition method, where a is the HIbber matrix of arbitrary size nxn

  Project will be a simple, working program

This programming project will be a simple, working program, using Python language, which utilizes a good design process and includes:Sequential, selection, and repetitive programming statements as well as,At least one function call.

  The integers should be printed in order with addresses

The integers should be printed in order with addresses from main. When the steps of the function order have been completed the smallest value will be stored in a, the middle in b, and the largest in c.

  Improve the structural design - haunted house game

List the things you changed and the purpose of changing it. Good reasons include making code easier to read and easier to navigate when modifying it.

  What is the purpose of variable fragnum

What is the purpose of variable fragNum in rdt1.0 sender code and how is the segmented message merged back in receiver? Which operation justifies it?

  Write a program that counts the frequencies of each word

Write a program that counts the frequencies of each word in a text, and output each word with its count and line numbers where it appears. We define a word as a contiguous sequence of non-white-space characters.

  Reinforce topic material on simple functions

Select 3 sets of test data that will demonstrate the correct 'normal' operation of your program. Select another 2 sets of test data that will demonstrate the "abnormal" operation of your program.

  Write python program which imports three dictionaries

Write a Python program called hours.py which imports three dictionaries, and uses the data in them to calculate how many hours each person has spent in the lab.

  Let ll be a list of integers

Let LL be a list of integers. Use list comprehension to produce teh following lists. Each one should just take onel line. Anser questions as two comments.

  Implement functions for insertion sort

Implement functions for Insertion sort and bubble sort in python programming language and a function that calculates the function execution time.

  Programming exercise - routing of telephone

programming exercise - routing of telephone callsdescriptionsome telephone operators have submitted their price lists

  The program is to print the time

The program is to print the time in seconds that the iterative version takes, the time in seconds that the recursive version takes, and the difference between the times.

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