you will load the training and test sentiment datasets "twitdata_TEST.tsv" and "allTrainingData.tsv". The data should be loaded into 4 lists of strings: X_txt_train, X_txt_test, y_test, y_train.
Salt is often used to melt ice and snow on roads in the winter and the temperature right now is -4.500°C. How much NaCl (complete dissociation) would be necessary to melt 1000kg of ice by bringing down the freezing temperature to -4.500°C?
SWAP CASE:
Explantion:
In the first example S=abc and T=acb.Arjun can swap the 2nd and 3rd characters of S to make S and T equal.Hence ,the output is Yes
i/p:
abc
acb
o/p:Yes
Your task is to implement the class Loan with the following requirements:
• A member variable that will hold the annual interest rate of the loan. Its default value will be 2.5.
• A member variable that will hold the number of years for the loan. Its default value will be 1.
• A member variable that will hold the loan amount. Its default variable will be 1000.
• A default constructor.
• Another constructor that has interest rate, years, and loan amount as its parameters.
• A member function that returns the annual interest rate of this loan.
• A member function that returns the number of the years of this loan.
• A member function that returns the amount of this loan.
• A member function that sets a new annual interest rate to this loan.
• A member function that sets a new number of years to this loan.
• A member function that sets a new amount to this loan.
• A member function that returns the monthly payment of this loan.
• A member function that returns the total payment of this loan.
A force of 230N exist between two identical point charges of 56uC. Calculate the distance of the two point charge.
1. A 10uC point charge is separated by the distance of 28cm from 18uC charge. Calculate the magnitude and electrical force between two charges.
2. The electrical force between two point charges with the magnitude of 300uC and 500uc is 24N. How far apart are two charges?
A solution 2 g nonelectrolyte solute in 0.200 kg water boils at 102C. What is the molar mass of the solute added?
(Hardware Inventory) You are the owner of the hardware store and need to keep an inventory that can tell you what different tools you have, how many of each you have on hand and the cost of each one. Write a program that lets you input the data concerning each tool, enables you to list all your tools, lets you delete a record for a tool that you no longer have and lets you update any information in the file. The tool identification number should be the record number. Use the following information to start your file.
RECORD#
TOOL NAME
QUANTITY
COST
3
Electric Sander
7
57.98
17
Hammer
76
11.99
24
Jig Saw
21
11.00
39
Lawn Mower
3
79.50
56
Power Saw
18
99.99
68
Screwdriver
106
6.99
77
Sledge Hammer
11
21.50
83
Wrench
34
7.50
Calculate the amount of energy (in KJ) needed to heat 346 gram of liquid water from 0 °C to 182 °C. Assume that the specific heat of water is 4.184 J/g °C over the entire liquid range and the specific heat of stream is 1.99 J/g °C
FOR EXAMPLE:
C3H6O + 4O2 → 3CO2 + 3H2O ∆H=-1790kJ
Using 1 mole of C3H6O: -1790kJ
Using 2 moles of C3H6O: 2(-1790kJ)
Consider the information above on the combustion of acetone. Solve
the following problem involving the Enthalpy of Chemical Reactions. Show yours solutions. You may refer to the lecture notes for sample problems.
Calculate the amount of heat released during the combustion of
a. 0.75 mole of C3H6O
b. 120g of C3H6O