Cat 2
Cat 2
a) KCAU takes orders from customers, allow the customer to cancel the
orders and to view the outstanding orders. Explain the most effective
services to identify. (2 marks)
KCAU requires an Order Management System (OMS) as the foundation for order processing, which
includes order capture, tracking, inventory checks, and, perhaps, cancellation requests. A client
Relationship Management (CRM) system can be integrated with the OMS to manage client information
and history. A specified order cancellation protocol with clear criteria and customer contact is critical.
Finally, order reporting and analytics enable KCAU to discover trends and optimize operations.
The web application development life cycle (WADLC) offers an organized way to developing web
applications.
1. Plan and Strategize: Determine your goals, target audience, features, and technology.
2. Design & Prototype: Create UI mockups and wireframes to help visualize the application.
4. Test & Deploy: Thorough testing assures a high-quality application before launch.
5. Maintain and update: Continuous monitoring, issue corrections, and new features depending on
user feedback.
1
c) With the aid of a diagram, explain the SOA communication infrastructure.
(2
marks)
Components:
1. Service Provider: A service that provides certain functionality (e.g., Order Processing).
2. Service Consumer: The application that requests functionality from the service (for example, the
KCAU web app).
3. Service Registry (Optional): A central repository of available services and access information.
4. Service Bus (Optional) is a middleware component that routes communications between services.
5. Communication Protocol: A standardized language for sharing data (such as SOAP or REST).
Data Flow:
1. The Service Consumer detects a required service and obtains its data via the Service Registry (if
applicable) or directly.
2. The Consumer sends a request message to the Service Provider over the Communication Protocol
of their choice.
3. The Provider receives the request, executes the function, and generates a response message.
4. The response message is transmitted back to the Consumer via the same communication channel.
2
3
d) Discuss any three principles of user Interface Design that you would apply
to improve the quality of user interface design. (1.5 marks)
1. Consistency: Users form mental models of how an interface works based on their first
interactions. Maintaining uniformity in layout, navigation, vocabulary, and visual style across
all parts results in a more familiar and predictable experience. This decreases cognitive stress
and helps users to concentrate on getting jobs done efficiently.
2. clarity and simplicity: A clear, uncluttered design is easy to understand and use.
Emphasize clear labeling, accessible iconography, and a well-organized layout. Prioritize the
most important information and actions to prevent overloading users with unnecessary
functionality or visual clutter.
3. User Control and Feedback. Empower users to feel in charge of their experiences. Provide
clear and useful feedback on actions, including progress indicators, confirmation messages,
and problem handling, to encourage users toward successful completion of tasks
I. HTML tag.
An HTML tag is a building block that specifies the structure and meaning of material in an
HTML document. Tags are often written as opening and closing components that surround
the content to which they apply. Example:
```html
<link rel="stylesheet" href="style.css">
Iii. HTML Frames
HTML frames, while no longer encouraged, were originally used to partition a browser window into
many portions, each with its own HTML document. This enabled a set layout with designated regions
for navigation, content, and other features. However, frames have accessibility and responsiveness
concerns on contemporary devices. Example:
<frameset rows=”100px, ”>
1. Button-Click Event:
I Considered a button on a webpage that, when clicked, displays an alert message. Here is the
HTML code for the button.
<button id="myButton">Click Me</button>
JavaScript code with the event handler:
example
<form id=”myForm”>
<input type=”text” name=”userName” placeholder=”Enter your name”>
<button type=”submit”>Submit</button>
</form>
JavaScript can be used to prevent the default form submission behavior and perform custom
actions instead
// Get a reference to the form element
const form = document.getElementById("myForm");
5
// Perform custom logic with the form data (e.g., display username)
alert("Hello, " + userName);
}
6
vi. State and explain the approaches used to speed up application
development. (2 marks)
Approaches:
Agile Methodology: Iterative development using short cycles (sprints) and continual feedback to
enable faster adaption.
Low-Code/No-Code: Pre-built components and visual tools to speed up the construction of small
applications.
Code Reuse and Libraries: Using existing, well-tested code can help you save time on
development.
API Integration: Use APIs to access pre-built functionality and save time on development.
DevOps Practices: Dev & Ops collaboration allows for the automation of processes and
deployments, resulting in speedier release cycles.
vii. With aid of examples describe three types of popup boxes that can be
used to get data or present a message to the user in a java script.
(2 marks
Example
```javascript
- Used to get confirmation from the user before proceeding with an action.
- Returns `true` if the user clicks "OK" and `false` if they click "Cancel".
7
Example
```JavaScript
const confirmed = confirm("Are you sure you want to delete this item?");
if (confirmed) {
} else {
- Returns the entered text if the user clicks "OK" and `null` if they click "Cancel".
Example
```JavaScript
if (name) {
} else {