Search the internet about the properties of the for loop

Assignment Help Computer Engineering
Reference no: EM131196154

Question 1: Use the Create Public Key Pair program in the course material to create a key pair.  Then use this key pair in the following network application:

-The server is waiting for requests at port 12345.

-The server is multithreaded so that a new thread is created for a new request.

-A client would first generate a random AES private key.  Then, he/she will encrypt this key with the public key of the key pair and send it to the server.  When the server receives this, it will first decrypt it with the private key.  Then, the AES key will be used for encrypting later communication between the client and the server.

-When the client sends in a message, the server would reply according to the following:

  • if the message is "How old are you?", the reply would be "About the same as you".
  • if the message is "What are you up to now?", the reply would be "I am talking to you".
  • if the message is "Bye", the replay would be "See you.". Then, the thread would end.
  • if the message is anything else, the reply would be "I do not quite understand."

-The client would have the following GUI entities:

  • A text area for displaying the replies from the server;
  • A text input and a submit button for entering a message to be sent to the client.

-When the client close the client window, the server should take note of this (by catching an exception thrown) and then terminate the corresponding thread.

Write the client and server.

I suggest you to use writeObject in sending anything to and from the server.  Note that when you open an ObjectInputStream and ObjectOutputStream on both client and server, please open the ObjectOutputStream first.

Question 2: (a) Search the internet about the properties of the for loop in Ada, compare the readability, writability and reliability of the for loop in Ada and Java. Explain your answer.

(b) Java 5.0 provides looping on data structures as described in the course materials.  State one situation when you do not want to use this feature in looping through a data structure.

Question 3: The longest phrase in the software life cycle is the maintenance phrase.  Therefore, the cost of maintenance is a significant portion of the total cost of the software.  Which of readability, writability and reliability of a language do you think is most important if you want to reduce the maintenance cost of a software? Explain your answer.

Question 4: The exception handling feature in Java is not available in early programming languages such as C.  Do you think this feature can increase the readability, writability or reliability of Java? Explain your answer.

Question 5: Most modern languages allow the use of '_' as connectors in identifiers, e.g. my_type.  However, COBOL uses '-' as connectors in identifiers, e.g. my-type.  Do you thing that we should use '-' instead of '_' in Java?

Question 6: (a) Describe the main use of a variant record type.

(b) Why it is not available in Java?

Reference no: EM131196154

Questions Cloud

Describe two or three elements of hamiltons collage : Describe two or three elements of Hamilton's collage, Just What Is It That Makes Today's Homes So Different, So Appealing?
Supply-demand and aggregated demand and aggregated supply : Do you think you can match the different projections? For example, do you think that a 5% increase in income is associated with a 10% tariff rate and a 2% inflation rate? Explain by linking your discussion to at least all of the following concepts. s..
Describe the body effect on the transistor : Write the equation that describes the body effect on the transistor - Suggest a modification to the circuit to convert it to a single-ended opamp.
How many electrons are there on each of the droplets : Suppose a scientist repeats the Millikan oil-drop experiment but reports the charges on the drops using an unusual (and imaginary) unit called the warmomb (wa).
Search the internet about the properties of the for loop : Search the internet about the properties of the for loop in Ada, compare the readability, writability and reliability of the for loop in Ada and Java
Discuss how the work is reflection of the ancient culture : Discuss how the work is a reflection of the ancient culture that created it. Also, did anything particularly surprise or impress you about the work of art or the ancient people who created it?
Stakeholders play an integral role when it comes to advocacy : Stakeholders play an integral role when it comes to advocacy, partners, agents of change, and sponsorship (Lecture 5 GCU). Stakeholders that do not trust an organization including any governmental entity will be highly affected.
Who is the best speaker you have ever heard : Who is the best speaker you have ever heard?-  Even if it's someone we would never have heard of, how would you describe their speaking style?
What ids the population : a. What ids the population? b. What is the sample? c. Is this a judgment sample of a probability sample?

Reviews

Write a Review

Computer Engineering Questions & Answers

  Why use asymptotic notation instead of running time

Why use asymptotic notation instead of running time or operation counts and when does it make more or less sense?

  How are the enterprise software tools

How are enterprise software tools/enterprise resource planning used in helping to decrease the cost of designing and implementing new systems.

  Describe how you would use defect data to drive process

explain how you would use defect data to drive process improvement. specifically explain what data you would collect

  In this exercise you are required to write a computer

in this exercise you are required to write a computer program which will calculate the voltage across a resistor in the

  Contain what database applications are used

Analyzing the usage of databases in your organization. contain what database applications are used We use Oracle. Conclude by proposing improvements. For large organizations, restrict the scope of the paper to the department in which you work. I w..

  Problem on human computer interface

You are booking a flight from Port of Spain Trinidad to VC Bird airport in Antigua. You will be using LIAT and Caribbean Airlines websites to do so and noting a few comparisons along the way.

  Write a function that uses a switch statement

Write down a function that uses a switch statement to determine the number of the nearest cross street for a given address and avenue number according to the preceeding alogorithm. Then write a program to test your function.

  In this question you will test using a backtracking

in this question you will test using a backtracking algorithm if a mouse can escape from a rectangular maze.the

  Write ieee floating point representation of the following

Write IEEE floating point representation of the following decimal numbers.

  Tests performed to ensure the fault tolerance of servers

How could you determine the level of fault tolerance needed for a particular business operational function.

  Questionyour manager wants to apply rbac functionality your

questionyour manager wants to apply rbac functionality. your shop uses a unix scheme. you do not include a system with

  Program to experiment various sort algorithms

Develop a program which enables you to experiment along with the various sort algorithms. This program must allow you to easily plug-in the new sort algorithms and provide comparison between them.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd