GradePack

    • Home
    • Blog
Skip to content
bg
bg
bg
bg

GradePack

The following six questions are another example showing that…

The following six questions are another example showing that classes and objects are an essential part of many software applications. Assume that you found a job as a software engineer for a streaming service. You will be working with movies on a daily basis.

Read Details

You have an external file named students_data.txt with two c…

You have an external file named students_data.txt with two columns: name and major, like the following:  Alice,MISBob,FinanceCharlie,MarketingDan,MISEdward,Finance Please complete the code below so that your code can create an object for each student in the “MIS” major. Each blank is 3 pts.  class Student:     def __init__(self, name):         self.__name = nameclass MIS(Student): # Complete the __init__ for MIS subclass, ensuring it inherits from Student, and creating a new attribute “major” def __init__(self, name, major): # Call the __init__ of the superclass [q1] # Set the major attribute using the correct parameter, specifically for this subclass [q2] # Assume that the following main program is in the same script. def main(): students = open(‘students_data.txt’, ‘r’)    student_dict = {} for student in students: ### Explanation: The following code processes student by splitting the first and second element into name and major name, major = student.rstrip(‘\n’).split(‘,’) ### Complete the “if” condition so that this code creates objects only for MIS students [q3] #Create an object, named “stu”, for MIS student (based on the name and major in the current iteration). [q4] #Insert a key-value pair into student_dict, where the key is the name and the value is the stu object. [q5]main()

Read Details

Which of the following is NOT part of the definition of a “p…

Which of the following is NOT part of the definition of a “population?” 

Read Details

Which of the following is NOT a reason that natural selectio…

Which of the following is NOT a reason that natural selection cannot fashion perfect organisms?

Read Details

Individual organisms can evolve.

Individual organisms can evolve.

Read Details

Which of the following is NOT a condition for Hardy-Weinberg…

Which of the following is NOT a condition for Hardy-Weinberg Equilibrium?

Read Details

What is the raw material for evolutionary change?

What is the raw material for evolutionary change?

Read Details

A small manufacturing system produces parts for sea kayaks i…

A small manufacturing system produces parts for sea kayaks in La Jolla, San Diego. The parts arrive from an upstream Poisson process with an arrival rate of 1 part every 5 minutes. All the parts that enter the system must go through a station which houses 2 prefabrication machines. A part, though, only requires to be processed by 1 of the 2 machines during prefab. The prefab time is exponentially distributed with the same mean for each of 8 minutes. If all the machines at the prefab station are busy, then the part will wait for the next available machine. [HINT: The machines do NOT break down and thus do not need to be repaired]. a. What is the probability that both machines are idle? Please round your answer to 3 decimal places (e.g. #.###). [PartA]  (4pts) b. What is the overall system utilization? [PartB] (2pts) c. What is the average number of parts waiting for prefab? [PartC] (2pts) d. A floor technician suggests that the system utilization rate should be lower (less than 30%) if the company wants to maintain the life of the machines and avoid machine failures. Do you think adding a third machine with the same processing rate will achieve that goal? Please show the new utilization rate to support your answer. Please express your answer to 3 decimal places and your asnwer (e.g., #.###, yes or #.###, no) and explain why on your scratch paper. [PartD] (2pts)

Read Details

TRUE or FALSE: Implicit Enumeration is a procedure for estim…

TRUE or FALSE: Implicit Enumeration is a procedure for estimating the variance of throughput time in queuing networks.

Read Details

TRUE or FALSE: Implicit Enumeration is a method for solving…

TRUE or FALSE: Implicit Enumeration is a method for solving problems by asking experts for their best estimate of what to do.

Read Details

Posts pagination

Newer posts 1 … 32,389 32,390 32,391 32,392 32,393 … 70,528 Older posts

GradePack

  • Privacy Policy
  • Terms of Service
Top