Answer:
Following is the C program to divide two numbers:
#include<stdio.h>
double divemaster (double first, double second)
{
//Check if second argument is zero or not
if(second!=0)
return first/second;
else
return -1.0;
}
int main()
{
printf("%f\n", divemaster(100,20));
printf("%f\n", divemaster(100,0));
}
Output:
5.000000
-1.000000
Explanation:
In the above program, a function divemaster is declared which divedes the first argument with second and return the result.
Within the body of divemaster function if else block is used to verify that the second argument is not zero, and thus there is no chance of divide by zero error.
In main two printf statements are used to call the divemaster function. One to check normal division process and second to check divide by zero condition.
Let’s write the algorithm in the form of a pseudocode!
Pseudocode:Quotient_of_Two_Number
Declare: num1, num2, quotient
START
Display (Enter a number)
Read num1
Display (Enter a number)
Read num2
quotient = num1/num2
Print (“Quotient”)
STOP
Answer:
F
=
9
5
C
+
32
Subtract 32 from both sides:
F
−
32
=
9
5
C
Multiply both sides by 5:
5
(
F
−
32
)
=
9
C
Divide both sides by 9:
5
9
(
F
−
32
)
=
C
or
C
=
5
9
(
F
−
32
)
Explanation:
Answer:
The answer to this question can be given as:
The first antivirus was written in 1987 by the German security expert Bernd and the name of the antivirus is Vienna Virus.
Explanation:
Antivirus: It is a software or anti-malware software that is used for providing security. It is a tool that runs on various digital devices and searches for files that should not be on your computer. If the file is found then It defends the computer from incoming threats and seeks-out, stops and alerts of viable threats from the system so the computer works properly. So, the first antivirus was developed in 1987 by German security expert Bernd.