Computers and Technology

Creating the cellphone class wireless solutions, inc. is a business that sells cell phones and wireless service. you are a programmer in the company's it department, and your team is designing a program to manage all of the cell phones that are in inventory. you have been asked to design a class that represents a cell phone. the data that should be kept as attributes in the class are as follows 1. the name of the phone's manufacturer will be assigned to the manufact attribute 2. the phone's model number will be assigned to the model attribute 3. the phone's retail price will be assigned to the retail_price attribute the class will also have the following methods aninitmethod that accepts arguments for the manufacturer, model number, and retail price a set_manufact method that accepts an argument for the manufacturer. this method will allow us to change the value of the manufact attribute after the object has been created, if necessary a set_model method that accepts an argument for the model. this method will allow us to change the value of the model attribute after the object has been created, if necessary a set_retail_price method that accepts an argument for the retail price. this method will allow us to change the value of the retail _price attribute after the object has been created, if necessary a get_manufact method that returns the phone's manufacturen a get_model method that returns the phone's model number get retail price method that returns the phone's retail price a the cellphone class will be imported into several programs that your team is developing. to test the class, you write the code. this is a simple program that prompts the user for the phone's manufacturer, model number, and retail price. an instance of the cellphone class is created and the data is assigned to its attributes sample program output (with input shown in bold) enter the manufacturer: acme electronics enter enter the model number: m1000 enter enter the retail price: 199.99 enter here is the data that you entered: manufacturer: acme electronics model number m1000 retail price: $199.99

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 21:30, mariah10455
Write a fragment of code that reads in strings from standard input, until end-of-file and prints to standard output the largest value. you may assume there is at least one value. (cascading/streaming logic, basic string processing)
Answers: 3
image
Computers and Technology, 24.06.2019 02:30, talia43
Assume a class window with accessor method getwidth that accepts no parameters and returns an integer. assume further an array of 3 window elements named winarr, has been declared and initialized. write a sequence of statements that prints out the width of the widest window in the array.
Answers: 2
image
Computers and Technology, 24.06.2019 03:30, ilovewaffles70
Auniform resource locator (url) is a formatted string of text that web browsers, email applications, and other software programs use to identify a particular resource on the internet. true false
Answers: 2
image
Computers and Technology, 24.06.2019 10:00, noahmace
When writing a business letter, how many times can you use the same merge field in a document? once once, unless using the address block feature unlimited it will depend on the type of document you choose
Answers: 1
Do you know the correct answer?
Creating the cellphone class wireless solutions, inc. is a business that sells cell phones and wirel...

Questions in other subjects:

Konu
Mathematics, 09.02.2020 21:47
Konu
Mathematics, 09.02.2020 21:47