Sangeeta is a Python programmer working in a computer hardware company. She has to maintain the records of the peripheral devices. She created a csv file named Peripheral.csv to store the details. Structure of Peripheral.csv:
\begin{tabular}{|c|c|c|} \hline \textbf{P\_id} & \textbf{P\_name} & \textbf{Price} \\ \hline \end{tabular}
P\_id is the Peripheral device ID (integer).P\_name is the Peripheral device name (string).Price is the Peripheral device price (integer).Sangeeta wants to write the following user-defined functions:
Add\_Device(): To accept a record from the user and add it to the CSV file, Peripheral.csv.Count\_Device(): To count and display the number of peripheral devices whose price is less than 1000.Use csv.writer to write data to a CSV file and csv.reader to read data from a CSV file. Handle exceptions for invalid or header rows when processing numeric values.
The Add_Device() function:
Peripheral.csv in append mode.csv.writer().
The Count_Device() function:
Peripheral.csv in read mode.
Reactant ‘A’ underwent a decomposition reaction. The concentration of ‘A’ was measured periodically and recorded in the table given below:
Based on the above data, predict the order of the reaction and write the expression for the rate law.
Balance Sheet of Atharv and Anmol as at 31st March, 2024
| Liabilities | Amount (₹) | Assets | Amount (₹) |
|---|---|---|---|
| Capitals: | Fixed Assets | 14,00,000 | |
| Atharv | 8,00,000 | Stock | 4,90,000 |
| Anmol | 4,00,000 | Debtors | 5,60,000 |
| General Reserve | 3,50,000 | Cash | 10,000 |
| Creditors | 9,10,000 | ||
| Total | 24,60,000 | Total | 24,60,000 |