Category: Computer science and IT assignments

Codecademy.com Python 2 Functions Assignment

I will need you to complete a project in the free version of codecademy.com. In codecademy, you will chose Python 2, then Functions, work through the project and submit your completed code from the vacation project you completed in codecademy.

https://www.codecademy.com/learn/learn-python/modules/learn-python-functions-u-4

Make sure it is syntactically correct for version 3 of Python (check this with IDLE). Add comments and use the specified
output to check it.
At the top of your program, use single line comments to give your name, class name, date, and the
name of the assignment. (1 point)
Use a multiline comment to give a description of what your program does. (1 point)
Use at least 3 comments at the end of your lines to explain what each line does. (3 points)
Program Elements
1. Your completed hotel_cost function
2. Your completed plane_ride_cost function
3. Your completed rental_car_cost function
4. Your completed trip_cost function
5. Have your trip_cost function use the following inputs and print the output: Pittsburgh, 12,
1200
Note
What to turn in
Submit the following to the Blackboard submission portal:
1. I need a screenshot of it running in the Python shell window (use Ctrl-Alt-Print Screen) pasted
into a Word document (or compatible format).
2. Your Python script (I need your .py file, not a screenshot of it)

Project

Key Topics
Installing Python/Jupyter/IPython on Windows and Mac
Python Basics (variables, strings, simple math, conditional logic, for loops, lists,
tuples, dictionaries, etc)
Using the Pandas library to manipulate data (filtering and sorting data, combining
files, GroupBy, etc)
Plotting data in Python using Matplotlib and Seaborn
Logistic Regression using Scikit-Learn
Classification and Regression Metrics
Decision Trees using Scikit-Learn
Random Forests (Scikit-Learn)
Clustering Algorithms (K-Means, Hierarchical Clustering)
Dimensionality Reduction (Principal Component Analysis)

I normally see some variation of:
a) .ipynb file
b) .ipynb file + powerpoint file
c) .ipynb file + report (I highly discourage writing a report as a blog post is better for an online presence.
d) .ipynb file + blog post
e) .py file
f) .py file + powerpoint file

lab5

The assignment and instructions are in the lab 5 ipynb file attached. The test case is included and the needed downloads described are in the lab 4 file attached. It is python 3 code and It can’t be a copy of what is on github or other sites, I have those and still am having difficulty doing the assignment

Stacks & Queues( variation of the popular card game SOLITAIRE using stacks and queues)

    Program Code : Java
Deck/Stock – A pile of cards, face down, which are left over after setting up the other layout areas. These are turned over one-at-a-time into the waste. For your program this pile of cards MUST be stored in a STACK.

Waste – The area where the cards from the deck/stock go when they are brought into play. Only cards from the stock can be played to the waste. Only the topmost card can be moved to either the foundation or to the tableau. For your program this pile of cards MUST be stored in a STACK.

Foundations – The aim of the games is to clear the tableau and move all the cards to the foundation. They are built up by suit from Ace(1) to King(13). Assume at the start of the game, the four ACEs are already placed on the foundation. For your program this pile of cards MUST be stored in four separate STACKs (one for each suit). Recommended you use an ARRAY of stacks for this.

Tableaus – This consists of a number of piles where cards can be moved from one tableau to another or from tableau to a foundation. For your program this pile of cards MUST be stored in 7 STACKs and 7 QUEUEs. Each tableau (ex. T4 see picture) has both a stack and a queue. The stack holds the cards that have been turned over while the queue holds the cards that have not yet turned. At the start of the game Tableau 0 (T0 see picture) starts with a queue containing 1 card, T1 has two cards, T2 has 3 cards and so on. The game begins by DEQUEUING one card from each of these queues and placing it into the stack of the tableau. Hence, the T0 queue begins the game with 0 cards, T1 queue has 1 card and so forth while each of the tableau stacks have the one card to start with (the topmost card you can see). Recommended you use an ARRAY of 7 queues and another ARRAY of 7 stacks for this.
Creating a shuffled deck of 52 cards
Your deck of cards should be represented by a number (1-13) followed by the first letter of the suit. Example: 1H, 5S, 12C, 13D would mean ace of hearts(1H), 5 of spades(5S), queen of clubs(12C), and king of diamonds(13D). The deck also needs to be shuffled.
Source code for 52 card and shuffled :
import java.util.ArrayList;
import java.util.Collections;

