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
Vika [28.1K]
3 years ago
11

Write the definition of a class Phone containing: 1. A data member named model of type string. 2. A data member named partNumber

of type string. 3. A data member named retailPrice of type double 4. A void method to display the fields model, partNumber, and retailPrice on the standard output.
Computers and Technology
1 answer:
Nady [450]3 years ago
4 0

Answer:

class Phone(object):

   def __init__(self, model, partNumber, retailPrice):

       self.model = model

       self.part_number = partNumber

       self.retail_price = retailPrice

   def phone_specs(self):

       print( "Phone model: {}\nPart number: {}\nRetail price: {}".format( self.model, self.part_number, self.retail_price))

phone1 = Phone("Nokia", "asd234", 200.0)

phone1.phone_specs()

Explanation:

A class is a blueprint of a data structure used to create objects of the same data types and methods. The Phone class is an object that creates an instance of the phone1 object. The phone_specs method is used to display the details of the phone1 object.

You might be interested in
Before text can be formatted you must first
bixtya [17]
Dont count on the awnser just a guess but i think it has to be saved?
3 0
4 years ago
Read 2 more answers
In a sport like baseball, which of the following could be considered a “rule”?
ki77a [65]
The answer is all of the above since safety is a priority but when you swing the bat you have to make sure you use enough force.

Hope this helps mark me brainliest please
3 0
3 years ago
Ifdjgidfpojcjdizchnllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllsssssssssssssssssssssssssss
STatiana [176]

Answer:

HELLO :}

Explanation:

7 0
3 years ago
Read 2 more answers
Which of the following tabs on the Ribbon contains the command to add a Quick Part to a document? A Design B Insert C View D Hom
drek231 [11]

The tab on the Ribbon which contains the command to add a Quick Part to a document is: B. Insert.

Microsoft office can be defined as a processing software application (program) that is designed and developed by Microsoft Inc.

Basically, Microsoft office comprises three (3) main software applications and these are:

  • Microsoft Word.
  • Microsoft PowerPoint.
  • Microsoft Excel.

The Quick access toolbar is a small, customizable toolbar that is designed to contain a set of commands, which are completely independent of the particular tab appearing on the Ribbon that is being displayed to an end user.  

Generally, the command which is designed to add a Quick Part to a document is the Insert tab on the Ribbon.

Read more: brainly.com/question/19847875

5 0
3 years ago
When long labels are required, which of these commands can you use to improve readability of a worksheet? .
kykrilka [37]
Whilst all the options presented can help improve readability of a worksheet, the best answer is B. Sort and Filter.

When working with very long tables, the sort and filter functions allow table data to be better organised to improve readability. You can sort by a criteria or filter out all data except what you are looking for.

Merge & centre and wrap text relate to text formatting in the cells themselves, these are useful features in general but not essential. Conditional formatting is a useful tool to highlight certain types of data, such as to colour the cell based on its value. Again, it is not as powerful as sort/filter.
3 0
3 years ago
Read 2 more answers
Other questions:
  • If a simple pipelined processor is super-pipelined by a factor of 3 (the ALU takes 3 cycles instead of one for the smallest oper
    15·1 answer
  • Employers and recruiters rarely use the Internet to search for personal details about applicants.
    9·1 answer
  • What will be the values of ans, x, and y after the following statements are executed? int ans = 35, x = 50, y =50; if ( x >=
    7·2 answers
  • Which changes should be made to establish and maintain formal writing conventions? Select two options.
    10·1 answer
  • The function of network switch is to _____.
    5·1 answer
  • When using bits to represent fractions of a number, can you create all possible fractions? Why or why not?
    13·1 answer
  • Write an essay about yourself based on the dimensions of ones personality​
    9·1 answer
  • The programming interface for a legacy motor controller accepts commands as binary strings of variable lengths.
    15·1 answer
  • Can someone answer this for me will award brainliest lol
    11·2 answers
  • Your client Mr. Smith has requested a reservation at Eleven Madison Park this evening for a party of 2 at 6PM. Unfortunately, th
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!