Answer:
This is using c++ syntax, you might need to make slight adjustment for other languages.
First activity:
string firstSnack = "chips";
string secondSnack = "pizza";
string thirdSnack = "apples";
string bestSnack = firstSnack;
bestSnack = secondSnack;
Second activity:
double apple = 0.5;
double banana = 0.75;
double orange = 1.43;
double total = apple + banana + orange;
Explanation:
When first declaring a variable, you want to specify the type (such as int, double, string, bool, etc.) and then the name. You can set the variable value in the declaration, or you can set it to a value later in the program by not having the equals sign and whatever comes next.
After the viruses would be detected we have to clean them.
means we have to erase the virus .
Answer:
Program
Explanation:
Program is like a set of instructions that helps hardware process data into information.
Every hardware needs a program to process data into information.
For example take the example of a data processing software like MS Excel.
You open a spreadsheet and enter some data into your sheet. and then ask the program to do some calculations with this data and give you output results. The spreadsheet software does this processing in the background for you and provides you the results.
Without program a hardware doesn't know what to do with the data. Therefore, a program is like a instruction set that guides the hardware what to do with the data.
Note: The terms software and program are usually used together but there is a difference between software and program
A software is a generalized term and program is more like a specific term.
software can be made up of several different programs which performs many different tasks. On the other hand, a program only carry out a specific task or set of instructions.