Explanation:
<em>The</em><em> </em><em>working</em><em> </em><em>principle</em><em> </em><em>of</em><em> </em><em>the</em><em> </em><em>computer</em><em> </em><em>system</em><em>. </em><em>Computer</em><em> </em><em>do</em><em> </em><em>the</em><em> </em><em>work</em><em> </em><em>primarily</em><em> </em><em>I</em><em> </em><em> </em><em>the</em><em> </em><em>machine</em><em> </em><em>and</em><em> </em><em>we</em><em> </em><em>can</em><em> </em><em> </em><em>not</em><em> </em><em>see</em><em>,</em><em> </em><em>a</em><em> </em><em>control</em><em> </em><em>center</em><em> </em><em>that</em><em> </em><em>converts</em><em> </em><em>the</em><em> </em><em>i</em><em> </em><em>formation</em><em> </em><em>data</em><em> </em><em>input</em><em> </em><em>to</em><em> </em><em>output</em><em>.</em><em> </em><em>A</em><em> </em><em>co.puter</em><em> </em><em>is</em><em> </em><em>a</em><em> </em><em>machine</em><em> </em><em>made</em><em> </em><em>up</em><em> </em><em>of</em><em> </em><em>parts</em><em> </em><em>for</em><em> </em><em>the</em><em> </em><em>hardware</em><em> </em><em>and</em><em> </em><em>software</em><em>.</em><em> </em><em> </em>
<em>I</em><em> </em><em>hope</em><em> </em><em>it</em><em> </em><em>will</em><em> </em><em>help</em><em> </em><em>you</em><em> </em><em>so</em><em>.</em><em> </em>
Answer:
Following is the c++ code:-
#include <bits/stdc++.h>
using namespace std;
int main() {
float a,b,c;//declaring three float variables..
cout<<"enter values"<<endl;
cin>>a>>b>>c;//taking input..
float mi=min(a,b);//finding minimum in a and b..
mi=min(mi,c);// finding minimum from mi and c.
cout<<mi<<endl;//printing the answer.
return 0;
}
Explanation:
I have taken three float variables to hold the values.
then I am finding the minimum in a and b and storing it in mi.
Then finding minimum from mi and c so we will get our final minimum number.
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.
Explanation:
The argument is for the right braces.The right braces are used for simplicity.The right brace always terminates a block of code or a function.
The argument against right brace is that when we see a right brace in a program,we are not obvious about the location of the corresponding left brace because all or multiple statement end with a right brace.