We have two lists. L1 = ['Coffee', 'Tea'] L2 = ['Hot', 'Ice']. Using a nested while loop compute the following output: Coffee * Hot * Ice Tea * Hot * Ice
Java socket related classes to create a dictionary client To get familiar with the socket library in Java,
· Requesting, receiving, parsing and returning a list of matching strategies supported by the server. The protocol allows a client to retrieve a list of matches (suggestions) based on a keyword, and the strategy is used to indicate how these keywords are used to present actual dictionary entries. Examples include prefix matches (all words that start with a prefix), regular expressions, entries with similar sounding words, etc. In the interface, the user will have the option of selecting a specific strategy for matching, with prefix match being the default.
· Requesting, receiving, parsing and returning a list of matches based on a keyword, a matching strategy and a database. This list of matches will be used in the interface to suggest entries as they type a word.
Java socket related classes to create a dictionary client To get familiar with the socket library in Java,
• Establish a connection with a DICT server, and receive the initial welcome message.
• Finish a connection with a DICT server by sending a final QUIT message, receiving its reply, and closing the socket connection.
• Requesting, receiving, parsing and returning a list of databases used in the server. Each database corresponds to one dictionary that can be used to retrieve definitions from. Examples include one or more regular English dictionaries, a Thesaurus, an English-French dictionary, a dictionary of technical terms, a dictionary of acronyms, etc. In the interface, the user will have the option of selecting a specific database, or all databases.
write a pseudo code for a program to find the greater number between two numbers
a) Write a program which allows a student to enter a string and test for whether string is a palindrome or not. If string is a palindrome replace all characters with random numbers between 1 and 100 and displays the output, else prompt student re-enter string.
b) Write a program which allows a company secretary to write employee details in file called EmployeeHours.txt and retrieves the information using pointers to display it on the screen.
a) Write a program using functions to imitate a university canteen ticketing system. A student is required to enter their registration number and pin to access the food menu and make payments. Also a student is allowed to enter only two times a wrong pin before account is blocked.
b) Demonstrate using functions to calculate the area and perimeter as right angled triangle. Given that the perimeter of a triangle is the sum of all three sides and the hypotenuse of a triangle is obtained by sqtr((len * len)+(height * height)) where sqtr() is in a built-in function.
Create a sequence of numbers from 15 to 25 and increment by 4. What is the index of the value 19
Write a program to find sum middle 2 or 3 digits (if odd number of digits) of an entered number.
Example: for even number of digits
Input
4567
Output
5+6=11
2nd Example: for odd number of digits
Input
123
Output
2
3rd e.g.
Input
12345
2+3+4=9
You are given the price list of certain equipment (Table 1).
Write a script or function that takes an input for the number of items from each equipment and calculates the total number of equipment, total cost, and average cost per item.
(Table 1: Price List: )
Equipment Price (£)
Power generator 30
Transformer 10
Stepper motor 15
DC motor 8.5
Write a script of function that will take an input as the total budget and calculate how many items can be purchased for each equipment