Implement a Bread making machine. Each machine has a brand and a name. A machine has the possibility to select from a few pre-established bread types: white, with grains and integral. In the bread composition there is flour, water and yeas. To these it can be added oil, milk, salt, sugar or dried fruits. There are multiple bread making machines, some make simple bread that has 2 sizes, others make also sweet bread and panettone. The implementation of the Bread machine should allow the user to choose if it's a simple or performant bread machine, the simple one can only make white bread, bread with grains and integral bread in two sizes(small and big), while the performant ones can also make sweet bread and panettone. Once the user chooses the type of bread he wants, he needs to add the quantity for the default ingredients(flour, water and yeast) and if he wants any of the extra ingredients he needs to add the quantity for those too.
The explanation for the task (in Romanian, translate in English)
https://ocw.cs.pub.ro/courses/so/teme/tema-3
Skeleton which they gave us is in 3-loader. The file to be modified is loader.c
https://github.com/systems-cs-pub-ro/so-assignments
What I have done by now I uploaded as an attachment.
Objectives:
Write a program to compare the performance of the Round Robin, non-preemptive Shortest Job First, and SRTF scheduling algorithms.
Details:
Input: A file of processes and related CPU burst times and arrival times. There will be no header in the file and each line will be of the form, "<processID> <burst time> <arrival time>" with spaces between each field.
Example:
A 10 0
B 1 1
C 2 3
D 1 0
E 5 1
You should read the data into a data structure. Then you will simulate the behavior of the 3 scheduling algorithms on the data, one at a time. For each algorithm, your program will need to print out a sort of vertical Gantt chart followed by some summary statistics.
Gantt chart:
First print the name of the scheduling algorithm, then each time a process is scheduled, pr
About: Python polymorphism
Task: Numerical simulation of orbits
The task is to simulate orbits through numerical integration (described below). By swapping one object with another, you can change behavior without changing the other objects.
The system will consist of two components:
- Function objects. These represent the function to be integrated. In this exercise you will create two of these, one without air resistance and one with. By switching function objects, the same integrator can be used for both cases.
- The integrator. The integrator from this exercise is described in the next section.
Numerical integration:
Here is an introduction to how numerical integration is intended.
- You start at time 0 and with a start state that is a vector. For the example of trajectories, the vector is 4 long and contains the elements [x_position, y_position, x_speed, y_speed]. The integrator should be written as generally as possible and be
Problem
Write Java class for a Tree class. This class must have methods to
default constructor
set and get the type (coniferous, deciduous, dead)
set and get the variety (for example apple, maple, etc.)
set and get the age
set and get the height
set and get the value
toString method that returns all of the tree information as a string
Remember you must guard against wrong values for type, age, and height.
Special Note: If you use an if statement to error check the type a string, you must use the equals string method not == or !=. Your tester program may appear to work using == or !=. However, the error checking will fail to work correctly when users input values for the type in a client program.
Example to test for a type not equal to dead use
!type.equals("dead")
do not use
type != "dead"
Create the Tree class.
Tesing the Tree class: Go to Testing Class Exercise 01
Submit Tree.java to the Blackboard Assignment: classex
Design and write a C language program that can be used as a unit converter
application. Your unit converter should contain at least four unit categories,
for example: length, mass, temperature, and time.
The program should display the main menu that contains unit categories that are
available, and the user will be prompted to select a unit category first. After the unit
category has been selected the program should then display another menu (i.e., a
submenu) that contains at least three units or more for the chosen unit category. For
example, if the mass unit category is selected, the units shown in its submenu could be:
kilogram, pound, and ounce.
The user will be prompted next to enter a value (i.e., a floating point number) to be
converted, as well as the two units from the submenu. The first unit is the unit to be
converted, while the second unit is the unit to which the first unit will be converted.
After these two units are selected, the progra
Bank System (Java)
Design a very basic system for a local bank to keep track of its employees, customers, and accounts. The system has users who are either employees or customers. The bank offers three types of accounts: checking, savings, and CD. A customer can have multiple accounts of each type. Inheritance is an important part of this assignment and must be utilized.
(Full / detailed instructions are on the uploaded assignment document)
Exercise 1A) Write a class called SportsCar containing the two instance variables maxSpeed and horsepowerof type int. Both these instance variables must, in any SportsCar object hold values that are greater than certain pre-specified values; otherwise, they do not qualify as proper SportsCarobjects. In our case, the minimum value for maxSpeed is 200 km/hour, and the minimum value for horsepower is 250hp. Include suitable member variables in the SportsCar class to hold these values (maxSpeedRequirement and horsepowerRequirement) and write a method called SportsCheck that returns true if both of the maxSpeed and horsepower for a particular SportsCar object are above the minimum requirements; otherwise false. Write accessor and mutator methods for maxSpeed, horsepower, maxSpeedRequirement and horsepowerRequirement.
Exercise 2A) Write a class called Robot with the following three instance variables: name (string), age (ushort), isOn (bool). Make the program initialize the instance v
This assignment is part 2 of a project. Part one is what is uploaded now. There is a Word document with some revisions that need to be made to the project prior to starting the assignment instructions, so please implement the corrections first. Otherwise follow the PDF file for instructions as they are to build upon the existing SQL project.
Need to design a web crawler using C language, the specifications for this assignment is in that project 1 web crawler pdf. There's two additional documents for starting tips.
My tutor said the sort of http libraries that you shouldn't use are libcurl. (as an exception, you can use the HTML parser htmltidy.c from libcurl.)
Also they said client.c could be a good starting point, most of them actually use that file to modify to make it work as a crawler.