Category: Computer science and IT assignments

IA02

Download and unzip IA02.zip
Modify the code so that FederalExpress and UnitedParcelService
implement the IShipper interface
That may involve some renaming of methods in the implementing classes
But do NOT change any of the Java code in IShipper.java
Add a 3rd shipping company named PlanetExpress
It must implement IShipper
PlanetExpress.outputProducts() must output all the fields that are
in the Product class
It must be neat and readable
Don’t just jam all the data together
It must output the total count of items to be shipped
It must output the total weight of items to be shipped
Add this new shipper to Menu.runDemo()

Sample output –

How do you want to ship your order?
1) FedEx
2) UPS
1
Your shipment is being processed by Federal Express
Items getting ready to ship:
1 Mechanical Keyboard (5.2 oz)
1 Wireless Mouse (1.3 oz)
3 HP Monitor (25.1 oz)
2 Aperion Speakers (20.8 oz)
Total number of items: 7
When choosing UPS:
How do you want to ship your order?
1) FedEx
2) UPS
2
Your shipment is being processed by UPS
Items getting ready to ship:
Mechanical Keyboard [1]
Wireless Mouse [1]
HP Monitor [3]
Aperion Speakers [2]
After you add the 3rd shipper:
How do you want to ship your order?
1) FedEx
2) UPS
3) Planet Express
3

Writing the output for the PlanetExpress is part of the assignment, so I’m
not including it here
Read the Details section closely

the file is attached.

Programming in Java – Assignment: Developing a Java Program

Create a Java project in IDE and begin the Project Program by developing a Java Method to print the programming specifications for the project.
Expand the Project Program and create Java code to input from the console (keyboard) the first quiz grade. Use a loop to allow the user to continue to enter grades as long as they don’t enter 999 to quit.
Expand the Project Program and create Java code to populate the array the student’s quiz grades. The grade is added to a running total, and the count of grades entered is incremented. If the grade entered is the 10th grade, the grade is forced to 999 and the loop ends; otherwise the user enters another quiz grade. When the loop ends count holds the number of grades entered.
Expand the Project Program and create Java code use another loop to print all grades in the array.
Expand the Project Program and create Java code to compute the average quiz grade.
Expand the Project Program and create Java code to us decision logic to find out the letter grade of the average based on the following grading scale and print to the console.
A = 90-100
B = 80-89
C = 70-79
D = 60-69
F = 0-59

Please see the attachment file for more information.

Add, remove, list friends

C program that can be able to add a friend ship, remove a friendship, and print out the friend(s) for a particular user. You can assume that friendships go both ways, i.e. if A is friends with B, then B is also friends with A.
Input:
The input will begin with an integer q (q 500,000), number of queries to your webpage. The next q lines will each contain 1 server query. There are 3 query types. The first query type is the add query. The add query will begin with the word ADD followed by two names, a and b. The word ADD and the names will all be separated by a single space. This query implies the people named a and b have become friends. The second query is the remove query. The remove query
will begin with the word REMOVE followed by two names, a and b. The word REMOVE and the two names will be separated by a single space. The remove query will denote that user a and b are no longer friends. The last query type is the list query. The list query will begin with the word LIST followed by one name, a, representing the user we wish to list the friends of. Each name will be at most 100 lower case characters and will contain no whitespace. No user will become a friend of themselves. No user will remove themselves as a friend. If a friendship is added, it will be between two users that are currently not friends. If a friendship is removed, it will be between two users that are currently friends.
Output:
For each list query print out on a line by itself the number of friends the user has. After which print out the names of each friend of the given user (in any order) each on their own line.

Compare two jsons

I have a basic code. I want to clean up all the hard coding in this basic code and make it more efficient.
What has to be done?
1) Read a json which has arrays into separate template hash map for each type in the array
2) Without using any hard coding, use the template and compare a new json for new and missing fields.

Multithreaded Chat

We need to program a multithreaded chat programm. I have already started to program it, but the server only processes the first message

Main task: Fix the code so that multiple clients can log on and server receives and sends all messages to all clients or one specific client if message starts with @username.

All other TODOs in the file can be ignored.

Please do not use any code from web as my teacher will check for plagiarism with an MIT software.

Written Assignment 3

Run SQL*Plus iggy/oracle. (It is assumed that you have already run theLoadDB.sql script last week that built the required user and tables.)
Type SPOOL c:cis4210M3spool.txt .
Write a single SQL statement that lists all suppliers supplying only hammers WITHOUT using the difference operation. (A join or subquery would be appropriate.)
When finished, stop the spooling and exit the program. (You may edit the spool file for clarity if you wish.)
Submit your text document with the file name c:cis4210M3spool.txt .

Written Assignment 3

Run SQL*Plus iggy/oracle. (It is assumed that you have already run theLoadDB.sql script last week that built the required user and tables.)
Type SPOOL c:cis4210M3spool.txt .
Write a single SQL statement that lists all suppliers supplying only hammers WITHOUT using the difference operation. (A join or subquery would be appropriate.)
When finished, stop the spooling and exit the program. (You may edit the spool file for clarity if you wish.)
Submit your text document with the file name c:cis4210M3spool.txt .

Simple Python Game Project

This is Grade 10 work only. (class ICS2O, Canada)
Negotiations on price may be allowed depending on the work you offer!
Only need minimum 60% of this done.
These are the instructions I was given https://pastebin.com/trGAsW4M
rubric: https://snipboard.io/fFyEw7.jpg (proposal/worklog not needed)

I had an idea for a crossyroad/frogger style 2d top down game
I only require a few levels (or random generation system)
Mainly just need the basic code, you don’t need to make it look great.
External assets (e.g. images) are allowed

Simple Python Game Project

This is Grade 10 work only. (class ICS2O, Canada)
Negotiations on price may be allowed depending on the work you offer!
Only need minimum 60% of this done.
These are the instructions I was given https://pastebin.com/trGAsW4M
rubric: https://snipboard.io/fFyEw7.jpg (proposal/worklog not needed)

I had an idea for a crossyroad/frogger style 2d top down game
I only require a few levels (or random generation system)
Mainly just need the basic code, you don’t need to make it look great.
External assets (e.g. images) are allowed

Simple Python Game Project

This is Grade 10 work only. (class ICS2O, Canada)
Negotiations on price may be allowed depending on the work you offer!
Only need minimum 60% of this done.
These are the instructions I was given https://pastebin.com/trGAsW4M
rubric: https://snipboard.io/fFyEw7.jpg (proposal/worklog not needed)

I had an idea for a crossyroad/frogger style 2d top down game
I only require a few levels (or random generation system)
Mainly just need the basic code, you don’t need to make it look great.
External assets (e.g. images) are allowed