Answer:
1-2
2-3
3-1
Explanation:
I couldn't find a way to explain this.
The generated code component that executes on the web server is the following does Laura tell you is NOT a component of the active server page.
a. the generated code component that executes on the web server
<u>Explanation:</u>
Asp technology is where it is a combination of both HTML and visual basic programming. Asp web pages are executed in server and display as Html to the end-users.
With the HTML coding, only static pages can be developed whereas through ASP web pages are developed and which contains visual basic coding languages and for client-side validates in ASP web pages either javascript or visual basic scripts are used.
Each ASP web pages are compiled at the server end and executed and complied out HTML pages are shown in web pages.
We need to install the ASP component at the server to execute the ASP web pages.
Answer:
import java.util.*;
public class Main {
public static void main(String[] args)
{
Scanner scan = new Scanner();
double budget=0, num=0, total=0;
System.out.println("Your budget for the month? ");
budget=scan.nextDouble();
System.out.println("enter all expense, and after that type -9999 to quit: ");
while(num != -9999)
{
total+=num;
num=scan.nextDouble();
}
if(total<=budget)
{
System.out.println("under budget by ");
System.out.println(budget-total);
}
else
{
System.out.println("over budget by ");
System.out.println(total-budget);
}
}
}
Explanation:
- Take the budget as an input from user and store it to the budget variable.
- Loop until user has entered all his expenses and keep on adding them to the total variable.
- Check If the total is less than or equal to budget or otherwise, and then print the relevant message accordingly.