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
Human centered technology often recommends a0 to computer designers and manufacturers, telling them how to make systems and the
IceJOKER [234]

Human centered technology often recommends best practices to computer designers and manufacturers, ...............

Human-Computer Interaction is a study that particularly focuses more on the design of computer technology and the interaction between humans and computers. Since the 1980s when HCI surfaced, it has become a crucial tool in popularizing the idea that the interaction between a user and a computer should resemble a human-to-human, open-ended dialogue. When HCI is done well, a human-centered approach powers the creation of products that resonates more deeply with a certain audience. This will ultimately drive engagement and growth.

6 0
3 years ago
Read 2 more answers
At what depth does an employer need to use a protection system to ensure the safety of workers in a trench or excavation?
nevsk [136]
Trench 4 foot or deeper and must be located 25 foot within eachother
3 0
3 years ago
Read 2 more answers
Discuss the importance of top management commitment and the development of standards for successful project management. Provide
sasho [114]

Answer:

Significance of top administration responsibility: Top administration duty assumes an indispensable job in the development of any association. The duties of top administration decied the future objective of the association. So we can say that the development of association is straightforwardly proportional to the duties set by the top administration.

The viable and effective headings and the duties bargains the association to achive the arranged objectives and the objectives.

Improvement of Standards: Development of norms are likewise significant in any association. The quality check of the association or the review is being finished dealing with the these measures. So we can say that the nature of association is estimated on the bases of norms set. That is the reason its essential to set the gauges

initially, characterize the measures and flow it inside the association. Since it by implication sway the nature of any association.

For example if we are developing any project that its important that we should be clear about the expectation and commitments set by the top management regarding the

project and it should be developed on the standards set by the organization. Because without these two fators it may happen that our project fails in real

scenario

1. Difficulties in regards to asset the board.

2. Difficulties with respect to cost and budgetary needs

3. Difficulties in regards to innovations and skiils

4. Difficulties in regards to convenient conveyance of the task

Explanation:

4 0
3 years ago
What is the value of the variable phones after the execution of the following code? phones = {'John': '5555555', 'Julie' : '7777
uysha [10]

Answer:

phones = {'John': '1234567', 'Julie' : '7777777'}

Explanation:

In the code given in the question phones dictionary contains contains two keys John and Julie and have the values '5555555' and '7777777' respectively. Now in the code the key John in the dictionary phones is assigned the value '1234567' .So the value corresponding to the key John becomes '1234567'.

3 0
3 years ago
(Count positive and negative numbers and compute the average of numbers) Write a program that reads an unspecified number of int
Papessa [141]

Answer:

Explanation:

Sorry it  is in Java, though you can covert it using converter

public class Exercise {

public static void main(String[] args) {

 Scanner input = new Scanner(System.in);

 int positives = 0;  // Count the number of positive numbers

 int negatives = 0;  // Count the number of negative numbers

 int count = 0;   // Count all numbers

 double total = 0;  // Accumulate a totol

 // Promopt the user to enter an integer or 0 to exit

 System.out.print("Enter an integer, the input ends if it is 0: ");

 int number = input.nextInt();

 if (number == 0) { // Test for sentinel value

  System.out.println("No numbers are entered except 0");

  System.exit(1);

 }

 while (number != 0) {// Test for sentinel value

  if (number > 0)

   positives++; // Increase positives

  else

   negatives++; // Increase negatives

  total += number; // Accumulate total

  count++;    // Increase the count

  number = input.nextInt();

 }

 // Calculate the average

 double average = total / count;

 // Display results

 System.out.println(

  "The number of positive is " + positives +

  "\nThe number of negatives is " + negatives +

  "\nThe total is total " + total +

  "\nThe average is " + average);

}

}

7 0
3 years ago
Other questions:
  • In this problem we consider sending real-time voice from Host A to Host B over a packet-switched network (VoIP). Host A converts
    12·1 answer
  • Whenever Jim starts his laptop, he sees some commands and numbers appearing on his screen. These instructions are being processe
    12·2 answers
  • Choose all of the items that represent functions of the operating system kernel.
    15·2 answers
  • 1) Why is angle of view important? What are some of the ways that you can do this?
    6·1 answer
  • When security issues are a special concern, companies want to take extra steps to make sure that transmissions can’t be intercep
    7·1 answer
  • Careers in information technology deal with
    12·2 answers
  • Networking and telecommunications technologies, along with computer hardware, software, datamanagement technology, and the peopl
    11·1 answer
  • What is a word processing program? Give examples of word processing programs.
    10·1 answer
  • Add me on f0rtnite <br> (Tsarbacon)
    9·2 answers
  • Write a pseudocode that receives a positive number from the user, and then,
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!