Assignment overview | Computer Science homework help


Assignment Overview
This assignment will give you more experience on the use of both loops and if statements. You are going to write a program that asks the user for two numbers to create and print a Latin Square.

A Latin Square is an n*n table filled with n different symbols in such a way that each symbol occurs exactly once in each row and exactly once in each column (see… ). For example, two possible Latin Squares of order 6:
1 2 3 4 5 6
2 3 4 5 6 1
3 4 5 6 1 2
4 5 6 1 2 3
5 6 1 2 3 4
6 1 2 3 4 5
3 4 5 6 1 2
4 5 6 1 2 3
5 6 1 2 3 4
6 1 2 3 4 5
1 2 3 4 5 6
2 3 4 5 6 1
Obviously, the top-left numbers are 1 and 3 respectively.

Project Description / Specification
Your program will ask user to input two numbers. The first number is ***** order of square; the second one is the top-left number of the square. Note that the second number should be between 1 and the first number, so your program should check this situation. Then, your program will print the corresponding Latin Square. Here is some example output:

Deliverables — your source code solution (remember to include your name, the date, program number and comments).Getting Started
Break the problem down into smaller parts. For example:
The range function and the % (modulus) operator are both useful for this project.
Can you generate a sequence beginning with 1 of the appropriate order? A sequence of order 5 would be 1 2 3 4 5
Can you generate a sequence of the appropriate order beginning with a number other than 1? For a sequence of order 5 starting with 3 would be 3 4 5 1 2
Can you generate the second in the Latin sequence? For example, starting with 1 2 3 4 the next sequence would be 2 3 4 1second program
Python Program 4Assignment Overview
This assignment will give you more experience with while loops and if statements, and give you an opportunity to work with strings.
The Problem
Scientists measure how closely related a species is by looking at the DNA sequences for key proteins and seeing how similar/dissimilar they are. If the two sequences of DNA are essentially the same, the two species are considered to be evolutionarily closer since there is a relationship between changes and time. This process is called sequence alignment.Consider the two strings of DNA below (completely made up, miss matches in red):Species 1: AATAACGAAA
Species 2: AAAACGAAAAA scientist can change the alignment by assuming that an insertion or deletion, of one of the bases has occurred. They could make such a change, called an indel for short, to see if it improves the alignment:Species 1: AATAACGAAA-
Species 2: AA-AACGAAAAAssuming two indels, marked as two dashes(-), the alignment is greatly improved. The scientist would assume that two changes happened, one change in each species.While complex algorithms exist to do sequence alignment, it is also useful to support a researcher and allow them to do an alignment by hand.

Program Specifications::
1. You will prompt for two strings. The strings can have any characters you like, but to be “biological” it should consist of: “A”, “T”, “C”, “G”. The strings do not have to be of the same length.
2. You will then prompt for one of 3 commands:
a. “a” for add. Add an indel
b. “d” for delete. Delete an indel
c. “s” for score. Score the present alignment
d. “q” for quit. Stop the process.
3. Adding an Indel. When you add an indel, you must prompt for two pieces of information:
a. which string to change
b. at what index (starting at 0) do you wish to place the indel (placement is before the given index, Error if the index is out of range).
The string should then be modified and a dash(-) added.
4. Delete an Indel: If you can add an indel, you should be able to delete it if it doesn’t do what you want. Again, you must prompt for two pieces of information
a. which string to change
b. the index (starting at 0) to delete the indel. It is an Error to delete a character that is not an indel.
5. Scoring. You will report the number of matches and the number of mismatches.
a. Any indel is automatically a mismatch.
b. If one string is shorter than the other, the shorter string is filled out with indels.
c. After you score, you print both strings.
i. Matching characters are printed in lower case. If the user entered upper case letters, you convert them to lower case on a match.
ii. All mismatches are printed in upper case.
iii. Indels are printed as dashes.Deliverables
Turn in be sure to use the specified file name, i.e. Make sure to include your name and the assignment number as well as the date in the comments. Be sure to add necessary comments to explain what you are doing.

Assignment Notes:
1. As before, try to do this in pieces:
a. get the command loop working
b. get individual commands to work (scoring is the most work, save it till last)
2. Printing the string is best done by creating

Calculate your paper price
Pages (550 words)
Approximate price: -

Why Choose Us

Quality Papers

We value our clients. For this reason, we ensure that each paper is written carefully as per the instructions provided by the client. Our editing team also checks all the papers to ensure that they have been completed as per the expectations.

Professional Academic Writers

Over the years, our Acme Homework has managed to secure the most qualified, reliable and experienced team of writers. The company has also ensured continued training and development of the team members to ensure that it keep up with the rising Academic Trends.

Affordable Prices

Our prices are fairly priced in such a way that ensures affordability. Additionally, you can get a free price quotation by clicking on the "Place Order" button.

On-Time delivery

We pay strict attention on deadlines. For this reason, we ensure that all papers are submitted earlier, even before the deadline indicated by the customer. For this reason, the client can go through the work and review everything.

100% Originality

At Essay USA, all papers are plagiarism-free as they are written from scratch. We have taken strict measures to ensure that there is no similarity on all papers and that citations are included as per the standards set.

Customer Support 24/7

Our support team is readily available to provide any guidance/help on our platform at any time of the day/night. Feel free to contact us via the Chat window or support email:

Try it now!

Calculate the price of your order

We'll send you the first draft for approval by at
Total price:

How it works?

Follow these simple steps to get your paper done

Place your order

Fill in the order form and provide all details of your assignment.

Proceed with the payment

Choose the payment system that suits you most.

Receive the final file

Once your paper is ready, we will email it to you.

Our Services

Essay USA has stood as the world’s leading custom essay writing services providers. Once you enter all the details in the order form under the place order button, the rest is up to us.


Essay Writing Services

At Essay USA, we prioritize on all aspects that bring about a good grade such as impeccable grammar, proper structure, zero-plagiarism and conformance to guidelines. Our experienced team of writers will help you completed your essays and other assignments.


Admission and Business Papers

Be assured that you’ll definitely get accepted to the Master’s level program at any university once you enter all the details in the order form. We won’t leave you here; we will also help you secure a good position in your aspired workplace by creating an outstanding resume or portfolio once you place an order.


Editing and Proofreading

Our skilled editing and writing team will help you restructure you paper, paraphrase, correct grammar and replace plagiarized sections on your paper just on time. The service is geared toward eliminating any mistakes and rather enhancing better quality.


Technical papers

We have writers in almost all fields including the most technical fields. You don’t have to worry about the complexity of your paper. Simply enter as much details as possible in the place order section.