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
Talja [164]
3 years ago
13

Design and implement a set of classes that define various types of electronics equipment (computers, cell phones, pagers, digita

l cameras, etc.). Include data values that describe various attributes of the electronics, such as the weight, cost, power usage, and the names of the manufacturers. Include methods that are named appropriately for each class and that print an appropriate message. Create a main driver class to instantiate and exercise several of the classes github
Computers and Technology
1 answer:
nikitadnepr [17]3 years ago
4 0

Answer:

class Electronics

{

String Name;

double weight;

double cost;

double power;

String brand_name;

public Electronics(String Nm, double wei,double rate, double pow,String brand)

{

Name=Nm;

weight=wei;

cost=rate;

power=pow;

brand_name=brand;

}

public void printDetails()

{

System.out.println("Item : "+Name);

System.out.println("Cost: $"+cost);

System.out.println("Power consumption :"+power+" watts per month");

System.out.println("weight: "+weight);

System.out.println("Manufacture :"+brand_name);

}

}

public class ElectonicsTest

{

public static void main(String[] args)

{

//instantiating objects of class electronics

Electronics item1=

new Electronics("Cell Phone",40.30,560.5,20,"Nokia");

item1. printDetails();

}

}

Explanation:

You might be interested in
A researcher wants to do a web-based survey of college students to collect information about their sexual behavior and drug use.
finlep [7]

The answer is already given at the end of the question; solely by the magnitude or severity of expected harm

When assessing risks of harm associated with participation in a research study, the probability of harm and the risk of the severity of harm are two distinctive elements of risk that must be considered. In probability of harm, the fact that not all possible harms are equally probable should be considered. How these two elements occur is a crucial factor in determining the level of risk of harm in a study. Given the sensitivity of the information in the case scenario above, the probability that an individual subject could be identified is low while the magnitude of the possible risk of harm is high.


5 0
4 years ago
Read 2 more answers
Write a recursive function, displayFiles, that expects a pathname as an argument. The path name can be either the name of a file
timama [110]

Answer:

Here is the Python function:

import os   #module used to interact with operating system

def displayFiles(pathname):  #recursive function that takes a pathname as argument

  if (os.path.isdir(pathname)):  #checks if specified path (argument) is an existing directory

      for content in os.listdir(pathname):  #gets the list of all files and directories in the directory and iterates through the items of this list of directory

          contents = os.path.join(pathname, content)  #joins contents of path

          displayFiles(contents)  #calls function recursively

  else:  #if pathname refers to a file

      filename=pathname  #sets filename to pathname

      file = os.path.basename(filename)  #gets base name in specified path

      print("File Name: ", file) #displays the name of file

      with open(filename, "r") as contents:  #opens file in read mode

          print("Content:")  #prints Content:

          for lines in contents:  #iterates through the contents of file

              print(lines)   #displays the contents of file

Explanation:

The recursive function  displayFiles contains a single argument  pathname which can either be a pathname or a filename  . If the given argument is pathname for directory  , then the directory is opened and os.listdir returns a list containing the names of the entries in the directory given by pathname and append these contents in the list. Then this function is called recursively to print each file name and this function is applied to each name in the directory. However if the pathname refers to a file then the pathname is set to filename , the file is opened in read mode and the contents of the file are displayed.

8 0
4 years ago
Which digital cellular standard is used widely throughout the world except the united states?
Art [367]

Global System for Mobility (GSM) is a digital cellular standard that is extensively adopted outside of the United States.

<h3>What characteristics does a digital cellular system have?</h3>
  • Any cellular phone system that utilizes digital is a digital cellular system (e.g. TDMA, GSM, CDMA).
  • Synonyms. Increased capacity and security are two benefits of digital cellular technologies over analog cellular networks.
  • More channels in the same analog cellular bandwidth are available with technology options like TDMA and CDMA, along with encrypted voice and data.
  • Caller ID, call forwarding, and three-way calling are among the functions available on digital cellular devices.
  • A large number of the handsets also include integrated liquid crystal displays for paging, long battery lives, and short message services.

Hence the correct answer is  A) GSM

The complete question is:

Which digital cellular standard is used widely throughout the world except the United States?

1. A) GSM

2. B) CDMA

3. C) WLAN

4. D) LTD

5. E) 4G

To learn more about digital cellular, refer to:

brainly.com/question/26307469

#SPJ4

8 0
2 years ago
Which of the following is said to occur when people receive more information than they can effectively​ process? A. Disinformati
egoroff_w [7]

Answer:

E. Information overload

Explanation:

Based on the information provided within the question it can be said that the term that is being described in this scenario is called Information Overload. This term refers to the difficulty that an individual may begin to experience in understanding and decision making after too much information about that issue has already been presented to them. Thus exceeding the quantity of daily information that the individual can handle (information overload).

6 0
3 years ago
Select the correct answer.
kotegsom [21]

For string the address means a group of words that is a group of characters and the group of characters is called as string.

a string can store any number of characters including space also and for storing address we need such data structures so the answer of this question is Strings.

Option B.Strings

3 0
4 years ago
Other questions:
  • __________________ fonts use binary code to define each pixel of the letter to be displayed.
    8·1 answer
  • What is the maximum number of columns in a spreadsheet that you can sort in one instance in software like OpenOffice Calc?
    7·2 answers
  • ​When converting plain text to hexadecimal for use with ProDiscover, you need to place ____________ between each character's hex
    6·1 answer
  • Someone once observed that "the difference between roles and groups is that a user can shift into and out of roles, whereas that
    13·1 answer
  • the id selector uses the id attribute of an html element to select a specific element give Example ?​
    11·1 answer
  • Animation timing is does not affect the
    10·1 answer
  • Does any body know how to bypass easy anti cheat on crossout
    7·1 answer
  • A system of classifying and organizing online content into categories by the use of user-generated metadata such as keywords is
    8·1 answer
  • Can you move it like this? I can shake it like that
    6·1 answer
  • The formula in cell C9 is B9*F10. On copying this formula to cell Z9, what will be the formula​
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!