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

  Write a program using the ''requetinteger''

using python/jython programming write a program using the 'requetInteger' function that will ask the user to type a value that will draw a line from one point on a picture to another. I don't need specific help just a gerneral idea.

  Programming exercise - routing of telephone

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

  Design a prgram using python

Design a prgram USING PYTHON that students can use to calculate what score they need on final exam to get a certan final grade for a course.

  Input a temperature as a floating point

Your program should input a temperature as a floating point number with an appended unit letter. It should then print the temperature in all four of the units above

  Q1if we knew all the ecological social and competitive

q1if we knew all the ecological social and competitive forces that regulate populations and in reality we couldnt what

  The number of lowercase letters in the file

The number of uppercase letters in the file The number of lowercase letters in the file

  Design program that asks user to enter amount in python

IN Python Design a program that asks the user to enter the amount that he or she has budget in a month. A loop should then prompt the user to enter his or her expenses for the month.

  Two-dimensional word puzzle

Write a python function called find_words that finds and prints the list of valid words in a two-dimensional word puzzle

  What are the issues assciated with top-down analysis

what are the issues assciated with top-down analysis please explain?

  Write a program that does simple packet routing

Write a program that does simple packet routing and your program will take three command-line arguments:

  Tower of hanoi game

Tower of Hanoi game that you can let a player to move discs between the towers using a mouse - Each move consists of taking the upper disk from one of the pegs and sliding it onto another rod, on top of the other disks that may already be present o..

  Programmer does not have to use the def statement

Unlike Z+-, the programmer does not have to use the DEF statement to create a variable. Instead, the programmer can simply use the variable. The first use of the variable creates it and initializes it to 0.

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