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

Temperature Conversion
You are given the temperature T of an object in one of Celsius, Fahrenheit, and Kelvin scales.
Write a program to print T in all scales viz Celsius, Fahrenheit, and Kelvin.
Formula to convert from Fahrenheit F to Celsius C is C = (F - 32) * 5 / 9.
Formula to convert from Kelvin K to Celsius C is C = K - 273.
Here "C", "F", "K" represent that the temperature scale is in Celsius, Fahrenheit and Kelvin scales respectively.
The input contains the temperature (a number) and the unit of the temperature scale (C, F, K) without any space.
The output contains temperature in Celsius, Fahrenheit and Kelvin scales in each line in the format similar to input and the value of the temperature is rounded to 2 decimal places.

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.

  • Hint: Odd numbers cannot be 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:

  • The user has to pay Tk.200 if the weight is 10kg or less.
  • The user has to pay Tk.200 and an additional Tk.50 for every 1kg over 10kg.
  • Service charges is 5% of the total weight.
  • Maximum weight of luggage is 30kg.

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

  • Note: If the user gives a score that is above 9 or below 0, you should print “Invalid score”.

Example 1:

Sample Input:

IELTS Score: 6

Sample Output:

CEFR Level: B2





Write the SQL commands that represent the following: Suppose you have created a table called Player. And the DBA asked you to edit the table and restrict the values of a field called "wins the Ballon Dor" to "Yes" or "No". Which means the data to be inserted in this field must be yes or no only.

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.   


LATEST TUTORIALS
APPROVED BY CLIENTS