A firewall determines what external network traffic(internet) should or should not be allowed to pass internal network(computer). A firewall is network security that protects software and hardware from untrusted sites that may have viruses, worms, and bugs that are detrimental to the computer.
Answer:
public class newass {
/*
Write a method, makeSubjectLine, that gets a String argument and returns the same String but with "Subject: " in front
of it. So if the argument is "Are you going to the show?" the method returns "Subject: Are you going to the show?".
*/
public static void main(String[] args) {
System.out.println(makeSubjectLine("Are you going to the show?"));
}
public static String makeSubjectLine(String subj){
return "Subject: "+subj;
}
}
Explanation:
The solution in Java Programming Language
Answer:
void main(){
int *ip1,*ip2,*ip3;
printf("Enter values for ip1 and ip2\n");
scanf("%d\n",ip1);
scanf("%d\n",ip2);
*ip3=*ip1+*ip2;
}
Explanation:
*ip3=*ip1+*ip2;
this statement is used to add the values of two pointer variables and storing it in third pointer variable.
*ip1 --->ip1 gives address location of the variable and *ip1 gives the value stored at that address location
<h2>

</h2>
#include<iostream>
using namespace std;
int main ()
{
float basic, gross, da, hra;
cout<<"Enter basic salary of an employee:";
cin>>basic;
if (basic <25000)
{
da = basic *80/100;
hra = basic *20/100;
}
else if (basic >=25000 & & basic<40000)
{
da = basic *90/100;
hra = basic *25/100;
}
else if (basic>=40000)
{
da = basic *95/100;
hra = basic *30/100;
}
gross = basic + hra + da;
cout<<"\n\t Basic Pay............" <<basic<<endl;
cout<<"\t Dearness Allowance..........." <<da<<endl;
cout<<"\t House Rent Allowance......" <<hra<<endl;
cout<<"\t Gross Salary............." <<gross<<endl;
cout<<"\t - - - - - - - - - - - - - - -" <<endl;
<h2>

</h2>
Enter Basic Salary of an employee : 25000
Basic Pay : 25000
Dearness Allowance : 22500
House Rent Allowance : 6250
Gross Salary : 53750
<h2>

</h2>
<h3>The Expected Output is archived</h3>
Indentation is very important in python. You need to indent code inside while loops, for loops, if statements, etc. You don't seem to be indenting.
In this example:
while (secretNum != userGuess):
userGuess = int(input("Guess a number between 1 and 20: "))
Although, you might need to indent more than only this line. I hope this helps.