Answer:
my_mul:
.globl my_mul
my_mul:
//Multiply X0 and X1
// Does not handle negative X1!
// Note : This is an in efficient way to multipy!
SUB SP, SP, 16 //make room for X19 on the stack
STUR X19, [SP, 0] //push X19
ADD X19, X1, XZR //set X19 equal to X1
ADD X9 , XZR , XZR //set X9 to 0
mult_loop:
CBZ X19, mult_eol
ADD X9, X9, X0
SUB X19, X19, 1
B mult_loop
mult_eol:
LDUR X19, [SP, 0]
ADD X0, X9, XZR // Move X9 to X0 to return
ADD SP, SP, 16 // reset the stack
BR X30
Explanation:
Answer:
see explaination
Explanation:
import java.util.InputMismatchException;
import java.util.Scanner;
public class calculate {
static float a=0,b=0;
double cal()
{
if(a==0||b==0)
{
System.out.println("no values found in a or b");
start();
}
double x=(a*a)+(b*b);
double h=Math.sqrt(x);
a=0;
b=0;
return h;
}
float enter()
{
float val=0;
try
{
System.out.println("Enter side");
Scanner sc1 = new Scanner(System.in);
val = sc1.nextFloat();
return val;
}
catch(InputMismatchException e)
{
System.out.println("Enter correct value");
}
return val;
}
void start()
{
calculate c=new calculate();
while(true)
{
System.out.println("Enter Command");
Scanner sc = new Scanner(System.in);
String input = sc.nextLine();
switch(input)
{
case "A":
a=c.enter();
break;
case "B":
b=c.enter();
break;
case "C":
double res=c.cal();
System.out.println("Hypotenuse is : "+res);
break;
case "Q":
System.exit(0);
default:System.out.println("wrong command");
}
}
}
public static void main(String[] args) {
calculate c=new calculate();
c.start();
}
}
Answer:
i dont know but i will take the points tho hahah
Explanation:
Answer:
G = $37,805.65
Explanation:
I found this on another site:
475,000 = 25,000(P/A,10%,6) + G(P/G,10%,6)
475,000 = 25,000(4.3553) + G(9.6842)
9.6842G = 366,117.50
G = $37,805.65
Explanation:
Conduction:
Heat transfer in the conduction occurs due to movement of molecule or we can say that due to movement of electrons in the two end of same the body. Generally, phenomenon of conduction happens in the case of solid . In conduction heat transfer takes places due to direct contact of two bodies.
Convection:
In convection heat transfer of fluid takes place due to density difference .In simple words we can say that heat transfer occur due to motion of fluid.