answer.
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
Korvikt [17]
2 years ago
8

Two-dimensional array indexes are listed as

Computers and Technology
1 answer:
Luda [366]2 years ago
5 0

Answer:

rows and columns, or matrix

Explanation:

Two-dimensional 2D arrays are being indexed with the help of two subscripts. The first one is for the row and the second one if for the column. And each of the elements of the 2D array must be of the one kind like they all can be an object type or they all can be of primitive type.

Like:

int A[3][3];

The above is the 2-dimensional array in C++, and elements are of type int, which is a primitive data type.

You might be interested in
What kind of device can monitor a connection at the demarc but cannot interpret data?
dezoksy [38]

Answer: Smart jack

Explanation:

Smart jack can monitor a connection at the demarc but it cannot interpret the data as, smart jack is the special network which are used between the interface of the internal network and the service network provider. Basically, this device are used for the conversion of protocol and the codes. Smart jack also serves the demarcation point(demarc) in the inside and outside wiring and it does not used for interpret the data.

3 0
2 years ago
Which of the following facts determines how often a nonroot bridge or switch sends an 802.1D STP Hello BPDU message?
irinina [24]

Answer:

b. The Hello timer as configured on the root switch.

Explanation:

There are differrent timers in a switch. The root switch is the only forwarding switch in a network, while non root switches blocks traffic to  prevent looping of BPDUs in the network. Since the root switch is the only forwarding switch, all timing configuration comes from or is based on the configuration in the root.

The hello timer is no exception as the nonroot switch only sends 802.1D DTP hello BPDU messages forwarded to it by the root switch and its frequency depends on the root switch hello timer.

8 0
2 years ago
Annabeth has been using a public cloud to store and access her documents. Which drawback of a public cloud should she be aware o
Flura [38]

<u><em>i just to the test on Plato and it said that A. accessibility is wrong  the correct answer is d  security #homeschoolrocks</em></u>

5 0
1 year ago
In the file BankAccount.java, build a class called BankAccount that manages checking and savings accounts. The class has three p
kaheart [24]

Answer:

Explanation:

The following code is written in Java and creates the BankAccount class with all of the requested methods, including the constructor, getter and setter methods, withdraw methods, and even the transferToSavings method. A preview can be seen in the attached image below.

class BankAccount {

   private String customerName;

   private double savingsBalance, checkingsBalance;

   public BankAccount(String newName, double amt1, double amt2) {

       this.customerName = newName;

       this.checkingsBalance = amt1;

       this.savingsBalance = amt2;

   }

   public String getCustomerName() {

       return customerName;

   }

   public void setCustomerName(String customerName) {

       this.customerName = customerName;

   }

   public double getSavingsBalance() {

       return savingsBalance;

   }

   public void setSavingsBalance(double savingsBalance) {

       this.savingsBalance = savingsBalance;

   }

   public double getCheckingsBalance() {

       return checkingsBalance;

   }

   public void setCheckingsBalance(double checkingsBalance) {

       this.checkingsBalance = checkingsBalance;

   }

   public void depositChecking(double amt) {

       if (amt > 0) {

           this.checkingsBalance += amt;

       }

   }

   public void depositSavings(double amt) {

       if (amt > 0) {

           this.savingsBalance += amt;

       }

   }

   public void withdrawChecking(double amt) {

       if (amt > 0) {

           this.checkingsBalance -= amt;

       }

   }

   public void withdrawSavings(double amt) {

       if (amt > 0) {

           this.savingsBalance -= amt;

       }

   }

   public void transferToSavings(double amt) {

       if (amt > 0 ) {

           this.checkingsBalance -= amt;

           this.savingsBalance += amt;

       }

   }

}

6 0
1 year ago
A bank in your town updates its customers’ accounts at the end of each month. The bank offers two types of accounts: savings and
Lerok [7]

Answer:

This is your corrected code and the output of each test example. I have also added comments with the provided code to make the code understandable. I have also changed itype variable to from int to String in order to print the account type (Savings or Checking) in output.

import java.util.*;

