Programming & Computer Science Answers

C++ 9913
Python 5288
Java | JSP | JSF 3611
C 1680
C# 1362
Computer Networks 989
Algorithms 652
Databases | SQL | Oracle | MS Access 641
HTML/JavaScript Web Application 588
Other 537
Visual Basic 358
Assembler 209
Software Engineering 202
AJAX | JavaScript | HTML | PHP 166
MatLAB 150
MatLAB | Mathematica | MathCAD | Maple 124
Action Script | Flash | Flex | ColdFusion 112
UNIX/Linux Programming 89
Web Development 73
Excel 36
ASP | ASP.NET 23
Delphi | Pascal 21
Perl 16
Prolog 9
Functional Programming 9
MathCAD 5
Wolfram Mathematica 4
WPF 4
Ruby | Ruby on Rails 3
NodeJS Web Application 2

Questions answered by Experts: 26 876

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search

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?


1.A router can process 2 million packets/sec. The load offered to it is 1.5 million packets/sec

on average. If a route from source to destination contains 10 routers, how much time is spent

being queued and serviced by the router?

2.Exactly describe why we cannot use the CIDR notation for the following blocks of IP 

addresses:

a. AD HOC block with the range 224.0.2.0 to 224.0.255.255.

b. The first reserved block with the range 224.3.0.0 to 231.255.255.255.

c. The second reserved block with the range 234.0.0.0 to 238.255.255.255



A teacher asked the class leader to prepare the list of  student details (name, Roll number, Branch and Sem) of his section by using read method and also to display the details of the students using java program


A hospital wants to store a record regarding its patients. The information to store include

  • Name of the patient
  • Age of the patient
  • Date of Birth of Patient (yyyy/mm/dd)
  • Disease
  • Date of Admission
  • Date of discharge

Create a class called Patient to store the above information. Date of Birth and Disease of a patient should be private data attributes. Create public methods which take all above information as input from user and then display / output all the information.


Javascript excercise: Create a new html file. Give provision for users to insert a number (you can use prompt boxes or text fields). If the user inserts a number, show the multiplication table for that number in console log. But, if the user inserts anything other than a number, show appropriate error messages.


 Continuation of assignment from Lab 5: When all the mandatory form details (name and email) are enterd correctly to the form created in lab 5, the form is considered valid. When user clicks on submit button, show a preview of the entire form data in an alert window. (hint: refer to examples done in class)


LATEST TUTORIALS
APPROVED BY CLIENTS