Design a java application that will allow a traffic department user to search for and view fines
Write a program that reads all the match outcomes and summarizes the information of all the matches.
Points are given to the teams 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 output should contain summarized information of all the matches in a format similar to 'Team: CSK, Matches Played: 4, Won: 2, Lost: 1, Draw: 1, Points: 7' for each team in a new line.
If there are no teams to print in summary, print "No Output".
Ever wondered how change is disbursed to customers in certain stores? In Namibia the following notes exists 200,100,50,20,10 and following coins: 5, 1, 50c, 10c, 5c. For the sake of this exercises let us only consider change below 50 see below example: Sample run 1: Enter item name: Apples Enter QTY of Apples: 2 Enter price per item N$: 3.25 Amount tendered N$: 50 Your change is: N$ 43.50 Disbursed as follows: 2 x N$20; 0 x N$10; 0 x N$5; 3 x N$1; 1 x 50c; 0 x 10c; 0 x 5c [Hint: make use of % and / operators to determine the values needed, see Pg. 113 for more info
Create a program that when given a four word sentence as CMD arguments, it prints it backwards. E.g the sentence “How are you Today”, will be printed as “Today you are How”. Sample run 1: Sample run 2: java lab02_task01 how are you today java lab02_task01 we are going home Output: today you are how Output: home going are we
Write a Programmer that will develop a software called VACCINE_OPTION, that will determine the correct vaccine for every candidate. The available vaccines are Moderna, mRNA, Johnson & Johnson’s Janssen and Pfizer-BioNTech
The software should determine the type of vaccine a candidate should receive based on their temperature. Use the switch statement to determine the right vaccine for candidate by using their temperature readings
1. 30-33 for Mordena
2. 34-36 mRNA
3. 37-38 Johnson and Johnson’s Janssen
4. 39-40 Pfizer-BioNTech
The program must be able to read temperatures up to four(4) decimal places after the comma and use an appropriate library to convert it to two(2) decimals after the comma,
people that are vaccinated:
Jay Snow 34,37 mRNA
Chris Van 37,66 Johnson and johnson’s Janssen
Charles Smith 32,55 Mordena
Norwell Sky 39,78 pFizer-BioNTech
-Use an appropriate operator to convert an expression to a specified type
-manage the alignments in the summary of your candidates
create a Java Program that will display this:
You are told that the Kruger National Park is giving away a 10% discount to children who are not more than 12 years old or senior citizens who are at least 65 years old. It is further stated that ONLY those who are visiting the Park for at least the 5th time will qualify for this discount.
1) Write your program in question (I) in such a way that method decideDiscount() can return a value to the calling method. The calling method will then display if a customer qualifies for a discount or not.
Write a program that takes as input the number of visitors and for each visitor takes the amount of money they have spent in last 5 days. The program must calculate the average expenses (i.e. per day) for each visitor. The program should output the approximately amount of money each visitor will need to stay next 15 days.
Show what happens when a variable defined outside a function has the same name as a local variable inside a function. Explain what happens to the value of each variable as the program runs.
Create a function that takes an argument. Give the function parameter a unique name. Show what happens when you try to use that parameter name outside the function. Explain the results.
Write a program, which removes all HTML tags and retains only the text inside them. The output should be written into the file Covid-21.txt.