Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

Question 2


Write a Python program to check whether a given date is valid date or not and to out put the following.

• If the date is valid then the message “Date is Valid” otherwise the message “Date is Invalid”.

• If the date is a valid date, then the next date.

Hint: Follow the following steps.

(NOTE: You are not allowed to use any Python built-in functions.)

• Get the inputs Year, Month, and Date separately.

• Use selection statements, i.e., if-else statements to check if the Date, Month, and the Year are valid.

• if the date is a valid date, then print the next date (Increment the date).


Write a program that reads the numbers and sorts them by using the Counting Sort algorithm and finally search a number from that array using Linear Search Algorithm.

Input: 3 6 5 4 7 8 9

 Search Item: 7

Output: Sorted Array: 3 4 5 6 7 8 9

 Search item 7 is found.


The administrator will log in to the system using their admin usernames and passwords. They will then be given an option of making a cash deposit for normal users, create an account for new users and also be able to change their own administrator passwords.


1. Administrators should be able to do all the 4 minimum roles stated, which are:

a. Login to the system

b. Deposit money for client

c. Register a new Client

d. Change their own admin password from the default


2. Normal users should be able to do all the 4 minimum roles stated, which are:

a. Login to the system

b. Withdraw cash

c. Check their account balance

d. Change their own use passwords from the one they were registered with

3. Develop and correctly implement an algorithm that will enable the administrator to store user details in a local database file, usersDB.txt .



Write a program that reads the numbers and sorts them by using the Counting Sort algorithm and finally search a number from that array using Linear Search Algorithm.



Input: 3 6 5 4 7 8 9



Search Item: 7



Output: Sorted Array: 3 4 5 6 7 8 9



Search item 7 is found.

Given an array arr[] sorted in ascending order of size N and an integer K. Check if K is present in the array or not. (Use Binary Search) Input: N = 5 K = 6 arr[] = {1,2,3,4,6} Output: 1

Explanation: Since, 6 is present in the array at index 4 (0-based indexing), output is 1 


Write a program that reads the numbers and sorts them by using the Counting Sort algorithm and finally search a number from that array using Linear Search Algorithm. 8 Input: 3 6 5 4 7 8 9 Search Item: 7 Output: Sorted Array: 3 4 5 6 7 8 9 Search item 7 is found.


Write a C program to implement Queue operations such as enqueue, dequeue and display using linked list. 


Write a Java program that will ask the user to enter a string then copy the given string to  a char array(array of characters; please see sample code below).  The program will then  swap the first and last word in char array and store the result in another char array.

The program should also meet the following requirements:

·        It will display the original string and the new string(after swapping).

·        It will display the first and last word.

·        Use of StringBuffer, StringBuilder, and String class after the string  was copied to an array of characters is not allowed.

·        Use of any String, StringBuilder, StringBuffer, and Array method is not allowed.

·        It should execute for as long as the user wants to continue.

·        Create and use this method in your program:

        displayArray()

        {

            //display array   

        }


Spirit Level, Thermometer, Countdown Timer:

skeleton functions will be provided to you to complete the code within them. 3.1 Spirit level Firstly, you will need to write a function: int average(int *array, int nLen);


which returns the average value of an array of integer values. (To prevent overflow, it is suggested to use a long internal variable).


The Spirit Level function will run a loop. For each iteration, the Z-component of gravitational acceleration will be sampled four times at 50ms intervals and stored in a suitably sized array.


Using the average()function you have written, determine the average value of the 4 Zvalue samples and analyze it. The green LED should be illuminated if the board is flat. The yellow LED should be illuminated if the board is at a slight angle. The red LED should be illuminated if the board is at a steep angle. The loop can be exited by pressing and holding S2. 


Display the total amount per section code and the overall total


4. At the end of each event five (5) lucky customers are randomly chosen from the name


array to win daily prizes. Call a function to accomplish this.


5. Display the names of the five lucky winners.(15

LATEST TUTORIALS
APPROVED BY CLIENTS