This is a basic C Programming class, so please only basic code. The program needs to be written in the Ch11.c file.
Before starting, carefully study sort_str(), stsrt(), s_gets(), mod_str(), and format(). You will use the code from all of these functions! The sort_str() function will call the other functions, although you could call mod_str() from s_gets().
Your end goal is to create a program that prints a class roll sheet in alphabetical order. The program prints out the roster like this...
HATFIELD, HEIDI
KAISER, RUSSELL
LIPSHUTZ, HOWARD
PENKERT, DAWN
WRIGHT, ELIZABETH
The user inputs the students' first name and last names separately but within one loop. The loop should end when the user presses enter on the first name without entering any text. Upon completing entry of data, the output pictured above should display on stdout.
First step: Get all the files working from your sort_str.c file with the following changes: You should be ab
Goals
For this assignment, you will design you own file system. It should be able to store up to 10,000 files on a medium up to 2GB in size. The maximum size of each file is 200MB. The file system should provide a directory tree with file names composed of arbitrary characters up to 200 bytes long. Each block is 1KB in size, which means your file system will have to handle at least 2,097,152 x 1KB blocks = 2GB.
The file system does not have to be efficient. In particular, you do not need to implement a buffer cache. Your implementation must limit itself to using a fixed size of storage, on the order of 1MB or (much) less for all the tables etc. The actual storage must be moderately efficient, so that most of the space on the "disk" should be available for storage of actual data.
Details
The file system should use the following block read and write operations which will be provided:
typedef char block [1024]; /* each block is 1KB */
int read_block (int bloc
This is an assignment for an algorithm course in uni. The course focuses on optimizing algorithms. This is a Java project that requires the algorithm to read a file with points that represent places (cities) and what other places they are connected with, then show them as points (vertex) and roads (edges) on an interface. When clicking on a city and any other city the algorithm should highlight the shortest path taken from that city to the other using Dijkstra, and calculate that path's distance and show it to the user with any other info needed.
attached is a file with a pdf that explains the assignment in details, please check it out.
In short we need to create a map that the user can interact with to find the best shortest path.
because this is an algorithm assignment please focus on commenting on the code, and if you can explain the algorithm you decide to use for me.
Paste your solutions to the exercises, and your reflective commentary, into a single Word document and upload it here. When pasting in Python code, make sure you use a fixed width font such as Courier new in order to preserve indentation.
these are the instructions
Attaching the zip file with all required files, including specification sheet with instructions on assignment.
Ignore the 'readme.txt' file, I will complete that, just do all the programming. There are ~25 methods to write total. Giving ample time for completion, ask me if you have any questions.
Each experiment should be documented with a separate C++ file + output screen. You can add some notes next to the lines documenting what the statements are doing. Please, format the source file when you insert it to the Word document file for readability. I will consider the format in grading!
Plagiarism is considered academic dishonesty and is subject to a sanction such as getting zero for all lab works or even getting an F grade in the course.
1)
Create an OpenGL Application with a window that has a title of (Ghalia) and of size 700x500
Change the background color to anything other than black or white
Draw an abstraction of Palm trees, beach, sand and sun.
Specify the colors of your different objects
2)
Identify two main objects to be the objects of interest in your program. Which is the palm tree and water of the beach.
Model Activation:
The user would press a key to activate a model such that the following transformations would be only applied to the active model
1: Palm tree active
2: Water active
3: both models active.
Transformations:
Implement the following transformations. Note, these transformations would be only applied to the active model based on the selection from previous step. Add keyboard interaction for the following keys:
Arrow up: translate along the positive y axis
Arrow down: translate along the negativ
Connect 4 Game with multiple clients connecting to it, as well as it having a chat for the players to communicate. This youtube video is basically a good idea of what I would like to reference to.
https://www.youtube.com/watch?v=TSkjy7387RU&t=14s
Task: Graphical User Interface
Task description: Cannon game
You will use a variation of the code from the last exercise to create a cannonball game. The player should put strength and angle of the cannon to hit an object on the ground a distance away from the cannon. Use the techniques from the last exercise to calculate the trajectory of the cannonball. There should be an option box for whether the game will use air resistance or not.
To be able to render the results of the integrator as an animation instead of a regular plot, there is an alternative integrator added to the exercise. This integrator returns its results through repeated calls to the next () method. So every time you update the animation, call next () to get out the next value from the integrator.
An example of the GUI is shown below. The cannon is at the bottom left. The red square is the goal the player must hit. The black balls are cannonballs the player shoots. The white box is an obstacle w
Requirements:
For this assignment, you are tasked to develop a game called Guess the Word, which allows two players to participate in turn. The game should contain the following key elements of play:
1. The game should start by prompting Player 1 to enter a word of their choice via the Python console screen for Player 2 to guess (assume that Player 2 looks away and does not see).
2. The Python console should then be cleared so as to hide the word from Player 2.
3. Player 2 must now guess the word by typing one letter into the Python console following a suitable prompt.
4. For each guess, the game needs to determine if the guessed letter is present in the word that has been set by Player 1. If the guess is incorrect, one element of an ambulance should be drawn onto the game/Turtle screen (see video for example of how elements may be drawn and further detail below).
5. The process then repeats from