1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Leviafan [203]
3 years ago
11

Develop a Python program. Define a class in Python and use it to create an object and display its components. Define a Student c

lass with the following components (attributes):  Name  Student number  Number of courses current semester
Computers and Technology
1 answer:
AlexFokin [52]3 years ago
8 0

Answer:

  1. class Student:
  2.    def __init__(self, Name, Student_Num, NumCourse):
  3.        self.Name = Name  
  4.        self.Student_Num = Student_Num  
  5.        self.NumCourse = NumCourse  
  6. s1 = Student("Kelly", 12345, 4)
  7. print(s1.Name)
  8. print(s1.Student_Num)
  9. print(s1.NumCourse)

Explanation:

Firstly, use the keyword "class" to create a Student class.

Next, create a class constructor (__init__) that takes input for student name, student number and number of course (Line 2) and assign the input to the three class attributes (Line 3-5). All the three class attributes are preceded with keyword self.

Next, create a student object (Line 7) and at last print all the attributes (Line 8-10).

You might be interested in
Surprisingly, many of us may be unknowing victims of botnets. Because of the rising sophistication of botnet schemes, your compu
Virty [35]

Answer:

a. Simple rules

1. Upgrade your operating system

2. Upgrade your softwares regularly

3. Upgrade your browser when new additions are available

4. Change your password very often

b. Suspensious signs

1. The operating system and programs take a longer while to start up.

2. It shows lack of storage space despite having space

3. The PC crashes regularly

4. If the sent mails are received as spam

5. The hard disk is working excessively while no programs are currently running

C. All the part of a security incident should be logged.

Explanation:

a. Simple rules

1. Upgrade your operating system

2. Upgrade your softwares regularly

3. Upgrade your browser when new additions are available

4. Change your password very often

b. Suspensious signs

1. The operating system and programs take a longer while to start up.

2. It shows lack of storage space despite having space

3. The PC crashes regularly

4. If the sent mails are received as spam

5. The hard disk is working excessively while no programs are currently running

Explanation:

C. All the part of a security incident should be logged.

7 0
2 years ago
Graphic design has as its goal the communication of some __________ message to a group of people.
Aleks [24]
Graphic design has as its goal the communication of some specific message to a group of people.

Specific is your answer.
3 0
3 years ago
Which statement is true?
Klio2033 [76]

Answer:

You need to import the deque methods in order to use a deque.

Explanation:

the correct option is B

You need to import the deque methods in order to use a deque.

Please mark me as brainliest

5 0
3 years ago
Read 2 more answers
Which of these is NOT an advantage of the impact of computer careers.
nikdorinn [45]
I believe the answer could be the first choice. I'm not quite sure, though
4 0
3 years ago
Read 2 more answers
7.3 A hydraulic lift has a mechanical advantage of 6. If the load weighs 780 N, calculate
Zielflug [23.3K]

Answer:

Effort = 120 Newton

Explanation:

Given the following data;

Mechanical advantage = 6

Load = 780 N

To find the effort required to lift the weight;

Mechanical advantage can be defined as the ratio of the load (weight) lifted by a simple machine to the effort (force) applied.

Mathematically, the mechanical advantage is given by the formula;

M.A = \frac {Load}{Effort}

Making effort the subject of formula;

Effort = \frac {Load}{M.A}

Substituting into the formula, we have;

Effort = \frac {720}{6}

Effort = 120 Newton.

3 0
3 years ago
Other questions:
  • What does the system software do
    6·1 answer
  • The following algorithm should output the t times table in the format:
    6·1 answer
  • True or False?
    7·1 answer
  • PREDATION AND EVOLUTION
    12·1 answer
  • Explain In your own words what a motherboard is and it’s functions?
    10·2 answers
  • Package Newton’s method for approximating square roots (Case Study: Approximating Square Roots) in a function named newton. This
    7·1 answer
  • How is a UDP socket fully identified? What about a TCP socket? What is the difference between the full identification of both so
    9·1 answer
  • PLS HELP SOON
    15·1 answer
  • What are the inputs that the model uses to make decisions?
    7·1 answer
  • Bluetooth is the popular name for the 802. 15 wireless networking standard, which is useful for creating small __________.
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!