Answer:
// here is code in C++.
#include <bits/stdc++.h>
using namespace std;
// main function
int main()
{
// variables
int x=5,y=2,z=9;
int min;
// find the smallest value and assign to min
// if x is smallest
if(x < y && x < z)
// assign x to min
min=x;
// if y is smallest
else if(y < z)
// assign y to min
min=y;
// if z is smallest
else
// assign z to min
min=z;
// print the smallest
cout<<"smallest value is:"<<min<<endl;
return 0;
}
Explanation:
Declare and initialize variables x=5,y=2 and z=9.Then check if x is less than y and x is less than z, assign value of x to variable "min" .Else if value of y is less than value of z then smallest value is y, assign value of y to "min".Else z will be the smallest value, assign its value to "min".
Output:
smallest value is:2
num1 = float(input("Enter the first number: "))
num2 = float(input("Enter the second number: "))
operation = input("Which operation are you performing? (a/s/m/d) ")
if operation == "a":
print("{} + {} = {}".format(num1, num2, num1+num2))
elif operation == "s":
print("{} - {} = {}".format(num1, num2, num1-num2))
elif operation == "m":
print("{} * {} = {}".format(num1, num2, num1*num2))
elif operation == "d":
print("{} / {} = {}".format(num1, num2, num1/num2))
I hope this helps!
The
answer is FALSE because the
interior of commercial Hard disk drive is with stack of magnetic disks
(platters) containing the user’s data and a rotating arm supporting the magnetic
heads. The rotating arm is moved by the torque generated by a voice coil motor
(VCM) mounted at one end of the arm. Data read/write operations rely on the capability of the
governing unit of the HDD to maintain the magnetic read/write heads as close as
possible to center of the desired track. Typically, reliability of data reading
and writing is guaranteed when the head is kept within 5% of the track pitch
from the track center. This means that the accuracy required for the head positioning
is in the range of a few tens of nanometers.
Answer:
The default location for local logon scripts is
- the Systemroot\System32\Repl\Imports\Scripts folder