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
Dahasolnce [82]
3 years ago
7

Create a class to represent light bulbs

Computers and Technology
1 answer:
Leya [2.2K]3 years ago
6 0

Answer:

umm

Explanation:

You might be interested in
If you inadvertently delete a file, you may be able to retrieve it from the A. Drop Box. B. System Restore. C. Restore File. D.
Natalka [10]
D- Recycle Bin is the answer
6 0
3 years ago
What is a header and/or a footer? The bolded subtitle for each section or the footnote on any section Text inserted into the top
USPshnik [31]

Answer:

Option B: Text inserted into the top and bottom margins.

is the correct answer.

Explanation:

Header and footer can further be defined as:

  • Data inserted in the top and bottom margin of the page.
  • This data can be the one which you want to display on each page of the document.
  • Header and footer are the optional data.
  • We can add, document name, Author name, page number etc as header and footer.
  • In order to add header and footer, go to the Insert tab.
  • Locate header/ footer group under this tab.
  • All the settings are available and can be modified easily.

i hope it will help you!

4 0
4 years ago
The Account class contains a definition for a simple bank account class with methods to withdraw, deposit, get the balance and a
melamori03 [73]

Answer:

I've updated the Account class as per the instructions. The instructions mention "the constructor for this class creates a random account number" although I didn't find where that was. As a result, I created a simple method to generates the account number (located at the bottom of the class). Be sure you understand the changes (highlighted in yellow) and feel free to ask follow-up questions:

Explanation:

//*******************************************************

// Account.java

//

// A bank account class with methods to deposit to, withdraw from,

// change the name on, and get a String representation

// of the account.

//*******************************************************

import java.util.Random;   // Used for Random # generator

public class Account

{

      private double balance;

  private String name;

     private long acctNum;

      //----------------------------------------------

 //Constructor -- initializes balance, owner, and account number

  //----------------------------------------------

 public Account(double initBal, String owner, long number)

{

        balance = initBal;

               name = owner;

            acctNum = number;

}

// !!!!!! New Constructor !!!!!!

public Account(double initBal, String owner)

     {

        balance = initBal;

               name = owner;

            acctNum = generateAccountNumber();

       }

  // !!!!!! New Constructor !!!!!!

 public Account(String owner)

     {

        balance = 0;

             name = owner;

            acctNum = generateAccountNumber();

       }

   //----------------------------------------------

 // Checks to see if balance is sufficient for withdrawal.

// If so, decrements balance by amount; if not, prints message.

  //----------------------------------------------

 public void withdraw(double amount)

      {

        if (balance >= amount)

                balance -= amount;

               else

                     System.out.println("Insufficient funds");

}

 // !!!!!! New withdraw() method !!!!!!

   public void withdraw(double amount, double fee)

  {

        double amountWithFee = amount + fee;

               if (balance >= amountWithFee)

                 balance -= amountWithFee;

        else

                     System.out.println("Insufficient funds");

}

   //----------------------------------------------

 // Adds deposit amount to balance.

       //----------------------------------------------

 public void deposit(double amount)

       {

        balance += amount;

       }

  //----------------------------------------------

 // Returns balance.

      //----------------------------------------------

 public double getBalance()

       {

        return balance;

  }

    //----------------------------------------------

 // Returns a string containing the name, account number, and balance.

    //----------------------------------------------

 public String toString()

 {

        return "Name:" + name +

          "\nAccount Number: " + acctNum +

         "\nBalance: " + balance;

 }

 // !!!! NEW PRIVATE HELPER METHOD TO GENERATE ACCOUNT NUMBERS !!!!!

//-------------------------------------------------------

// Returns a random account number between 10000 - 99999

 //--------------------------------------------------------

       private long generateAccountNumber()

     {

        Random r = new Random();        // Seed the random number genertor with the system time

         return 10000 + r.nextInt(89999);        // .nextInt(89999) will return a value between 0 and 89999)

      }

}

8 0
4 years ago
Which variable captures the fact that a person is spontaneous or flexible? A. senses B. judgment C. perceptiveness D. feeling E.
Luba_88 [7]

C. Perceptiveness

The definition for Perceptiveness is: good at understanding things or figuring things out


6 0
3 years ago
Read 2 more answers
What EFC number will enable a student to receive the full amount of a Pell<br> Grant?
Eddi Din [679]

Answer:

I'm pretty sure to get the absolute maximum amount the EFC has to be 0 or really close to it. The EFC, or Expected Family Contribution, is mainly determined by your family's income. If your family has multiple students who will be enrolled in college, the number may be lower. It's not really about what number a student "should" have though, because the only way for you to lower it yourself is to lie, and you really don't want to do that-if you are found to have lied on your FAFSA there can be some serious legal consequences.

5 0
3 years ago
Other questions:
  • Edhesive 3.4 question 2
    11·2 answers
  • Which NSX feature would enhance their security so that this doesn’t happen again?
    15·1 answer
  • 3. The invention of the transistor was important to the development of computers because it
    5·1 answer
  • 1. cybersquatting refers to the tampering of existing web sites and selling unrelated products (true or false)
    8·1 answer
  • Write an application that inputs three numbers (integer) from a user. (10 pts) UPLOAD Numbers.java a. display user inputs b. det
    10·1 answer
  • SOMETHING WRONG WHAT WRONG!!!!!!!
    15·2 answers
  • There are three main components to economic growth. Which of the following is NOT a component of economic growth?
    7·1 answer
  • Items that represent features of smartphones apps
    12·1 answer
  • Which of the following describes a characteristic of organic light-emitting diodes (OLEDs) used in clothing?
    6·2 answers
  • Although plants and ainamals are both living things___
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!