Answer:
ExpressCard, initially called NEWCARD, is an interface to connect peripheral devices to a computer, usually a laptop computer. The ExpressCard technical standard specifies the design of slots built into the computer and of expansion cards to insert in the slots.
Answer:
seeexplaination
Explanation:
Code(header file):
#ifndef THROTTLESHIFTLVEL_H
#define THROTTLESHIFTLVEL_H
class throttle
{
int position;
public:
throttle()
{
position = 0;
}
// specify the number of shift levels when creating objects
throttle(int level)
{
position = level;
}
void shut_off()
{
position = 0;
}
void shift(int amount)
{
if(amount >= 0)
position = position + amount;
}
double flow() const
{
return position;
}
bool is_on() const
{
if (position > 0)
return true;
else
false;
}
};
#endif
Please kindly check attachment for screenshot
Answer:
int1=int(input("Enter integer :\n"))#taking input of first number.
int2=float(input("Enter the power :\n"))#taking input of the power.
if int2 == 0.5 and int1<0:#condition for negative square root.
print("Cannot calculate the square root of negative numbers")#printing the message.
else:#else calculating the result.
res=int1**int2
print(res)
output:-
Enter integer :
-5
Enter the power :
0.5
Cannot calculate the square root of negative numbers
Explanation:
In the above program I have taken input of the number and the power.Since power can be decimal number taking it as float.If the number is negative and the power is 0.5 then printing the message for not calculating the value else calculating the value and storing it in the res printing the res.