Category: Desktop software development

PEP8 Simulator Assignment

PEP8 SIMULATOR ASSIGNMENT

GOAL: Write a PEP/8 machine language simulator that simulates the PEP/8 computer and instruction set for only the following instructions:

Instruction Specifier     Instruction     Addressing Modes     Status Bits
0000 0000     Stop execution               NA   
0001 100r     Bitwise invert r                 NA                    NZ
0001 110r     Arithmetic shift left r       NA                  NZVC
0001 111r     Arithmetic shift right r       NA                NZC
0010 000r     Rotate left r                       NA                    C
0010 001r     Rotate right r                       NA                    C
0011 0aaa     Decimal input trap                   d                NZV
0011 1aaa     Decimal output trap       d, i   
0100 1aaa     Character input                 d   
0101 0aaa     Character output               d, i   
0111 raaa     Add to r                                 d, i              NZVC
1000 raaa     Subtract from r                   d, i            NZVC
1001 raaa     Bitwise AND to r                 d, i              NZ
1010 raaa     Bitwise OR to r                 d, i            NZ
1100 raaa     Load r from memory           d, i            NZ
1101 raaa     Load byte from memory           d, i                      NZ
1110 raaa     Store r to memory                   d   
1111 raaa     Store byte r to memory             d   

Here are some specifics.

