Answer:
#include <iostream>
using namespace std;
int main()
{
int exam1 = 70;
int exam2 = 85;
int examAverage;
examAverage = (exam1+exam2)/2;
cout <<"The Average of Exam1 and Exam2 is: "<<examAverage<<endl;
return 0;
}
Explanation:
Using the C++, we declare the three variables all of type
exam1
exam2 and
examAverage
We assign initial values of 70 and 85 to exam1 and exam2 respectively
Wholesalers acquire goods from manufacturers, farmers or miners, holds them then distributes them to retailers.
Answer: Logical Point Blocking
Explanation:
Answer:
String word = "George slew the dragon";
int pos = word.indexOf("dr");
String drWord = word.substring(pos, pos+4);
System.out.println(drWord);
Explanation:
Assuming dr is always there, we don't have to check the validity of 'pos'. Normally, you would!
Answer : The securtiy of the password can be maitained by the shadow files such as:-
- max is for the days that represent that the same password can be used without the need for changing it
- min is for the days that represent waiting days before the changing of password after he/she gets a new password
- warn are the days that come with Waring sign that the password is going to expire soon.
For a certain period of time , the user can access the log in when the password has expired . If that period is timed out then there will be no log in option and the account gets disabled.