/**
*
* @author Faruk
*/
public class Deck {

public static void main(String[] args)
{
ArrayList<String> shuffled_deck = shuffledDeck();

System.out.println( shuffled_deck );
}

private static ArrayList<String> shuffledDeck()
{
ArrayList<String> deck = new ArrayList<String>();

String[] suit = new String[] { “H”,”D”,”C”,”S” };
for(int i=1; i<=13; i++)
for(int j=0; j<4; j++)
deck.add( i + suit[j] );

Collections.shuffle(deck);

return deck;
}
}
Stacks and Queues
You may use Java’s ArrayDeque class and Java’s Stack class or you may use your own StackBox / QueueBox code or any combination of these four BUT your solution must use stacks and queues as described above.

*** Assume for all stacks you can only move and see (peek) the top card of any stack.

Sample Program
( run runme.– Do not try to “decompile” this program. There are safeguards in place and detection of cheating will result in disciplinary action.) = Please don’t Do reverse Engineering!
I attach the file .

Simple Game Rules
You can only move the top card of any stack.
To move a card to the foundation, the foundation must have the previous card already there. Example, you can’t move 12D if 11D is not already in the foundation.
To move a card onto a tableau, the card must be one less than the card currently showing on the target tableau AND the suit color must be opposite color than the card showing. Example, moving 7H on a tableau currently showing a 8S is allowed but you can’t move 7H to a 8D (suit colors are both red). You can also move any card to the tableau if the tableau is empty (no cards in its stack or queue left).

Marking & Grading
!! IMPORTANT!! Your program must use stacks and queues as described. If you don’t use (mostly) stacks and queues then maximum mark given will be 25% even if the program does work. !!

[10 marks]: Program uses Stacks and Queues for deck, waste, tableaus, and foundations.
[2 marks]: Draw a card from deck stack to waste stack.
[2 marks]: Move all cards from waste stack back to desk stack when deck stack is empty
[4 marks]: Move waste card to foundations correctly assuming move is allowed.
[4 marks]: Move waste card to a tableau assuming move is allowed
[6 marks]: Moving a tableau card from one tableau to another assuming move is allowed
[4 marks]: Dequeing a tableau queue and placing card on the tableau stack when stack is empty.
[4 marks]: Moving tableau card to foundations assuming move is allowed.
[4 marks]: Game robustness testing ( can’t crash the program )

Here i attatched 3 more picture with a sample output picture.
Assignment Due : In 25 Hours .
Please update me soon ! Thanks

No reverse coding or Don’t use the solo.class(just for ref)

lab5

The assignment and instructions are in the lab 5 ipynb file attached. The test case is included and the needed downloads described are in the lab 4 file attached. It is python 3 code and It can’t be a copy of what is on github or other sites, I have those and still am having difficulty doing the assignment. Any questions or price negotiations should be sent to my email robert_erickson@yahoo.com

recreate image via opengl(glut)

I need to recreate the image in the “source” photo using only the glut library(no glew or windows.h). i am using linux with ubuntu. i will be using the built in g++ editor to compile the scripts using -lGLU -lglut -lGL -lm. the other attached image shows the type of quality im looking for, no special shaders.

Excel Sudoku/ solve puzzle write summary

This assignment is to solve the Sudoku puzzle that is showing in the attachment using an Excel Spreadsheet.  You will have to research how to set up and get Excel to solve the puzzle for you.  You will write a summary of what you did, how you did it and what your thoughts of the project are.  Was it a learning experience? Did you enjoy it?  Where did you find information on how to set it up? 

Excel Sudoku solve puzzle write summary

Using Excel solve Sudoku puzzle (use numbers attached). Research how to set up and get excel to solve the puzzle for you. Write a summary of what you did, how you did it and what your thoughts of the project are. Was it a learning experience?  Where did you find the information on how to set it up?

If finished on 2/13/2020 by 11:30 $40

Excel Sudoku solve puzzle write summary

Using Excel solve Sudoku puzzle (use numbers attached). Research how to set up and get excel to solve the puzzle for you. Write a summary of what you did, how you did it and what your thoughts of the project are. Was it a learning experience?  Where did you find the information on how to set it up?

Written assignment 6

Follow the instructions in Listing 6-2 on page 121 to create and destroy a database. Before you create a new database, you will need a profile (PFILE) named initTest.ora in the directory from which you are running sql*plus (or specify the entire path with the file name). This file contains the single line db_name=TEST. This will create the simplest database possible. You also need to SET ORACLE_SID=TEST at the command prompt, before running SQLPLUS / as sysdba. You will know you started the correct instance if it says, “Connected to an idle instance.”  Don’t forget to SPOOL c:cis4210M6spool.txt as soon as you sign into sql*plus.
Submit your text document with the file name c:cis4210M6spool.txt .

*I have attached a photo of the instructions in Listing 6-2 on pg 121.