Write a program to print a rectangle pattern of M rows and N columns using the characters as shown below.
+----------+
| |
| |
| |
+----------+
Write a python program which takes a number from the user and prints if it is positive, negative or 0, odd or even and if it is a multiple of 10.
Example 1:
Sample Input:
-70
Sample Output:
Negative even number which is a multiple of 10
Example 2:
Sample Input:
Sample Output:
Input is 0
Example 3:
Sample Input:
11
Sample Output:
Positive odd number which is not a multiple of 10
Write a python program that takes the weight of luggage from the user and prints the total amount the user needs to pay according to the given conditions:
Sample Input - Sample Output
Luggage Weight: 5 Payment: Tk. 200.25
Luggage Weight: 20 Payment: Tk. 701.0
Luggage Weight: 32 Weight crosses maximum limit
Write a Python code of a program that reads a candidate’s ielts score and prints out the corresponding CEFR level for that band score. The score ranges and corresponding CEFR level are shown in the table below.
(Hint: This problem can be solved in two ways: top-down and bottom-up.)
IELTS Score -CEFR Level
8.5-9 C2
7-8 C1
5.5-6.5 B2
4.5-5 B1
4 A2
0- below 4 A1
Example 1:
Sample Input:
IELTS Score: 6
Sample Output:
CEFR Level: B2
How to connect Java application with Oracle and Mysql database using JDBC? Explain the complete procedure to connect the form of your question #228421 into your database using Oracle or Mysql. [Please write the reason for writing that line at the end of each line in the form of comments (for coding).]
1.Create a Registration Form by using the following instructions:
Step 1: Create a Registration Form using Java Swing
a. Import Necessary Packages
b. Create a Frame using JFrameclass
c. Set Background color of the JFrame
d. Create JLabelfor Heading Text
e. Create a JLabel and JTextField for the name.
f. Create a JLabel and JTextField for Father’s Name
g. Create JLabel and JRadioButton for Gender
h. Create JLabel and JComboBox for Date of Birth
i. Create a JLabel and JTextArea for the Address
j. Create JLabel and JTextField for the Phone
k. Create JLabel and JTextField for the Email
l. Create a JCheckBox for Accepting License Agreement
m. Creating a JButton to Submit the Value
n. Change Font Style and Size for all the Components
o. Add all Components to the Container
p. Create a JTextArea for Output
Step 2: Add ActionListener to the Button
Add ActionListener on the Submit Button
Step 3: Read the value on the Registration Form
Read and display the value on the Registration form
Implement a simple chat system using Socket Programming (TCP Sockets).
a) your chat system includes two types of components
i) A chat room and
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) Chat room is long lived 'server' component and there is no GUI at server side.
d) All messages are to be broadcasted to all clients connected to the chat room.
[ Please write the reason for writing that line at the end of each line in the form of comments ]
Create a program in Python to calculate grade point averages for college students. Grade point averages are calculated by dividing total number of quality points by the total number of earned credit hours. Quality points are grades earned multiplied by the credit hours of a course. A grade of A is worth 4 points, B is 3 points, C is 2 points, D is 1 point and an F is 0 points.
Your program should prompt the student to enter their name, total credit hours earned, and total quality points earned. Calculate the grade point average and display back the student’s name along with their gpa for my example of John Doe.
Hi John Doe. Your grade point average is 3.30.