Your task is to implement a very simple HTTP server. Your server should respond to the HEAD and GET verbs as described below and for all other verbs reply with a 501 error message and an empty body.
You should only allow request for the boot document (/) all other documents should report 404 errors.
Should be done in ballerina programming language.
This problem is related to the virtual learning environment application discussed in one theory session and a few practicals. In this problem, you are tasked with creating and updating learner profiles, a particular type of user. As well, given a learner profile, we would like to retrieve the learning materials in the form of topics. Note that the learning materials for a given course will differ from one learner profile to another. For example, for a course "Distributed Systems and Applications", the learning materials for a learner with a weak background in "Programming" compared o another learner profile with a stronger background in programming.
Your task is to:
1. Provide a description in OpenAPI of the API that allows for communication between a client and a service for the functionalities discussed above;
2. Implement a corresponding client and a service ballerina programming language.
Write pseudocode, design flow chart and Java program using meaningful variable names, match logic specificed as in pseudocode and flow chart. Collect client information (Last name, first name, middle name (appear in one line) house/unit number, street name, type (appear in one line, city (by itself) & age (by itself) . Initial of first name with full stop, initial of middle name with full stop. Age brackets: 20 or under
21-35
36-70
71 or over
Write pseudocode, design flow chart and Java program using meaningful variable names, match logic specificed as in pseudocode and flow chart. Collect client information (Last name, first name, middle name (appear in one line) house/unit number, street name, type (appear in one line, city (by itself) & age (by itself) . Initial of first name with full stop, initial of middle name with full stop. Age brackets: 20 or under
21-35
36-70
71 or over
What is the mode of score under Believe?
a. 0
b. 2
c. 1
d. 1,0
In your module CIC2601, the importance of incorporating the 21st century skills into the curriculum is discussed. Observe your mentor teacher in practice for one lesson and answer the questions that follow:
Grade:
Lesson subject:
Content area
Topic:
Describe how your mentor teacher intergrate the 21st century skills into the teaching and learning process:
Communication:
Creativity:
Collaboration:
Critical thinking:
Write (a) the Hamming (7, 4) code for 0000 using even parity and (b) the Hamming (11, 7) code for 1111111 using odd parity.
Refer to https://en.wikipedia.org/wiki/DES_supplementary_material for the s-boxes in DES to answer the following questions:
What is the output of the first round of the DES algorithm when the plaintext and the key are both all ones? (List transition steps to justify your answer)
a. What’s the 64-bit value of IP(x)?
b. What’s the 48-bit subkey k1 of after PC-1?
c. What’s the 48-bit value of E(R0) after expansion?
d. What’s the 48-bit value after E(R0) XOR k1?
e. What’s the 32-bit value after S-boxes operations?
f. What’s the 64-bit (L1, R1) value after permutation P?