Answer:
// here is code in C.
// headers
#include <stdio.h>
// main function
int main(void) {
// variable declaration
int favorite_number;
// ask user to enter favorite number
printf("enter your favorite number : ");
// read the number
scanf("%d",&favorite_number);
// print the message
printf("your favorite number is: %d",favorite_number);
return 0;
}
Explanation:
Declare a variable "favorite_number" of integer type.Ask user to enter favorite number and assign it to favorite_number.Then print the message which include the favorite number.
Output:
enter your favorite number : 77
your favorite number is: 77
Answer:
Multitasking is the capacity of a computer to manage multiple tasks simultaneously. Tombstoning is being used on Windows mobile but when it is not being used, it is likened with a napping state of an app or program.
Explanation:
Multitasking is the capacity of a computer to manage multiple tasks simultaneously. Tombstoning is being used on Windows mobile but when it is not being used, it is likened with a napping state of an app or program.
The main difference between tombstoning & multitasking is that one uses memory and one doesn't. One of big issues with the Android operating system is that when the client feels they have left the program, apps remain in the background utilizing resources.
Telephones with multitasking abilities use vital resources and have a shorter batter life than telephones without multitasking. This is the major reason why Microsoft is choosing to use tombstoning rather than multi tasking on phones.
Answer:
import numpy as np
a = int(input ("Enter a"))
b = int(input ("Enter b"))
c = int(input ("Enter c"))
d = int(input ("Enter d"))
c1 = int(input ("Enter c1"))
c2 = int(input ("Enter c2"))
array1 =[[a, b],[c, d]]
A = np.array (array1)
B = np.array ([c1, c2])
X = np.linalg.inv (A).dot (B)
print (X)
Explanation:
let ax + by =c1
cx + dy =c2
We have used the above NumPy library that has the methods for matrix calculation, and here we have used matrix multiplication, and the inverse of a matrix to find the value of x and y.
We know AX=B
X = inv A. B
And this we have used above. We can calculate inv A and do matrix multiplication using NumPy. And thus we get the above solution.
Answer:Increasing self awareness
improving quality of life
developing skills
Explanation: core