Why wont this work? I dont understand class Book: def __init__(self,_title,_author,_publisher,_copyright): self._title = _title self._author = _author self._publisher = _publisher self._copyright = _copyright def title(self): return("Title: " + self._title) def author(self): return("Author:" + self._author)
Q: The several methods of file access are listed here. I'm wondering about the benefits and drawbacks…
A:
Q: Discuss a difficulty with concurrent processing in an operating system that you've encountered…
A: Operating System: Desktops, smartphones, tablets, computers, web servers, automobile network towers,…
Q: With an example, explain the difference between verification and validation. Describe the situation…
A: What is verification? The process of testing software to see if the products in a certain…
Q: What is a computer, and what are the components of a computer system, as well as an explanation of…
A: A computer is a sort of machine that has the ability to store and process data. A binary system is…
Q: various operating systems store disk directories in separate tracks?
A: Step 1Introduction: Disk directories are used to map logical file data to a physical sector location…
Q: To what extent do time-sharing and distributed operating systems differ in terms of their features?
A: What distinguishes time-sharing from distributed operating systems?Answer: Time-Sharing OS…
Q: pical operating system's kernel compone
A: Introduction: Below a typical operating system's kernel components in a single sentence
Q: example of a digraph in which the lightest edge does not belong to any MSA ro
A:
Q: Compare and contrast the file-oriented versus database-oriented approaches. Describe the key…
A: File System DBMS Structure A file system is software that manages and organizes files into a…
Q: When it comes to operating systems, how are time-sharing and distributed systems different?
A: Answer: =>An Operating system is a software which acts as an interface between a computer…
Q: What is software quality assurance and how does it work?
A: Software quality assurance(SQA): IT quality assurance is a technique for ensuring that software…
Q: ween Linux and Windows operating syst
A: Introduction: Below the Differences between Linux and Windows operating systems?
Q: Brief information about matlab software
A:
Q: Please Explain this code Step by Step (How Code Works). #include #include #include char…
A: Program is given and need to explain how it is work.
Q: Draw the state diagram of the DFA that is equivalent to the NFA shown below. 2 3 0,1
A: First step:- Construct the transition table Second step:- Find δ transition for the states in NFA.…
Q: How complicated is randomized rapid sort in terms of auxiliary space and average time complexity?
A: Given: To implement merge sort, use O(1) auxiliary space. Explanation: To merge two sorted arrays,…
Q: An organization intends to have a large quantity of data regarding its information system on hand.…
A: In this question we have to explain the benefits of putting the information in the databases rather…
Q: SING C PROGRAM (use scanf and printf). Write a program that accepts a positive integer n. The…
A: Input : n Output : List of n odd numbers Sum of these numbers
Q: Compute for the leftmost and rightmost derivation of the following produced string. Given the…
A: We are given a granmar and we are going to find out leftmost and rightmost derivation for the given…
Q: In today's operating system kernel design debate, what are the two main schools of thought?
A: Kernel is a computer program which executes by using the support of the operating system. It…
Q: somman used to list contents of directories?
A: Is command is used to list contents of directories Hence option (4) is true. Use the ls command to…
Q: What precisely do the phrases "hardware" and "software" relate to is not immediately clear.
A: Any physical device or equipment used in or with a computer system.
Q: What impact has technology had on our educational experience?
A: What impact has technology had on our educational experience?
Q: What is the difference between a virtual machine and a docker container?"
A: According to the question the virtual machine is the mirror of the operating system it only use in…
Q: In a three-tier design, the intermediate layer between the database and the client servers is…
A: In a three-tier design, the intermediate layer between the database and the client servers is…
Q: When designing a microkernel, what is the operating system's microkernel philosophy? If so, does it…
A: Kernel Kernel is the core part of an operating system that manages system resources. It also acts as…
Q: Components of the field of computer science
A: The computer contains data and this is divided into different components called as fields. This…
Q: A machine that has specialized software installed in order to distribute web pages over www is…
A: The WWW is an acronym for the World Wide Web. The web pages are displayed in the web browser and are…
Q: (1) Page number P =? (2) Offset w =? (3) Page frame number = ? (4) Physical address = ? Put your…
A: Here page size is 512 words. Therefore page offset bits is log(512) =9 bits.
Q: What precisely do the phrases "hardware" and "software" relate to is not immediately clear.
A: Hardware Hardwar addresses the physical and unmistakable parts of the PC for example the parts that…
Q: What is the purpose of DML Language?
A: DML The main purpose of Data manipulation language(DML) is to manipulate the data in the database.…
Q: When it comes to creating a microkernel, what is the guiding principle that you follow as an OS…
A: Introduction: When the CPU is in kernel mode, it can only execute a single command. This is…
Q: Give a brief description for each kernel component and then list them.
A: Let us see the answer Introduction Process management, memory management, hardware device drivers,…
Q: Multiplication of 1112 by 1012 is A. 1100112 B. 1000112 C. 1111002 D. 0001012 E. None of the above
A: Multiplication of 1112 by 1012 is A. 1100112B. 1000112C. 1111002D. 0001012E. None of the above.
Q: Propose a problem p which belongs to the class-P. Design an polynomial time algorithm to reduce this…
A: The P in the P class stands for Polynomial Time. It is the collection of decision problems(problems…
Q: Why is it important to have a back-up plan? There are major differences between backing up your…
A: Importance of back-up plan: A back-up procedure, alongside a disaster recuperation plan, comprise…
Q: What is the difference between software quality assurance and software quality control? Describe the…
A: Software Quality: Software quality is described as a discipline of research and practise that…
Q: icrokernel ar
A: Microkernel OS is based on the thought of restricting the bit to simply deal with communication and…
Q: A machine that has specialized software installed in order to distribute web pages over www is…
A: A brief history of www: WWW stands for the World Wide Web. They run in the web browser using the…
Q: How can we prevent these rumors on social media and decide for them?? Please respond regarding IT…
A: How can we prevent these rumours on social media, and how can we decide whether or not to believe…
Q: When it comes to data storage, what are cloud backup solutions? Are there any websites that give out…
A: Cloud Backup: A service that backs up and saves data and programmes on a distant server. Companies…
Q: A machine that has specialized software installed in order to distribute web pages over www is…
A: The World Wide Web is abbreviated as WWW. The web pages are accessed over the internet and run in a…
Q: What impact has technology had on our educational experience?
A: Technology has made a impact on almost all fields and educational field is one of them with a huge…
Q: Has simulating climate change with computer programs been effective in helping us predict climate?…
A: Lets see the solution.
Q: One of the most important issues for the corporation today is cloud computing security; at least two…
A: We need to point out two things that businesses have to worry about when it comes to cloud computing…
Q: Are all problems in P solvable in a reasonable amount of time? Explain your answer.
A: The answer is given in the below step
Q: One statement summarising the kernel components of a typical operating system.
A: Summarize the kernel components of a typical operating system in a single word. An it's kernel is…
Q: When it comes to data storage, what are cloud backup solutions? Are there any websites that give out…
A: Cloud Backup: Cloud Backup is a service that backs up and saves data and apps on an organization's…
Q: what is java and what are some examples
A: Java is an object-oriented programming language.
Q: How complicated is randomized rapid sort in terms of auxiliary space and average time complexity?
A: Randomized rapid sort has an Auxiliary space complexity of O(log n), which is used to store the call…
Why wont this work? I dont understand
class Book:
def __init__(self,_title,_author,_publisher,_copyright):
self._title = _title
self._author = _author
self._publisher = _publisher
self._copyright = _copyright
def title(self):
return("Title: " + self._title)
def author(self):
return("Author:" + self._author)
def publisher(self):
return("Publisher:" + self._publisher)
def copyright(self):
return("Copyright:" + self._copyright)
b1 = Book("The stand","Stephen King","Pocket books","1996")
b1.title()
b1.author()
b1.publisher()
b1.copyright()
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images
- find and fix all the errors so the code can run #ifndef Student.h#define Student.h class CStudent{private:char Student_name[50];int Student_id;char Student_email_username[10];char Student_major[10];float Student_grades[5];float Student_score;char Student_email_password[10]; public:CStudent(); char *get_Student_name();int get_student_id();char *get_Student_email_username();char *get_Student_major();float *get_Student_grades();float get_Student_score();char *get_Student_email_password(); //set methodsvoid set_Student_name(char *name);void set_student_id(int id);void set_Student_email_username(char *username);void set_Student_major(char *major);void set_Student_grades(float *grades);void set_Student_score(float score);void set_Student_email_password(char *password); }; #endif #include "Student.h"#include <cstddef>…class User:def __init__(self, first_name, last_name, user_id, last_login, password):self.first_name = first_nameself.last_name = last_nameself.user_id = user_idself.last_login = last_loginself.password = passworddef describe_user(self):print(f"Accessing user {self.user_id}:")print(f"{self.first_name} {self.last_name} last logged in on {self.last_login}")def greet_user(self):print(f"Welcome to the jungle {self.first_name} {self.last_name}, you gonna die") Hard-code # hard-coded calls jim = User(first_name='Jim',last_name='Bob',user_id=1000,last_login='June 12, 1998',password='password123')jim.describe_user()jim.greet_user()joe = User('Joe','Bob',1001,'July 4, 2001','babygirl')joe.greet_user()joe.describe_user()joe.new_login(2, 3, 2025)joe.describe_user()joe.new_login(15, 3, 2025)joe.new_login(2, 35, 2025)joe.new_login(2, 3, -55)class Student: def __init__(self, id, fn, ln, dob, m='undefined'): self.id = id self.firstName = fn self.lastName = ln self.dateOfBirth = dob self.Major = m def set_id(self, newid): #This is known as setter self.id = newid def get_id(self): #This is known as a getter return self.id def set_fn(self, newfirstName): self.fn = newfirstName def get_fn(self): return self.fn def set_ln(self, newlastName): self.ln = newlastName def get_ln(self): return self.ln def set_dob(self, newdob): self.dob = newdob def get_dob(self): return self.dob def set_m(self, newMajor): self.m = newMajor def get_m(self): return self.m def print_student_info(self): print(f'{self.id} {self.firstName} {self.lastName} {self.dateOfBirth} {self.Major}')all_students = []id=100user_input = int(input("How many students: "))for x in range(user_input): firstName = input('Enter…
- class User:def __init__(self, first_name, last_name, user_id, last_login, password):self.first_name = first_nameself.last_name = last_nameself.user_id = user_idself.last_login = last_loginself.password = passworddef describe_user(self):print(f"Accessing user {self.user_id}:")print(f"{self.first_name} {self.last_name} last logged in on {self.last_login}")def greet_user(self):print(f"Welcome to the jungle {self.first_name} {self.last_name}, you gonna die")def new_login(self, month, day, year):if month < 1 or month > 12:print("That is not a valid month")returnif day < 1 or day > 31:print("That is not a valid day")returnif year < 0:print("That is not a valid year")returnmonths = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]month_name = months[month-1]self.last_login = f"{month_name} {day}, {year}" Hard-Code: # hard-coded callsjim =…class Student: def _init_(self, firstname, lastname, idnum): self.first = firstname self.last = lastname self.id = idnum self.courses = [] def add_course(self, course): ''' don't allow overloads or signing up for the same course twice if course not in self.courses and len(self.courses) = 4 What are all of the attributes of this class? last overload idnum add_course self first course firstname courses id clear_courses lastnameghment #2 The application should be extendable so that a new search criterion can be added, perhaps as a new class, without having to modify the user interface. For example, a client user can add a new criteria by writing a class and registering it with the system. On adding that class, the new criterion should appear as a new item within the combo box. Search Query Search criteria Search Results: Item1 Item2 Item3
- class Information: def __init__(self, name, address, age, phone_number): self.__name = name self.__address = address self.__age = age self.__phone_number = phone_number def main(): my_info = Information('John Doe','111 My Street', \ '555-555-1281')14.23 LAB: Dean's list Students make the Dean's list if their GPA is 3.5 or higher. Complete the Course class by implementing the get_deans_list() instance method, which returns a list of students with a GPA of 3.5 or higher. The file main.py contains: . The main function for testing the program. Class Course represents a course, which contains a list of student objects as a course roster. (Type your code in here.) • Class Student represents a classroom student, which has three attributes: first name, last name, and GPA. (Hint: get_gpa() returns a student's GPA.) Note: For testing purposes, different student values will be used. Ex. For the following students: Henry Nguyen 3.5 Brenda Stern 2.0 Lynda Robison 3.2 Sonya King 3.9 the output is: Dean's list: Henry Nguyen (GPA: 3.5) Sonya King (GPA: 3.9)Class AssignmentResult An object that represents the result of an assignment. __init__(self, id:int, assignment: Assignment, grade: float): """ This will contain the ID of the student, the assignment that the student worked on and the grade the student received on the assignment. :param id: The ID of the student that created this Assignment result :param assignment: The Assignment that the student worked on. :param grade: A number between 0-1 representing the numerical grade the student received """ get_id(self) -> int: """ Returns the ID of the student as specified in the constructor. :return: The student's ID """ get_grade(self) -> float: """ Returns the grade as specified in the constructor. :return: The grade the student received for this assignment """ get_assignment(self) -> Assignment: """ Returns the assignment as specified in the constructor. :return: The assignment that the student worked on to…
- Write a program that: • defines a class Song, with attributes title, artist. o include_init_0 method. o include str_() method to print the attributes of a song. o no need to include getters and setters • defines a main() function that: o creates two song-objects with different titles and artists. o prints the song objects on separate lines. • calls main() to start the program To write the program and test it, click the website link below. LockFocus on classes, objects, methods and good programming styleYour task is to create a BankAccount class. Class name BankAccount Attributes __balance float float __pin integer integer Methods __init_()get_pin()check_pin()deposit()withdraw()get_balance() The bank account will be protected by a 4-digit pin number (i.e. between 1000 and 9999). The pin should be generated randomly when the account object is created. The initial balance should be 0.get_pin()should return the pin.check_pin(pin) should check the argument against the saved pin and return True if it matches, False if it does not.deposit(amount) should receive the amount as the argument, add the amount to the account and return the new balance.withraw(amount) should check if the amount can be withdrawn (not more than is in the account), If so, remove the argument amount from the account and return the new balance if the transaction was successful. Return False if it was not.get_balance()…Lecturer Information: Super Class : lecturer Attributes : Lecturerid, LecturerName, Address, Qualification age, Gender , Methods : Read the lecturer details Display the Lecturer details Sub class : Subject_details Attributes : no__of_ students_course1, no__of_ students_course2, : no_of_ studenst_course3, no_of_ students_course4,Total_no_working hours Methods : Find the total number of students from all courses Get the total number of working hours Display the Lecturer details and Subject details. The following information must be included in your solution(program): Properties with proper data types Demonstration of OOP feature (Inheritance) Proper naming convention Proper comments in each program and within program Purpose of each code should be explained. Program Execution (output)