Answer:
Return are predicted in the modern microprocessor as, branch predictor is the modern method for the processor for the prediction. The basic function of the branch predictor is improving in the pipeline instruction. It is basically the important part for implement the execution and the pipe lining. And the return predicted uses the call by reference technique for the data in instruction.
Answer:
The history of telecommunication began with the use of smoke signals and drums in Africa, Asia, and the Americas. In the 1790s, the first fixed semaphore systems emerged in Europe. However, it was not until the 1830s that electrical telecommunication systems started to appear.
Explanation:
Answer:
The history of telecommunication began with the use of smoke signals and drums in Africa, Asia, and the Americas.
Explanation:
Answer:
// here is program in Java.
// import package
import java.util.*;
// class definition
class Main
{
// main method of the class
public static void main (String[] args) throws java.lang.Exception
{
try{
// variable
int gall;
double cost=0;
// object to read value from user
Scanner scr=new Scanner(System.in);
// ask user to enter type
System.out.print("Enter customer type (R for residential or B for business ):");
// read type of customer
char t=scr.next().charAt(0);
if(t=='r'||t=='R')
{
System.out.print("enter the number of gallons:");
//read number of gallons
gall=scr.nextInt();
// if number of gallons are less or equal to 6000
if(gall<=6000)
{
// calculate cost
cost=gall*0.007;
// print cost
System.out.println("total cost is: "+cost);
}
else
{
// calculate cost
cost=(6000*0.005)+((gall-6000)*0.007);
// print cost
System.out.println("total cost is: "+cost);
}
}
else if(t=='b'||t=='B')
{
System.out.print("enter the number of gallons:");
//read number of gallons
gall=scr.nextInt();
// if number of gallons are less or equal to 8000
if(gall<=8000)
{
// calculate cost
cost=gall*0.006;
// print cost
System.out.println("total cost is: "+cost);
}
else
{// calculate cost
cost=(8000*0.006)+((gall-8000)*0.008);
// print cost
System.out.println("total cost is: "+cost);
}
}
}catch(Exception ex){
return;}
}
}
Explanation:
Ask user to enter the type of customer and assign it to variable "t" with scanner object.If the customer type is business then read the number of gallons from user and assign it to variable "gall". Then calculate cost of gallons, if gallons are less or equal to 8000 then multiply it with 0.006.And if gallons are greater than 8000, cost for first 8000 will be multiply by 0.006 and for rest gallons multiply with 0.008.Similarly if customer type is residential then for first 6000 gallons cost will be multiply by 0.005 and for rest it will multiply by 0.007. Then print the cost.
Output:
Enter customer type (R for residential or B for business ):r
enter the number of gallons:8000
total cost is: 44.0
def __init__(self,size,idNum,color ):
self.size = size
self.location = 10
self.color = color
self.idNum = idNum
def changeLocation(self,newLocation):
self.location = newLocation
manipulator
initiator
method
constructor
Answer:
The answer is a method
Explanation:
Answer:
class and self
Explanation:
class Bike:
def __init__(self, str, float):
self.color = str
self.price = float
missing DLL files
installation issues
configuration issues
applications running slowly
kernel panic
power cords not being plugged in
The common problems experienced with software applications will be missing DLL files, installation issues, configuration issues, applications running slowly, and kernel panic. Then the correct options are B, C, D, E, and F.
Today's world depends heavily on technology. Technology now controls not just how businesses run but also how quickly many different sectors across the world are developing. The pace of technical development dictates the rate of development and company growth, leaving human progress and economic expansion at the whim of technology.
Some of the common problems are as follows:
The normal issues experienced with programming applications will be missing DLL documents, establishment issues, arrangement issues, applications running gradually, and part alarms. Then the right choices are B, C, D, E, and F.
More about the common problems with software applications link is given below.
#SPJ12
Answer:
All but the top and bottom on edge 2020
Explanation:
Answer:
#include <iostream>
using namespace std;
struct complex{//structure of comlex number..
double real;
double img;
};
complex add_complex(complex n1,complex n2)//add_complex functrion to add 2 complex numbers..
{
double a,b;//variables to hold the sum of real and imaginary.
complex sum;//result sum complex number.
a=n1.real+n2.real;//adding real parts.
b=n1.img+n2.img;//adding imaginary parts..
sum.real=a;//assinging values to sum.
sum.img=b;
return sum;//returning complex number sum.
}
int main()
{
complex c1,c2,sum;
double a,b;
cout<<"Enter values of c1"<<endl;
cin>>a>>b;
c1.real=a;
c1.img=b;
cout<<"Enter values of c2"<<endl;
cin>>a>>b;
c2.real=a;
c2.img=b;
sum=add_complex(c1,c2);
cout<<"The sum is : "<<sum.real<<" + i"<<sum.img<<endl;
return 0;
}
OUTPUT:-
Enter values of c1
8.5 7.2
Enter values of c2
4.5 3.9
The sum is : 13 + i11.1
Explanation:
First I have created a structure for complex number.Then created a function to add two complex numbers according to the question which returns a complex number.