Answer:
Tethering and hotspot
Explanation:
Tethering and hotspot are the two different ways by which a laptop could utilize the cellular network connection of a mobile device.
Tethering usually involves connecting the computer or smartphone to the internet with the aid of a USB cable while hotspot involves connection of the device to the internet through the WIFI option.
Write a class Bug that models a bug moving along a horizontal line. The bug moves either to the right or left. Initially, the bug moves to the right, but it can turn to change its direction. In each move, its position changes by one unit in the current direction. Provide a constructor
Answer:
Following are the constructor to the given code:
Bug(int position) //defining a constructor that defines a integer parameters
{
this.position = position;//use this key word to hold parameter value
right = true;//defining a variable right that hold a boolean value
}
Explanation:
In this code, a constructor is declared that defines integer parameters with it, Inside the constructor, this keyword is used to holds the "position" parameter value and defines a boolean variable "right" that holds a boolean value.
Full program:
public class Bug //declaring a class Bug
{
private int position;//declaring integer variable position
private boolean right;//declaring boolean variable
public Bug(int position) //defining a parameterized constructor
{
this.position = position;//use this to hold position value
right = true;//holding boolean value
}
public void turn() //defining a method turn
{
right = !right;//holding value
}
public void move() //defining method move
{
if(right)//use if to check boolean value
{
position++;//incrementing position value
}
else//else block
{
position--;//decreasing position value
}
}
public int getPosition()//defining method getPosition
{
return position;//return position value
}
public static void main(String[] args) //main method
{
Bug bug = new Bug(10);//creating class object
System.out.println("Expected = 10, Actual = " + bug.getPosition());//calling method with printing value
bug.move();//calling method
System.out.println("Expected = 11, Actual = " + bug.getPosition());//calling method with printing value
bug.move();//calling method
bug.move();//calling method
bug.move();//calling method
System.out.println("Expected = 14, Actual = " + bug.getPosition());//calling method with printing value
bug.turn();//calling method
bug.move();//calling method
bug.move();//calling method
System.out.println("Expected = 12, Actual = " + bug.getPosition());//calling method with printing value
bug.turn();//calling method
bug.move();//calling method
System.out.println("Expected = 13, Actual = " + bug.getPosition());//calling method with printing value
}
}
Output:
Please find the attached file.
Write a function using a loop to approximate the value of PI using the formula given including terms up through 1/99, 1/999 and 1/9999. As the number of iterations increase, the estimate gets closer to the value of PI. The function should accept the number of iterations and return the estimate of PI.
Answer:
Following are the code to the given question:
#include <stdio.h>//header file
double estPi(int precision)//defining a method estPi that accepts value in parameter
{
double pi = 0, sign = 1, n = 1;//defining a double variable
while (n <= precision) //use while loop that checks n value less than equal to precision
{
pi += sign / n;//defining pi variable that holds quotient value
sign *= -1;//holding value in sign value
n += 2;//increment value in n
}
return 4 * pi;//return value
}
int main() //main method
{
int n;//defining an integer variable
printf("Enter number of iterations: ");//print message
scanf("%d", &n);//input value
printf("Estimated PI is %lf\n", estPi(n));//print method that calls method
return 0;
}
Output:
Please find the attached file.
Explanation:
In the given code a method "estPi" is declared that holds an integer variable "precision" is declared inside the method multiple double variable is declared inside the loop it calculate the value and return its values.
Inside the main method an integer variable "n" is declared that use print method to input the value and accepting value from the user-end and passing value in the method and print its values.
Answer:
Following are the code to the given question:
#include <stdio.h>//header file
double estPi(int precision)//defining a method estPi that accepts value in parameter
{
double pi = 0, sign = 1, n = 1;//defining a double variable
while (n <= precision) //use while loop that checks n value less than equal to precision
{
pi += sign / n;//defining pi variable that holds quotient value
sign *= -1;//holding value in sign value
n += 2;//increment value in n
}
return 4 * pi;//return value
}
int main() //main method
{
int n;//defining an integer variable
printf("Enter number of iterations: ");//print message
scanf("%d", &n);//input value
printf("Estimated PI is %lf\n", estPi(n));//print method that calls method
return 0;
}
Output:
Please find the attached file.
In the given code a method "estPi" is declared that holds an integer variable "precision" is declared inside the method multiple double variable is declared inside the loop it calculate the value and return its values.
Inside the main method an integer variable "n" is declared that use print method to input the value and accepting value from the user-end and passing value in the method and print its values.
Answer: Following are the code to the given question: #include - 1
Explanation:
Find out the actual instruction given in binary
Your question is incomplete.
hope its helpful.
Thomas owns a small Web services company and currently owns and maintains all his own computing hardware. He plans to develop and test a new service offering that will require his computing capacity to double or triple quickly if it proves successful. How might transitioning to the public cloud help Thomas with this situation
Answer: Hello the options related to your question is missing attached below are the options
answer : unlimited computing capacity for a low monthly fee ( A )
Explanation:
Since Thomas plans to develop a new service that will require his computing capacity to either double or triple, The best way of transitioning to the public cloud that might help Thomas meet up the requirement is Using unlimited computing capacity for a low monthly fee
Sean works for an organization that offers SaaS to a chain of boutiques.By getting data from the database,he has to prepare a list of instances when the billing transaction failed.Which of the following tasks does he need to do to prepare the report?
A) Create queries to get relevant data
B) Specify layout and format
C) Establish relationship between data
D) Add data to the report by running it
Answer: A) Create queries to get relevant data
B) Specify layout and format
D) Add data to the report by running it
Explanation:
SaaS is a software delivery method which allows the access of data from any device when there's a web browser and an internet connection and a web browser.
Since Sean wants to prepare a list of instances when the billing transaction failed, he'll need to:
• Create queries to get relevant data
• Specify layout and format
• Add data to the report by running.
Therefore, the correct options are A, B and D.
In which SDLC step does the company translate broad, user-oriented systems requirements into the detailed specifications used to create a fully developed system
Answer:
Physical design.
Explanation:
Systems development life cycle (SDLC) is a strategic process that involves determining the overall system architecture, which is typically comprised of hardware, end users, physical processing components, software, and the communication channel that will effectively and efficiently satisfy the essential requirements of the system.
The system inputs and outputs is typically designed along with a plan of how the system's features will be navigated.
Basically, system design is divided into two (2) categories and these includes;
I. Logical design.
II. Physical design.
Furthermore, the design of service systems involves the process of planning, creating infrastructure, building communication, organizing staffs and standardization of a system so as to improve its quality and business relationships between the service provider and its clients.
In the physical design of systems development life cycle (SDLC), broad, user-oriented systems requirements are obtained from end users by companies and then translated into the detailed specifications that would be used to create a fully developed system.
what is software? what are two types of software?
Answer:
Software is the collection of programs which makes computer work. The two types of software are 1)Application software
2)System software