1.    Use an array to represent the memory.
2.    Use variables or arrays for the PEP8 registers. I recommend putting it all into a structure. I also recommend using an array of 16 bit values for A, X, PC, SP so that you can use the r bit from the instructions to point directly to A or X. You do NOT have to include the Status bits.
3.    Use unions of structures to break up the registers and instructions into the correct bits (for example, use a structure that can be unioned to break up the 8 bit specifier into the following bit combos (4, 1, 3), (5, 3), (7, 1), (8). This will allow you to instantly extract the instruction, register and addressing modes from each instruction. Also use a union to break up the 16 bit operand into two 8 bit values.
4.    Have the instructions be inputted either through the command line or better yet, through a file, in the following format for each instruction:
a.    6 Hexadecimal characters per instruction
5.    After each instruction in the program is executed, output the PEP8 machine register values.

Programming Assignment #7

For this assignment you will be modifying the Phone Book application provided and recreating it to be an AddressBook application.

Use the CreatePhoneBookDB class provided and add some data to the table to create an address book.  Make sure to create a primary key that is truly unique, include first and last name, phone number, street address, and email address.  Modify the code to add these fields to the table, then be sure to add data to the insert statements.  Run this to create the AddressBookDB.

Modify the PhoneBookManager and PhoneBookDemo programs to become an address book application and display the first and last name of each person in the address book for users to choose from.  When the user views a person be sure to display all information associated with that record.  Allow the user to edit each field, not just the phone number.  The user should be able to update anything tied to the person in the address book with the exception of the primary key.  Make sure when a new person is added to the address book all information is asked for and recorded.  Keep the functionality that allows the user to delete a record.

These are the minimum requirements for this assignment.

C# CSV File READ AND WRITE Assignment

Creating a simple C# console application that completes the stated task:

Trivia Game Part 1 – Lists
Write a program that plays a simple trivia game on a
topic on your choice. The game will read questions from a CSV file. Each question has a corresponding
answer and point value between 1 and 3 (based on the difficulty of the question). Implement the game
using three lists. A list of type string should be used for the questions. Another list of type string should be
used to store the answers. A list of type int should be used for the point values.
The index into the three lists can be used to tie the question, answer, and point value together. For
example, the item at index 0 for each list would correspond to question 1, answer 1, and the point value
for question 1. The item at index 1 for each list would correspond to question 2, answer 2, and the point
value for question 2, and so forth. Manually create at least ten questions, answers, and point values and
store it in a CSV file. When the program starts, read the questions from the CSV text file into your
program.
Your program should ask the player each question one at a time and allow the player to enter an answer.
The answer should not be case-sensitive. If the players answer matches the actual answer, the player
wins the number of points for that question. If the players answer is incorrect, the player wins no point
for the question. Your program should show the correct answer if the player is incorrect. After the player
has answered all questions, the game is over, and your program should display the players total score.
Trivia Game Part 2 Data Class
Write a program that is a modification of the Trivia
Game in Part 1 to use a single list instead of three lists. This can be accomplished by creating a Trivia
object that encapsulates the question, answer, and the point value for a particular trivia question.
Next, create a single list of Trivia objects (instead of three separate lists for the question, answer, and
point values). This change will make your program more scalable if there were ever additional properties
to add to a Trivia object (you would not need to add another list for each property). Although the program
has internally changed to a single list of objects, the execution of the program should be identical to
before.

I don’t need help with the questions or point values, simply how to write to a CSV file and read a CSV file into a list. As well, how to correlate those lists in relation to each other.

PLEASE HELP! Thank you

Java GUI development Java Concurrency and Multi-threaded

I have to create a java program that involves Java GUI development as well as Java Concurrency and Multi-threaded. The program is done by taking the solution given, and creating a GUI for it. I will included a word document to explain how the program works. It includes the repository, the set up instructions for jar file, and what the functions of the program. I need that program turned into the GUI program. The assignment I need your help on is under the document called homework.

Once you have the assignment set up, I need you to create it into the GUI, with all of the instruction listed in the homework document.  Program It is due April 20th, at 4:00pm Central Daylight (Austin, Texas)

I NEED AN EMAIL TO SEND YOU GUYS THE FULL PROGRAM. THE FILE UPLOADER DOESNT LET ME SEND FOLDERS. IT IS IMPORTANT FOR THIS ASSIGNMENT. IF the work is good from you guys I will comeback and submit another project with you.

User guide for Java assignment

I am in a group project and my part is creating a brief user guide for a program the team is creating, Sunday is the current plan for the programming team to complete their portion of the coding so I can begin the user guide. (Send it over to you if that is something you need for this)

A brief summary of the code being created is as follows:
For this exercise, you’ll be developing a program that simulates an ecosystem. The user will enter the number of each type of organism (you check that this entry is reasonable), and the program randomly distributes these organisms on 12 by 12 grid (more than one organism can occupy a square).

If need be I am willing to negotiate on price and ofcouse send.ovwr any and all needed information for this.

Object Oriented Programming homework

Hi, we firstly have to write a UML-Diagram with an example that we can choose ourselfs. My homework is in German, so it would be nice if the Methods and names would also be in German.
When we have finished the UMl-Diagram we need to send it to our professor. Only if he is fine with the diagram we can implement the UML diagram in our Java software (Eclipse).

The task is to use classes, inheritences, assosiations, modifikators (getters and setters), abstract classes and interface in ONE example.

I would like to test this webpage and see how it works.

So the order should be finished in two steps:
first step: make an UML Diagram
wait
second step after evaluation by professor: Implement the UML in java.

Attached is the task in English.

I can also provide an example we had in class tutorials, if needed.

Project 2

1. You are to write a simple program with two classes. One controller class and
a class to hold your object definition. (Similar to what we used in class)
2. Use a package in your project, the package name should be xxxprojectname.
xxx is your initials taken from the first three characters of your Cal Poly email
address.
3. Read in the following from the JOptionPane input window:
a. Customer First Name
b. Customer Last Name
c. Customer Phone Number (example: 9093873744)
d. Number of Vehicles to be manufactured (example: 5)
e. Number of fuel tanks to be mounted on the vehicle.
4. Make sure the following is entered correctly, otherwise display an error message
and close the program:
California State Polytechnic University, Pomona
Computer Information Systems Department
Introduction to Object-Oriented Programming with Java
a. The first name of the customer is not blank
b. The last name of the customer is not blank
c. The phone number of the customer is not blank and is 10 characters
d. The number of vehicles is between 1 and 10 (includes 1 and 10)
e. The number of fuel tanks can only be (2,4,8,10, 15,20)
5. Compute the cost for manufacturing vehicles using the price of $500.19 per
vehicle
6. Compute the cost for fuel tanks using the price of $2.15 per fuel cell.
7. For this project each vehicle tank holds 12 Fuel Cells and vehicles can have more
than one tank.
8. Use the following formulas to perform the calculations:
Cost for manufacturing = number of vehicles * manufacturing price
Cost for fuel tanks = number of vehicles * number of tanks * number
of fuel cells per tank * price of fuel cell
9. Then you are to test the program using the data listed below. In the case of the
first customer enter the data that has errors as shown in the screenshots below.
The program should prompt you to reenter the data until the data is valid.
First Name Last Name Phone Number of Vehicles Number of Tanks
Homer Simpson 9093429871 5 8
Bart Simpson 9093429872 2 2
Lisa Simpson 9093429873 4 15
Marge Simpson 9093429874 3 4
Make sure that you check that the data is valid when the user enters it, Note in the example
below how some data entered is incorrect the program then asks you to enter it again.
Enter First Name
Last Name
California State Polytechnic University, Pomona
Computer Information Systems Department
Introduction to Object-Oriented Programming with Java
Enter Phone
Enter Number of Vehicles
Enter Number of Tanks
Display the summary as follow
California State Polytechnic Univer

python assignment

COMP 2152 Assignment Winter 2020
Important:
1.    This is an individual assignment (complete the requirements on your own).
2.    Do not share the assignment requirements with any former or future students in COMP 2152. Do not share this assignment requirements online in any format, anywhere.
3.    You may choose to complete the all requirements or attempt to complete as much as possible.
4.    Credit will be awarded for requirements completed correctly and entirely with the portion of program functioning as requested. No partial marks will be awarded.
5.    You are allowed to make assumptions about application functionality not mentioned in the project idea (which is more of a general guideline).
6.    At minimum your project must display the functionality described for the idea selected. Any functionality described that is not a part of your submission will result in grade penalties at the discretion of the instructor.
Submission:
–    Submit Python files only. No other format is accepted.
–    DO NOT submit zipped (compressed) files. Any compressed files will not be marked.
–    Submit in  GB Learn and Blackboard!!
Select one of the project ideas below and develop a Python application that meets the requirements described below:
Project ideas (should you want to work on another idea make sure to check with your instructor first):
7.    Online store: users should be able to order items for sale or combo items (items when bought together trigger a discount). The order should include number of items and prices for items and should generate and display receipts.
8.    MP3 Player: the user should be able to choose music categories, individual songs, or artists and should be able to buy an album, or a song. The user should be buying one or more selection, including mixed selections. The user should be able to listen to a 10 seconds sample song selection of their choice.
9.    File manager: the user should be able to create folders and subfolders and should be able to copy and move files to the newly created directories. The user should be able to sort the directories. The user should be able to see what files are in a directory of choice.
10.    Library: users should be able to search for books by title or by author, should be able to search by book category (fiction, non-fiction, autobiographies, travel, etc.). The user should be able to purchase one or more books in any combination of authors, titles, categories, etc. The application should generate and display a receipt stating the list of books selected and their return due dates.
11.    Expense tracker: the user should be able to enter expenses per category (food, clothing, entertainment, rent, etc) and the application should track the expenses per week or month. The user should be able to see their total expenses for a month of their choice for each category and a total monthly expense. The monthly expense report should include average expenses for each category for the year and indicate if the user expense for the month selected is lower or higher than the annual average. Also, the report should display the percentage of expenses from each category out of the total monthly expenses.

Project application requirements:

Requirements description   
Basic:
1.    Project should have a functioning menu
2.    Project should have adequate functions (minimum 3 functions)
3.    Project should make use of files to save the data
4.    Project should handle adequate exceptions
5.    Project should display information formatted adequately
6.    Project should make use of lists or dictionaries as appropriate.
7.    Project should follow adequate naming conventions for variables and functions, and should have comments as appropriate.    

Intermediate:
8.    Project should use an object-oriented approach
9.    Project should use a database   
Advanced:
10.    Project should use a GUI platform   

Total    100

visual studio

1. INTRODUCTION MiHotel is a mid-range hotel chain that started in Traverse City, Michigan in 1980. The chain offers three star service and moderately-priced rooms at its 15 hotels throughout Michigan. MiHotel has plans for a major expansion, building three new hotels in the next three years. As a part of the expansion, the company will be hiring dozens of employees for each new hotel. MiHotels Human Resources (HR) department has decided that the existing online application process is insufficient to handle the demand created by the companys expansion plans. As such, they have decided to implement a new applicant processing system to better meet the needs of their growing company.

2. Background In meeting with the parties involved in creating this system, you realize that people from different departments need to have different levels of access into the system. That is, employees in HR should not have the same screens or access to data that a hotel manager would have, or the access that executives would have. At the same time, the manager from hotel A should not be able to see the data from hotel B. The departments needed for this assignment: HR, Hotel Managers, Executives.

The first part is to think about the flow of logging in. This is something you’ve done over and over, but likely haven’t thought about. The users put in their user ID and password and the system determines which department they work and sends them where they need to go. For this part, you will set this up something like “if user is jsmith go to department XYZ”

3. Assignment

A. Create a flowchart or write out pseudocode for how you are going to control access to the system. Do not worry about specific users, just the department in which they work. (Later in the course we will learn how to authenticate users from a database and retrieve the department in which they work.)

B. Create a new project in Visual Studio, design the form(s) needed to implement your logic from part A. You may hard-code the departments in the decision portion of your code. Submit: a Word document containing your pseudocode/flowchart, screenshots of your screens with the project running, a copy of your code.

Big Statistics

Youve been hired to develop statistics software. Specifically, your software will calculate the same
statistics as in the statistics program in PP#3, as well as one new statistic (described below).
In each individual run of your software, you will input two lists of numbers, and these two lists
will have the same length, a length that will be input (and idiotproofed) at runtime, just before
allocating and then inputting the lists. For each of the two lists of numbers, you will need to
calculate the taxicab norm as in PP#3, the Euclidean norm (also known as the square norm) as in
PP#3, the 3-norm as in PP#3, as well as, for the two lists together, an additional statistic known as
the dot product (see page 4).