Implement an application (a system) of any abstract data type (stack, tree, graph, hashing) using Java as programming language. Some of the examples are the following:
• Dictionary implementation using AVL Tree
• Log-book for Task Monitoring
Administrative Controls. o Adding / Removing Trains o Approving or Confirming Tickets o Cancelling Trains and Tickets o Reporting Delays. o Selling Tickets o Storing Passengers Information o Safely accessing the system using passwords encrypted.
Ticket Reservation • Trains Information Regarding Delays. • Virtual Payment Module • Ticket Vending Machines • Ticket Cancellation Module with a custom defined Refund Policy • Trains Information with multiple trains for same routes. • Administrative Controls. o Adding / Removing Trains o Approving or Confirming Tickets o Cancelling Trains and Tickets o Reporting Delays. o Selling Tickets o Storing Passengers Information o Safely accessing the system using passwords encrypted.
Write a python program with algorithm/flowchart to find sum of the following series for n terms: 1 – 1/2 + 1/3.....+1/n × (-1)^(n-1).
def concatenate(ws:list, n:int):
what is ws:list and n:int
Wedding Game
In a wedding that you are attending, there are some chairs that have digits inscribed at their
backs. The chairs are lined in a row such that they form a string of the digits. Find the
minimum number of sets M that can be formed from these digits such that:
1. The number of digits in each set is one or more than one.
2. Each set is formed using consecutive digits and no digit can be used more than once.
3. In each set, the number formed using the digits is less than or equal to Y.
Input Specification:
input1: S, string of digits
input2: Y, No number should be greater than Y
input3: Size of the String S
Output Specification:
Your function should return M, the minimum number of sets
Example 1:
input1: "1234"
Implement this program by using User-defined functions and Structures
Write a program that reads students’ names followed by their test scores. The program should output each student’s name followed by the test scores and the relevant grade. It should also find and print the highest test score and the name of the students having the highest test score. Student data should be stored in a struct variable of type studentType, which has four components: studentFName and studentLName of type string, testScore of type int (testScore is between 0 and 100), and grade of type char. Suppose that the class has 20 students. Use an array of 20 components of type studentType.
Your program must contain at least the following functions:
1. A function to read the students’ data into the array.
2. A function to assign the relevant grade to each student.
3. A function to find the highest test score.
4. A function to print the names of the students having the highest test score.
An E-Commerce commerce company plans to give their customers a discount for the New Years holiday. The discount will be calculated based on the bill amount of the order placed. The discount amount is the product of the sum of all odd digits and the sum of even digits of the customer’s total bill amount. If no odd digit is present in the bill amount, then 0 will be consider for its corresponding sum.
Write an algorithm to find the discount amount for the given total bill amount.
Given the following list: B E A D C F H G
Apply selection sort AND merge sort to sort the list in ascending order. Show all the insertion steps for each data.
by CodeChum Admin
We've already tried printing out the values of an array in reversed order, right? Today, we shall compute for the squares of all the numbers.
There's already a predefined array/list containing 100 integer values. Loop through each values, compute their squares, and display them.