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
lesya [120]
4 years ago
11

Define a class, addresstype, that can store a street address, city, state, and zip code. use the appropriate functions to print

and store the address. also, use constructors to automatically initialize the member variables
Computers and Technology
1 answer:
xxTIMURxx [149]4 years ago
4 0

We will use Python for this task. 
 class addrestype(object): 
 # Constructor to initialize member variables
 def __init__(self, addr, city, state, zip):
  self.address = addr
  self.city = city
  self.state = state
  self.zip = zip 
 # Function to print the address (overrides behavior of builtin "print")
 def __str__(self):  return self.address + ", " + self.city + ", " + self.state + ", " + str(self.zip)

You might be interested in
What's the benefit of using the Table AutoFormat tool?
Nina [5.8K]
One of the benefits, when a user is utilising the Table AutoFormat tool in any word processing application, is that editing tables would now be a lot easier without doing it step-by-step. In addition, the Table AutoFormat tool can be located at the Format ribbon in the Microsoft Word application.
3 0
3 years ago
Examples of hacking languages​
Rufina [12.5K]

Answer:

SQL

C

JavaScript

PHP

C++

Java

Ruby

Explanation:

3 0
3 years ago
___ is code that runs when a specific event happens.
Slav-nsk [51]
A callback function is code that's called, or run, when a specific event such as a click of the mouse, happens.Callback is another name for a callback function. Thank you for posting your question here at brainly. I hope the answer will help you. Feel free to ask more questions.
6 0
3 years ago
How to get fast frontend development online job as a beginner?​
mezya [45]

Answer:

hmmm well what is your magager?? every job will ask you what you can do.

3 0
3 years ago
Why might you need to convert a file to another file type
Alex17521 [72]
This depends on what program you're using. Some programs can only read certain files exclusive to that program, such as .psd files can usually only be read in Photoshop or other adobe programs. Many fields of work (Journalism, the Arts, Design, etc.) ask for .psd files to be converted to either .png, .jpg, or .tiff so that it can be seen on many other platforms.

For images especially, files are more compatible either on a program or printed. for example, .png files are good for storing color data from computer to computer, but if you print a .png file, the quality is poor. hence it's recommended to save files you want to print for designs as .jpeg, because .jpeg can more easily be printed and will then be presented at a high quality.

Sometimes color quality changes depending on CMYK as well but that's a whole other ball of wax.
8 0
3 years ago
Other questions:
  • Describe the three criteria you should use to determine if an online media source should be included in your paper or presentati
    12·2 answers
  • Retype the statements, correcting the syntax errors.
    8·1 answer
  • Why is redundancy of data undersirable?
    7·2 answers
  • Write a Java program that prompts the user for an int n. You can assume that 1 ≤ n ≤ 9. Your program should use embedded for loo
    5·1 answer
  • In many DBMSs where no strict separation of levels is maintained, this one language is used by the DBA and database designers to
    13·1 answer
  • Why are GUI operating system more popular than CUI operating system these days?​
    15·1 answer
  • When two well-informed people have different perspectives on a problem, it is often because they are focusing on a different app
    12·1 answer
  • For risk monitoring, what are some techniques or tools you can implement in each of the seven domains of a typical IT infrastruc
    7·1 answer
  • 1111111111111111111111111111
    5·1 answer
  • What is software??????​??????????????????
    7·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!