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

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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