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
Dimas [21]
3 years ago
10

Objects of the BankAccount class require a name (string) and a social security number (string) be specified (in that order)upon

creation. Declare two strings corresponding to a name and a social security number and read values into them from standard input (in that order). Use these values to define an object of type BankAccount named newAccount.
Computers and Technology
1 answer:
Maksim231197 [3]3 years ago
4 0

Answer:

import java.util.Scanner;

class BankAccountTest {

       public static void main(String[] args) {

           String name;

           String ssn;

           Scanner in = new Scanner(System.in);

// Receive User input

           System.out.println("Enter Your Name");

           name = in.nextLine();

           System.out.println("Enter Your Social Security Number");

           ssn = in.nextLine();

//Creating an object class BankAccount

           BankAccount newAccount = new BankAccount(name,ssn);

         

       }

   }

Explanation:

Using Java Programming Language

Use Scanner class to read values for name and social security numbers and store in the respective varibles

Make an object of the class BankAccount and supply to values to constructor call

Assume that the class BankAccount exists with the member feilds for name and ssn as below:

<em> public class BankAccount{</em>

<em>   //Class member variables</em>

<em>    private String name;</em>

<em>    private String ssn;</em>

<em>//Constructor</em>

<em>     public BankAccount(String name, String ssn) {</em>

<em>         this.name = name;</em>

<em>         this.ssn = ssn;</em>

<em>     }</em>

<em> }</em>

You might be interested in
Pleaseee helpppppppppp
zloy xaker [14]

Answer:

EXAMPLE -

Create a variable and assign your age

var myage = 32;

type your age:

console.log(my age) ;

Notice that we did not type the actual numeric age. We used the variable instead. There wouldn’t be any purpose of declaring a variable if we were going to type 32 directly.

This makes the scrip more portable which means that the result on the screen is independent of the code console.log(myAge); . If we need to change our age all we have to do is to assign another number to the variable myAge and the output will change automatically. That’s the purpose of a variable.

5 0
3 years ago
In one to two sentences, describe how you would insert a row in a spreadsheet.
Over [174]

Answer:

give points pls

Explanation:

7 0
4 years ago
Read 2 more answers
Select the correct answer from each drop-down menu.
Troyanec [42]

Answer:

... where drop down menu? from what i got, back up ur data daily

Explanation:

5 0
3 years ago
A small company is requesting a quote to refresh its wireless network. The company currently runs 60 autonomous APs and has plan
Annette [7]

Answer:

A small company is requesting a quote to refresh its wireless network. The company currently runs 60 autonomous APs and has plans to increase wireless density by 50% in the near future. The requirements state that the chosen solution should significantly decrease the management overhead of the current wireless network. The following should be recommended by the vendor in response to the quote request:

B. The use of autonomous APs with a wireless controller.

Explanation:

  • The option A  and D are not correct as the use of lightweight APs are not required here because they are already using autonomous APs which are fulfilling their needs.
  • The option B is correct as the use of autonomous APs with a wireless controller will allow them to decrease the management overhead as the wireless controller is used to manage the Access points in larger quantities.
  • The option C is incorrect as the load balancers are used to increase the capacity and reliability of applications as they distribute the traffic over number of servers so it is unable to decrease the management overhead.  
6 0
4 years ago
Which spreadsheet feature could the scholarship committee use to locate applicants who meet the criteria?
Radda [10]

Answer:

H8

Explanation:

4 0
3 years ago
Other questions:
  • Analyze the following code. Select one: A. The code is wrong. You should replace if (even) with if (even == true). B. The code d
    13·1 answer
  • You have an old photograph that you want to incorporate in a brochure for your antique business. To convert the photo into digit
    9·2 answers
  • Which of the following is NOT true about functions? They go below the main program in the source code file. They do a single tas
    10·1 answer
  • Who played a leading role in perfecting movable type for printing?
    15·1 answer
  • If an app needs to perform a derived-class-specific operation on a derived class object reference by a base class variable, the
    9·1 answer
  • What is the difference between print and nonprint sources?
    9·1 answer
  • Encapsulation is the process of “packaging” information prior to transmitting it from one location to another. true or false
    14·1 answer
  • In open addressing with linear probing we must consider how to encode
    13·1 answer
  • Encapsulation is a form of information hiding and an important characteristic of object-oriented programming. When a programmer
    6·1 answer
  • Can someone help on number 8? Plz
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!