Answer:
Explanation:
The following code is written in Java. It creates the raiseToPower method that takes in two int parameters. It then uses recursion to calculate the value of the first parameter raised to the power of the second parameter. Three test cases have been provided in the main method of the program and the output can be seen in the attached image below.
class Brainly {
public static void main(String[] args) {
System.out.println("Base 5, Exponent 3: " + raiseToPower(5,3));
System.out.println("Base 2, Exponent 7: " + raiseToPower(2,7));
System.out.println("Base 5, Exponent 9: " + raiseToPower(5,9));
}
public static int raiseToPower(int base, int exponent) {
if (exponent == 0) {
return 1;
} else if (exponent == 1) {
return base;
} else {
return (base * raiseToPower(base, exponent-1));
}
}
}
Answer:
public static void quad(double a, double b, double c) {
double D = (Math.pow(b, 2)) - (4 * a * c);
if (D<0){
System.out.println("no real solutions");
}
}
Explanation:
The code snippet above implements the function in Java programming language
As required by the question, the line double D = (Math.pow(b, 2)) - (4 * a * c); evaluates b squared" - 4ac and assignes the value to the variable D
An if statement is used to test if D is less than 0, if this is true the message no real solutions is printed
it is A the hardware im pretty sure but dont put my answer in im not completley sure
Answer:
Open a document: Ctrl + O.
Create a new document: Ctrl + N.
Save the current document: Ctrl + S.
Open the Save As window: F12.
Close the current document: Ctrl + W.
Split the window: Alt + Ctrl + S.
Copy: Ctrl+C
Paste: Ctrl+V
Cut the current selection: Ctrl + X
Copy the current selection: Ctrl + C
Paste the contents of the clipboard: Ctrl + V
Bold: Ctrl + B
Italics: Ctrl + I
Underline: Ctrl + U
Underline words only: Ctrl + Shift + W
Center: Ctrl + E
Make the font smaller: Ctrl + [
Make the font bigger: Ctrl + ]
Change text to uppercase: Ctrl + Shift + A
Change text to lowercase: Ctrl + Shift K
Insert a page break: Ctrl + Enter
Add a hyperlink: Ctrl + K
Explanation:
<span>The question has a few multiple choices one can choose from;
</span><span>A. Debit cards allow you to draw funds directly from your checking account.
B. Debit cards typically offer greater fraud protection than credit cards.
C. Debit cards never require a signature to finalize a purchase like credit cards.
D. Debit cards charge higher interest rates on purchases than credit cards</span><span>
The Answer is (A) Debit cards allow you to draw funds directly from your checking account.
Checks were replaced by Debit cards as a way of paying for goods or drawing funds from your checking account. Since your debit card comes with your checking account, its simplicity will work nearly everywhere a credit card works. Adding a credit card to your checking account is just adding a layer of complications to your finances.
The fact that a debit card draws on money you already have, those who spend a lot would do well with debit cards and avoid the temptation of credit.</span>