public class bank{  //class name

public static void main (String [] args)  //start of main function body

{int num,error=1; //declare variables

String itype=" "; //stores Checking or Savings account type

char type =0;  //type variable which is one of savings S or checking C

double min,cur =0,balance =0,rate=0;

//declare variables for minimum balance, current balance, interest rate

Scanner in=new Scanner(System.in);

System.out.println("Enter account number: ");  //prompts user to enter acc no

num=in.nextInt();  //reads input account number

while(error==1) {  

//asks user to enter account type C or S

System.out.println("Enter account type(s-savings or c-checking):");

type=in.next().charAt(0);  //reads the input character of account type

if(type=='c'||type=='C')  //if user inputs c or C

{itype= "Checking";  //set itype to Checking when user input c or C

error=0;  //set value of error to 0 means user entered valid type input

rate=3/100.; }  // Savings accounts receives  3% interest

else if(type=='s'||type=='S')  //if user enters S or s that shows Savings account

{itype= "Savings";  //set itype to Savings when user input s or S

error=0;  //set error to 0 means there is no error

rate=4/100.; }  //Savings accounts receives 4% interest

if(error==1)  //in case of error in giving input

System.out.println("Invalid type-re enter"); }  //asks user to input again

System.out.println("Enter minimum balance: ");  //asks user to enter min bal

min=in.nextDouble();  //reads value of input minimum balance

System.out.println("Enter current balance: ");

// reads value of input current balance

cur=in.nextDouble();

balance = cur;  

if(itype=="Checking") //if the account type is checking

{ if(cur>min+5000) //Checking accounts interest is 5%

{rate=5/100.;

cur=cur+rate*cur; //computes new balance

System.out.printf("New balance: $%.2f\n", cur);} //returns new balance value

/*If a customer’s balance falls below the minimum balance, there is a service charge of $25.00 for checking accounts */

else if(cur<min)

{cur-=25;

System.out.printf("New balance: $%.2f\n", cur);} returns the value of new

}

if(itype=="Savings"){ //if account type is Savings

/*If a customer’s balance falls below the minimum balance, there is a service charge of $10.00 for savings accounts */

if(cur<min)

{cur-=10;

System.out.printf("New balance: $%.2f\n", cur);}

else

//Savings accounts receive 4% interest

{cur=cur+rate*cur;

System.out.printf("New balance: $%.2f\n", cur);}}

/* as the program should output account number, account type, current balance, and new balance so i have commented out the extra print statements below */

//System.out.printf("After interest and fees your balance is = $%.2f\n",cur);

System.out.println("Account Number: " + num);

System.out.println("Account type: " + itype);

System.out.printf("Current balance: $%.2f\n ", balance);  //the result is //displayed up to 2 decimal place .2f   } }

Explanation:

Following is the output of each test example:

46728 S 1000 2700

Account Number: 46728                                            

Account type: Savings                                                                                          

Current balance: $2700.00                                                                                

New balance: $2808.00

87324 C 1500 7689

Account Number: 87324                                                                                      

Account type: Checking                                                                                        

Current balance: $7689.00                                                                                  

New balance: $8073.45

79873 S 1000 800

Account Number: 79873                                                                                    

Account type: Savings                                                                                        

Current balance: $800.00  

New balance: $790

89832 C 2000 3000

Account Number: 89832                                                                                      

Account type: Checking                                                                                        

Current balance: $3000.00                                                                                  

New balance: $3090.00

98322 C 1000 750  

Account Number: 98322

Account Type: Checking  

Current balance: $1000.00

New Balance: $725.00

7 0
2 years ago
Other questions:
  • Whoever helps me with these questions i will help them with the same number of questions in any subject: 1. As the operations ma
    14·1 answer
  • Gabe wants to move text from one document to another document. He should _____.
    10·2 answers
  • A slide contains three text boxes and three images that correspond to the text boxes. Which option can you use to display a text
    5·2 answers
  • A ____ resembles a circle of computers that communicate with each other.
    14·1 answer
  • What three requirements are defined by the protocols used in network communications to allow message transmission across a netwo
    11·1 answer
  • Represent the logic of a program that allows the user to enter a value for one edge of a cube. The program calculates the surfac
    10·1 answer
  • A news channel runs a two-minute story on phishing scams. The report features the testimonies of a phishing victim and a compute
    7·1 answer
  • Modify the closest pair of points algorithm so that the separating line L now separates the first n/4 points (sorted according t
    14·1 answer
  • Why is it important for element IDs to have meaningful names?
    11·1 answer
  • The dealer's cost of a car is 85% of the listed price. The dealer would accept any offer that is at least $500 over the dealer's
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!