Answer
send an individual e-mail to her teacher for advice.
Answer:
A. Computing the average of a list of integers of unknown length
Along with an IP address, a subnet mask, and a name server, the other thing required for a computer to operate on a network is a primary gateway. The primary gateway acts as an access point which forwards information to another network or the internet.
Answer:
Please find the program in attachment.
The sample program is self explanatory, and with all the functions being listed as shown above.
And the sample program can be extended to allow three chances for authentication, and for all with addition of a simple for loop.
Explanation:
The code is self explanatory.
Answer:
Algorithm:
1. Declare variables "cost","state_tax" and "federal_tax".
2.Initialize these variables.
3.Create a variable "cust_money".
3.1 Ask user to give money.
3.2 Assign this to "cust_money".
4. Calculate total_tax=state_tax+federal_tax
4.1 Calculate total_to_be_paid=cost(1+total_tax)
5. Calculate change_to_give= cust_money-total_to_be_paid
6.Print the change_to_give
7. End the program.
Explanation:
Declare variables and initialize "cost" with initial cost of item, "state_tax" with state tax and "federal_tax" with federal tax on the item. Ask user to give money and assign it to "cust_money". calculate the total tax=state+federal tax. Then calculate the total to be paid for item as cost*(1+total tax). Subtract the total paid from customer money and print the change to give user.