2. Create two class, a student class, and a course class, take advantage of the codes provided in the class slides and sample codes. python
|
Student |
Course |
|
__Username:str __Courses:list |
__courseName:str __students: list |
|
addCourse():None dropCourse():None getCourse():list |
addStudent:None dropStudent:None getStudents():list getNumber of students:int |
3. Create a student object for every student in the UD.txt (you can use a loop for this)
4. Create 6 course objects:
|
1. CS131 2. CS132 3. EE210 4. EE310 5. Math320 6. Math220 |
5. After the student user login to their account as we have done in lab 2. Display the following:
|
A: Show all courses available B: Add a course C: Drop a course D: Show all my courses E: Exit |
When students choose option A, should display the following, where # is the actual number of students enrolled in the class.
|
1. CS131 students number:# 2. CS132 students number:# 3. EE210 students number:# 4. EE310 students number:# 5. Math 320 students number:# 6. Math 220 students number:# |
Let the students add or drop a classes as they wish. When they choose E, exit the program.
6. For option D, show the courses in the student’s course list.
7. The hard part. Since your program will end when user chose option E. You need to keep track the classes been added and dropped by each students, and who are actually in the classes. Therefore, based on your experiences in lab 3 and 4, create a SI.txt (student info) to store the courses in each student’s course list. Create CI.txt (course info) to store all the students enrolled in each course. This will be executed in the background every time when the user chose option E: Exit. When you run your program, and create your course objects, this information needs to be read into each student and course object. When a student log into his or her account, the student should be able to see what courses is in the course list by chose option D. The number of students in each course also need to be displayed in Option A.
Student info
UD.txt
USERNAME,PASSWORD sdd233,Pad231 dcf987, BHYW4fw dgr803,Sb83d2d mkr212,UNNHS322 lki065,dgw6234 ped332,9891ds ytr876,dsid21kk nmh223,3282jd3d2
In: Computer Science
Lubricants, Inc., produces a special kind of grease that is widely used by race car drivers. The grease is produced in two processing departments—Refining and Blending. Raw materials are introduced at various points in the Refining Department.
The following incomplete Work in Process account is available for the Refining Department for March:
| Work in Process—Refining Department | |||
| March 1 balance | 31,800 | Completed and transferred to Blending |
? |
| Materials | 137,600 | ||
| Direct labor | 81,200 | ||
| Overhead | 478,000 | ||
| March 31 balance | ? | ||
The March 1 work in process inventory in the Refining Department consists of the following elements: materials, $7,200; direct labor, $3,800; and overhead, $20,800.
Costs incurred during March in the Blending Department were: materials used, $45,000; direct labor, $16,400; and overhead cost applied to production, $104,000.
Required:
1. Prepare journal entries to record the costs incurred in both the Refining Department and Blending Department during March. Key your entries to the items (a) through (g) below.
2. Post the journal entries from (1) above to T-accounts. The following account balances existed at the beginning of March. (The beginning balance in the Refining Department’s Work in Process is given in the T-account shown above.)
| Raw materials | $ | 210,600 |
| Work in process—Blending Department | $ | 46,000 |
| Finished goods | $ | 26,000 |
In: Accounting
C programing.
Ask user to enter a word on sting and print all possible
combinations. (please don't use printer) Using recursion.
example
ask user to input
user: "ABC"
output:
ABC
ACB
BAC
BCA
CAB
CBA
In: Computer Science
A monatomic ideal gas is heated while at a constant volume of 1.00 * 10^-3 m^3, using a 10 watt heater. The pressure of the gas increases by 5.0 * 10^4 Pa. How long was the heater on?
In: Physics
Say 5% of circuit boards tested by a manufacturer are defective. Let Y be the number of defective boards in a random sample of size n = 25.
What kind of random variable is Y ? In particular, write Y ~Distribution(p, n), where you fill in the correct distribution name and parameters p and n.
Determine P (Y ≥ 5).
DetermineP(1≤Y ≤4).
What is the probability that none of the 25 boards are defective?
In: Math
1. Rejecting the null hypothesis that the population slope is equal to zero or no relationship and concluding that the relationship between x and y is significant does not enable one to conclude that a cause-and-effect relationship is present between x and y. Explain why.
2. Discuss the statistics that must be evaluated when reviewing the regression analysis output. Provide examples of what the values represent and an explanation of why they are important.
In: Math
What to do
This assignment is going to be pretty simple - we're just going compute frequency counts of certain colors in certain ranges (Histogram of the image).
Because there is no natural way of segregating RGB color ranges, we usually do this color by color. So you'll be computing frequency counts for individual color components individually.
The expectation is that you will write a function as described by a python function signature below (while you are free to do whatever you want, I think doing future parts of the assignment will be easier if the code is structured this way) -
Think about what happens when one is comparing images of different sizes -
To make sure similar images have similar histograms regardless of image size, it is good to normalise frequencies by dividing each frequency count by the total number of pixel in the image.
In: Computer Science
How much heat (in kj) is needed to convert 866g of ice at -15*C to steam at 146*C? (Note: The specific heat of ice is 2.03J/g*C and the specific heat of steam is 1.99J/g*C. Delta fus for H20 is 6.01 kj/mol and Hvap is 40.79kj/mol)
In: Chemistry
As everybody knows that Black objects are black because almost all the light that falls on them is absorbed into the material. Little or no light is reflected back toward our eyes, therefore we see black.
It is also known that, since black objects absorbs all the light they ultimately become heated-up..!
If we see the snow in visible light, It appears to be White. But in the Infrared, it appears to be black. Does that mean that the Snow will feel warm in Infrared lights?
In: Physics
Describe two real life companies that you believe has a "High Fixed Cost Structure" and one that you believe has a "Low Fixed Cost Structure". Explain why you came to this conclusion. Then describe what would happen to your companies' net income if
a) in one year they were able to double their sales
b) in one year their sales would drop by 50%.
In: Accounting
Select/identify 20 programming languages
1)Draw a graph, a chart or a table that shows the
history/timeline of the development of the chosen 20
programming languages over years.
2)Identify the domain (area) that each one of the 20 programming
languages is used in. The well known
programming domains are:
a. Scientific Applications
b. Business Applications
c. Artificial Intelligence
d. Systems Programming
e. Web Software
In: Computer Science
Calculate the pH during the titration of 25.00 mL of 0.1000 M LiOH(aq) with 0.1000 M HI(aq) after 24.2 mL of the acid have been added. Explain.
In: Chemistry
In: Finance
|
Goods & Services |
Price 2014 |
Quantity 2015 |
Price 2015 |
Quantity 2015 |
|
Food |
$10 |
10,000 |
$8 |
12,000 |
|
Clothing |
$60 |
4,000 |
$40 |
5,000 |
|
Health Care |
$2,500 |
500 |
$4,000 |
600 |
In: Economics
Consider a GaAs p-n junction diode. The p-type acceptor is Zn, with a dopant concentration of 2 x 10^17 cm^-3 and the n-tpye donor is Si, with a dopant concentration of 5 x 10^16 cm^-3. Working at temp= 300 K.
a) Calculate the Fermi Level in the p-type material. Assume that the hole density is equal to the density of the p-dopant atoms.
b) Performing the same calculation for the n-type material gives a fermi level of 1.363 eV. What is the zero-bias built- in potential at the junction?
c) Calculate the width of the depletion zone for this case
In: Physics