f) Explain the WAP protocol stack. Explain the following WML elements with the help of an
example:
Line Break
Tables in WML
WML images
e) Write and demonstrate (at the time of viva) JavaScript code that displays the message
"Welcome to BCA" and changes this text to “Web Programming is essential for BCA" after
10 seconds. You may use event handling. Make suitable assumptions, if any. (6 Marks)
Write a program that keeps track of a speakers’ bureau. The program should use a structure to store:
Name
Telephone Number
Speaking Topic
Fee Required
Add functions to set the values of data members and add function show values as well,The program should use an array of at least 10 structures. It should let the user enter data into the array, change the contents of any element, and display all the data stored in the array.
The program should have a menu-driven user interface.
Search Function for the Speakers’ Bureau Program that allows the user to search for a speaker on a particular topic. It should accept a key word as an argument and then search the array for a structure with that key word in the Speaking Topic field. All structures that match should be displayed. If no structure matches, a message saying so should be displayed.
Input Validation: When the data for a new speaker is entered, be sure the user enters data for all the fields. No negative amounts should be entered for a speaker’s fee.
Declare a structure named TempScale, with the following members:
fahrenheit: a double
centigrade: a double
Next define a Reading structure variable.
Write statements that will store the following data in the variable you defined above.
Wind Speed: 37 mph
Humidity: 32%
Fahrenheit temperature: 32 degrees
Centigrade temperature: 0 degrees 25.
showReading. It should accept a all member variable as its argument. The function should display the contents of the variables on the screen.
getFahrenheitReading, The function should return the value of Fahrenheit temperature.
getCelsiusReading, The function should return the value of Fahrenheit temperature.
recordReading. It should ask the user to enter values for each member of the structure and save the values.
findReading (int temp). It should use formulas to convert temperature into Fahrenheit and Celsius (according to user choice).
Input Validation: Add proper validation checks do not accept negative numbers for data member.
Configure and Document the configuration steps taking screenshots of any Unified Threat Management.
Design a complete network infrastructure of an organization using Packet Tracer
1. Describe any 10 Core Network Services that will be required in University of Ghana
1.Describe any 50 Port Numbers and their services
Hollow Right Triangle
Given an integer number N as input. Write a program to print the hollow right-angled triangular pattern of N lines as shown below.
Note:
There is a space after each asterisk ) character. *
Input
The first line of input is an integer
N
Explanation
In the given example the hollow right angled triangle of side 4 Therefore, the output should be
*
* *
*
IPL Match Details
Write a program that reads all the match outcomes and summarizes the information of all the matches.
Points are given to the terms based on the outcome of the match.
A win earns a team 3 points.A draw earns 1.A loss earns 0.
The following information is expected:
MP:Matches Played
W:Matches Won
D:Matches Drawn(Tied)
L:Matches Lost
P:Points
The team information should be displayed in descending order of points.
Sample input 1
6
CSK;RR;loss
RR;DD;draw
MI;KKR;win
KKR;RR;loss
CSK;DD;draw
MI;DD; draw
Sample output 1
Team: RR, Matches Played: 3, Won: 2, Lost: 0, Draw: 1, Points: 7
Team: MI, Matches Played: 2, Won: 1, Lost: 0, Draw: 1, Points: 4
Team: DD, Matches Played: 3, Won: 0, Lost: 0, Draw: 3, Points: 3
Team: CSK, Matches Played: 2, Won: 0, Lost: 1, Draw: 1, Points: 1
Team: KKR, Matches Played: 2, Won: 0, Lost: 2, Draw: 0, Points: 0