1.Setup of the Kafka cluster, including topic management. (20%).
2.Implementation of the client and services in the Ballerina language. (70%)
3.Quality of design and implementation. (10%)
The application should prompt the owner for a login confirmation code after their have enter the pin (this is used as a security measure kind of a two stage authentication). Once logged in system will then offer the following options to the admin, the privilege to restock/ add new items to the vending machine, change prices, Cash out certain amounts from machine, cash in certain amount, print out a summary of all items in stock, print out amount of cash in categories(How many 100s, 50s up to 5cs)and print out only items that need restocking (all items below 25 need to be restocked, hence the quantity of 25 is the re-order level) or exit, create a menu for this options.
Using a do-while loop create a program that will prompt the user for a number and then print out a list 5 odd numbers above the given number(inclusive).
Sample Run1
Enter a number: 10
Output1: 11 13 15 17 19
Sample Run2
Enter a number: 5
Output2: 5 7 9 11 13
Your task is to create a program that can achieve the above requirements when given the students surname, first name and three digit postfix through CMD arguements
a) To generate the student number it takes three letters(the first, middle and last letter) of the student’s surname and adds it to the first three letters from the first name, then finally adds a three digit postfix number.
b) To generate the email is quite easy it just takes the first letter from the first name and adds it to the surname , then it adds the @students.nust.na postfix
Your task is to create a program that can achieve the above requirements when given the students surname, first name and three digit postfix through CMD arguements
a) To generate the student number it takes three letters(the first, middle and last letter) of the student’s surname and adds it to the first three letters from the first name, then finally adds a three digit postfix number.
b) To generate the email is quite easy it just takes the first letter from the first name and adds it to the surname , then it adds the @students.nust.na postfix
Your task is to create a program that can achieve the above requirements when given the students surname, first name and three digit postfix through CMD arguements
Your task is to create a program that can achieve the above requirements when given the students surname, first name and three digit postfix through CMD arguements
Sample run 1:
java InClass01_task01 Kandjeke Jenifer 003
Output: Good day Jenifer welcome to NUST.
Your email address is : jkandjeke@students.nust.na
Student number : KJEJEN003
Sample run 2:
java InClass01_task01 Kavezemba Terry 001
Output: Good day Terry welcome to NUST.
Your email address is : tkavezemba@students.nust.na
Student number : KZATER001
2.Suppose that the first number of a sequence is x, where x is an integer. Define a^0 = x; a^n+1 = 𝒂^𝒏/ 𝟐 if an is even; a^n+1 = 3a^n + 1 if an is odd. Then there exists an integer k such that a^k = 1. Write a program that prompts the user to input the value of x. The program outputs the integer k such that a^k = 1 and the numbers a^0, a^1, a^2,…a^k. (For example, if x = 75, then k = 14, and the numbers a^0, a^1, a^2,…ak, respectively, are 75, 226, 113, 340, 170, 85, 256, 128, 64, 32, 16, 8, 4, 2, 1. (Test your program for the following values of x : 75, 111, 678, 732, 873, 2048, and 65535)