CPSC223 Lab 6 solved
Program Instructions
1. Write a Python program that performs as a Tuffy Titan Contact List which
contains a dictionary of contacts that is stored on the hard drive and that can
have contacts added, modified, or deleted.
2. Create a contacts module to meet the following requirements:
i. Create a file named contacts.py.
a. Define a class named Contacts.
a. Define a member function named __init__ to…
View On WordPress
0 notes
CPSC223 Lab 5 solved
Program Instructions
1. All the functions should accept the weather dictionary data structure as follows:
weather dictionary:
key : datetime as string (formatted as YYYYMMDDhhmmss)
value : readings dictionary
readings dictionary
for key : ‘t’
value : temperature as integer
for key : ‘h’
value : humidity as integer
for key : ‘r’
value : rainfall as float
2. Create a weather module.
i. Create a…
View On WordPress
0 notes
CPSC223 Lab 4 solved
Laboratory Objectives
1. Write a Python program using:
i. modules
ii. packages
iii. functions using keyword arguments
2. Run and test a Python program.
Program Instructions
1. Write a Python package with sub-packages, modules, and functions using
keyword arguments. Use the following directory outline and module names (your
first starting point should be a directory called mathematics within an…
View On WordPress
0 notes
CPSC223 Lab 3 solved
1. Write a Python program that performs as an Employee Contact List which
contains a list of contacts that can be modified or deleted.
2. Create a contacts module to meet the following requirements:
i. Create a file named contacts.py.
ii. Add a comment at the top of the file which indicates your name, date and
the purpose of the file.
iii. Note: All contact dictionaries within this module should…
View On WordPress
0 notes
CPSC223 Lab 2 solved
Program Instructions
1. Write a Python program that performs as an Employee Contact List which
contains a list of contacts that can be modified or deleted.
2. Create a contacts module to meet the following requirements:
i. Create a file named contacts.py.
ii. Add a comment at the top of the file which indicates your name, date and
the purpose of the file.
iii. Note: All contact lists within this…
View On WordPress
0 notes
COMS 3134 Programming Homework 4 solved
Problem 1 (25 pts): k-best values
Assume you are given a sequence of values. We do not know how many elements there are in this sequence. In fact, there could be infinitely many. Only one value is provided at a time. This is also called a “stream” of values. The goal is to be able to retrieve the k-largest elements seen so far at any time.
Complete the class KBestCounter<T extends Comparable<?…
View On WordPress
0 notes
COMS 3134 Homework 3 Programming solved
Problem 1 – Additional BST Methods (34 pts)
In this problem, you will implement various additional algorithms operating on binary search trees. We have provided with you a standard implementation of a generic BST in *BinarySearchTree.java*.
Note that this class is an **abstract class**, which means that some of its methods are not implemented. An abstract class is a class with *some*…
View On WordPress
0 notes
COMS 3134 Programming Assignment 1 solved
Problem 1 – Generic Methods, Comparable, and Recursion – 25 points
Take a look at the file `GenericMethods.java`.
There are three methods you must implement:
* `public static <T extends Comparable<T>> int findMax(T[] arr)`: Iterate through the array to find the index of the largest element in the array. If there are two elements with the largest value, the method should return the index of the…
View On WordPress
0 notes
Project 1B COM S 352 solved
1. Introduction
For this project iteration, you will practice adding new system calls to the xv6 operating system, as well
as read and modify some code in the kernel of the operating system.
Task Points
1. Add system call getppid.
int getppid(void);
The system call returns the ID of the calling
process’ parent process.
10
2. Add system call ps.
int ps(char *psinfo);
Here, psifo is a pointer to an…
View On WordPress
0 notes
Project 1A COM S 352 solved
1. Preparation
As a pre-requisite of this project, you should have set up the xv6-riscv system. Refer to the document titled “Introduction to xv6 (part I)” and “VS Code configuration to use pyrite” on Canvas for more instructions on system installation. In addition, if you prefer to install the system on your own native/virtual Linux/macOS machine, refer to…
View On WordPress
0 notes
COM S 327 Programming Project 1.09 Pokemon Battles ´ solved
The most important part of this update is to add the Pokemon battle minigame. ´
If you are not familiar with Pokemon battles (or if you are), here’s a YouTube video of an example ´
battle: https://www.youtube.com/watch?v=Jpdy9pZyGH4.
Please don’t ask me why this video has over 2.3
million views1
.
I don’t know. Perhaps there are a lot of professors out there having their students…
View On WordPress
0 notes
COM S 327 Programming Project 1.08 Loading Pokemon ´ solved
We’ve parsed in a number of data files that specify certain details about how to create pokemon. Now ´
we’re actually going to load them into our game. We’ll add the ability to encounter them, but we’ll save
battling and capturing for next week.
We’re going to simplify many of the mechanics of the pokemon main series games (MSGs) in our im- ´
plementation. The full mechanics are just too tedious,…
View On WordPress
0 notes
COM S 327 Programming Project 1.06 Moving to Neighboring Maps and Porting to C++ solved
Remember way back in 1.02 when we generated a whole world full of maps and added the ability to
move between them? Let’s add that functionality back in. But now, we’ll put it behind our new user interface
that we built using Curses.
The PC can now use the movement keys to move into a gate. Doing this does not leave the PC standing
in the gate; instead, it places the PC in the in the road square…
View On WordPress
0 notes
COM S 327 Programming Project 1.02 Moving from map to map solved
In the first week we generated maps that had gates1
, theoretically to other maps. This week we’ll be
using those gates to connect to other terrain maps.
Later, we’ll use a library called curses to add a proper user interface. For now, we’ll simply print to
and read from the standard input at the terminal using standard I/O. We’re going to implement 6 commands,
all of which will have to be…
View On WordPress
0 notes
COM S 327 Programming Project 0 Image Processing solved
One of the most important operations in image processing and computer vision is edge detection. A
very simple and effective edge detector is the Sobel Filter.
The Sobel Filter is a pair of 3 × 3 matrices which
are convolved with the input image seperately then recombined. Specifically, the Sobel Filter is given by the
pair of discrete convolutions:
Ox =
−1 0 +1
−2 0 +2
−1 0 +1
⊗ I
Oy…
View On WordPress
0 notes
CS7070 Big Data Analytics Homework 2 solved
Consider a 25-by-20 Ratings matrix, Containing rows for 25 users and columns for 20 movies. Each cell of the table contains a rating value between 1(=Poor) and 7(=Best). Perform the following steps with this data structure:
(5) Randomly populate this table with 200 entries (between 1 and 7) and adjust the values to make sure that each row has at least 3 ratings and each column has at least 3…
View On WordPress
0 notes
Big Data Analytics – CS7070 Homework Assignment 1 solved
A1
A2
A3
Class
T1
0
0
0
0
T2
0
0
1
1
T3
0
1
0
1
T4
0
1
1
0
T5
1
0
0
1
T6
1
1
0
0
T7
1
1
1
1
Consider the data shown in the table. This data is to be used to construct a decision tree. We discussed in class today the outline of a MapReduce algorithm that will build a decision tree from a very large dataset stored in in HDFS across multiple nodes.
We want to use the ID3 algorithm for…
View On WordPress
0 notes