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

Write a menu driven program to perform the following operations in a header linked list by using suitable user defined functions for each case. The head node keeps the count of the total number of nodes in the list. The data node keeps the student information: Name, Roll No, CGPA, Address_City, Branch.


1. Create

2. Display student information

3. Display the total number of nodes (in O(1) time)

4. Display the student's details belonging to a particular branch

5. Display the student's details securing > 7.5 CGPA and belonging to a given branch.


How to connect Java application with and Mysql database using JDBC?


Striped Rectangle

Given an integer number M, N as input. Write a program to print a striped rectangular pattern of M rows and N columns using (+ and -) character.

Input

The first line of input is an integer M. The second line of input is an integer N.

Explanation

In the given example the striped rectangular pattern of

7 rows and 5 columns. Therefore, the output should be

+ + + + +

- - - -

+ + + + +

- - - - -

+ + + + +

- - - - -

+ + + + +


Sample Input 1

5

7

Sample Output 1

+ + + + + + +

- - - - - - -

+ + + + + + +

- - - - - - -

+ + + + + + +

Sample Input 2

7

5

Sample Output 2

+ + + + +

- - - - -

+ + + + +

- - - - -

+ + + + +

- - - - -

+ + + + +




Composite Number

Given an integer N, write a program to find if the given number is a composite number or not. If it is composite, print True or else print False.

Input

The first line of input is an integer N.

Output

The output should be True or False.

Explanation

In the given example,

12 is a composite number as it can be divisible by 1, 2, 3, 4, 6, 12.Therefore, the output should be

True.

Sample Input 1

12

Sample Output 1

True

Sample Input 2

3

Sample Output 2

False




Sum of Odd Numbers

Write a program to find the sum of odd numbers in first N natural numbers.

Input

The input is an integer N.

Output

The output should be an integer containing the sum of odd numbers up to the given number.

Explanation

In the given example sum of odd numbers less than

N = 10 are total = 1 + 3 + 5 + 7 + 9

So, the output should be

25.

Sample Input 1

10

Sample Output 1

25

Sample Input 2

5

Sample Output 2

9




Sum of Even numbers

Write a program to find the sum of even numbers in first N natural numbers.

Input

The input is an integer N.

Output

The output should be an integer containing the sum of even numbers upto the given number.

Explanation

In the given example

N = 5, the even natural numbers below 5 are 2, 4 Then total = 2 + 4

So, the output should be

6.

Sample Input 1

5

Sample Output 1

6

Sample Input 2

4

Sample Output 2

6




Implement simple system using Socket Programming Sockets). your chat system includes two types of components i) A chat room and a) ii) The client b) System contains maximum 3 clients, each can enter or leave the system at any time and one can design GUI as given in Figure. c) server side. d) All messages are to be broadcasted to all clients connected to the chat room.
Implement simple system using Socket Programming Sockets). your chat system includes two types of components i) A chat room and a) ii) The client b) System contains maximum 3 clients, each can enter or leave the system at any time and one can design GUI as given in Figure. c) server side. d) All messages are to be broadcasted to all clients connected to the chat room.

 As the Internet has expanded, we have run out of IP addresses. Outline TWO ways how this problem has been overcome.


You will be tasked to write this program in either C++ or Java, whichever you feel more comfortable with.
The goal is for the program to be able to guess the user's political party before they reach the end of the survey. This will require your program to gather a substantial amount of data before it can make accurate guesses. In particular:

6. At the end of the assignment, you should submit a program that simply surveys a user and guesses their political party. The more advanced your program is, the faster and more accurately it will guess the user's political party affiliation.
LATEST TUTORIALS
APPROVED BY CLIENTS