An ATM allows a customer to withdraw a maximum of $500 per day.
If a customer withdraws more than $300, the service charge is 4% of
the amount over $300. If the customer does not have sufficient money
in the account, the ATM informs the customer about the insufficient
funds and gives the customer the option to withdraw the money for a
service charge of $25.00. If there is no money in the account or if the
account balance is negative, the ATM does not allow the customer to
withdraw any money. If the amount to be withdrawn is greater than
$500, the ATM informs the customer about the maximum amount
that can be withdrawn. Write an algorithm that allows the customer to
enter the amount to be withdrawn. The algorithm then checks the total
amount in the account, dispenses the money to the customer, and debits
the account by the amount withdrawn and the service charges, if any.
use dynamic array as the underlying data structure to hold the list contents. The array will hold integer data. Here are the functions that your program should offer ( options in MENU):
1. Insert an item
Insert function will insert the value at the start of the list. Tell the user how many list elements are shifted to make room for new item.
2. Delete an item
It will ask the user for the value, if the value is present, it will be deleted from the list and function displays how many items are shifted to delete the value
3. Print out the items in the list
Task 1: Username and Domain Name extraction [10 points]
Write a program that reads an email address from the keyboard. Assuming that the email address contains one at-sign (@) after the username, extract and print the username and the domain name of the email address.
Input: rayanas@oldwestbury.edu
Output:
Username: rayons
Domain name: oldwestbury.com
Task 2: Company name extraction from URL [10 points]
Write a program that reads a commercial website URL from the keyboard; you should expect that the URL starts with www, and ends with .com. Retrieve the name of the site, convert the first letter to uppercase to get the company name, and output it.
Input: www.yahoo.com
Output:
Company name: Yahoo
*use Scanner class to read a String as input from the keyboard for both the tasks. Check the following two lines of code for doing that.
Scanner scan = new Scanner(System.in);
String str = scan.next();
Write the following IP addresses in CIDR notation: 135.1.1.25 Mask 255.255. 248.0
1. Suppose the company wants to secure its websites by implementing a VPN tunneling.
Which tunneling approach is the most suitable solution for the company? Why?
2. An internet service provider (ISP) a site-to-site VPN service to its clients (mainly companies
that have multiple branch offices in different locations in the country). As an advanced
computer network student which VPN implementation approach is best fitted for both ISP
and the clients? Why?