The answer is true do you want an explanation to go with the answer
Answer:
Applet is the correct to the given question .
Explanation:
The java applet is a program that is executed by the web browser .The java applet is the small program application that are run in the web browser .In the java applet program we can play the sound which is not done by the standalone application .
- The java applet program is more secure then the standalone application because it will run in the network and access the resources .
- The java applet takes more computer's resources as compared to the standalone application .
- The user will used the <applet > tag to creating the applet file .
Answer:
// here is code in C++.
#include <bits/stdc++.h>
using namespace std;
// main function
int main()
{
// variables
int mi=INT_MAX;
int mx=INT_MIN;
int Num;
cout<<"enter five different Numbers:";
// read 10 non-negative Numbers
for(int a=1;a<=5;a++)
{
// read the input number
cin>>Num;
// find maximum
if(Num>mx)
{
mx=Num;
}
// find minumum
if(Num<mi)
{
mi=Num;
}
}
// print maximum and minimum
cout<<"maximum of five numbers is: "<<mx<<endl;
cout<<"minimum of five numbers is: "<<mi<<endl;
return 0;
}
Explanation:
Declare two variables "mi" & "mx" and initialize them with INT_MAX and INT_MIN respectively.Then read the five number from user and compare it with "mi" & "mx" ,if input is greater than "mx" then update "mx" or if input is less than "mi" then update the "mi". After all the inputs, "mi" will have smallest and "mx" will have largest value.
Output:
enter five different Numbers:6 19 3 44 23
maximum of five numbers is: 44
minimum of five numbers is: 3
The answer is C hope i helped :)