logo

Crowdly

In24-S1-CS1033 - Programming Fundamentals

Шукаєте відповіді та рішення тестів для In24-S1-CS1033 - Programming Fundamentals? Перегляньте нашу велику колекцію перевірених відповідей для In24-S1-CS1033 - Programming Fundamentals в online.uom.lk.

Отримайте миттєвий доступ до точних відповідей та детальних пояснень для питань вашого курсу. Наша платформа, створена спільнотою, допомагає студентам досягати успіху!

L9.E1.Part 02

When you connect a load (RL) to the output of a voltage divider, the output voltage can change because the load resistor (RL) is effectively in parallel with the resistor (R2) in the voltage divider circuit.

Image failed to load

New Output Voltage (Vnew) is given by,

Where,

You need to,

  • Generate a plot showing how the output voltage (Vnew) varies with load resistance (RL) from 10 to 1000 ohms. (Use a step size of 10 ohms ) 

  • Then Submit your generated plot.

  • Example plot 

Image failed to load

Note: You must plot and submit the graphs. If you do not submit, then the submission will be incomplete and will not be accepted.

Переглянути це питання

L9.E1.Part 02

When you connect a load (RL) to the output of a voltage divider, the output voltage can change because the load resistor (RL) is effectively in parallel with the resistor (R2) in the voltage divider circuit.

Image failed to load

New Output Voltage (Vnew) is given by,

Where,

You need to,

  • Generate a plot showing how the output voltage (Vnew) varies with load resistance (RL) from 10 to 1000 ohms. (Use a step size of 10 ohms ) 

  • Then Submit your generated plot.

  • Example plot 

Image failed to load

Note: You must plot and submit the graphs. If you do not submit, then the submission will be incomplete and will not be accepted.

Переглянути це питання

L9.E1.Part 02

When you connect a load (RL) to the output of a voltage divider, the output voltage can change because the load resistor (RL) is effectively in parallel with the resistor (R2) in the voltage divider circuit.

Image failed to load

New Output Voltage (Vnew) is given by,

Where,

You need to,

  • Generate a plot showing how the output voltage (Vnew) varies with load resistance (RL) from 10 to 1000 ohms. (Use a step size of 10 ohms ) 

  • Then Submit your generated plot.

  • Example plot 

Image failed to load

Note: You must plot and submit the graphs. If you do not submit, then the submission will be incomplete and will not be accepted.

Переглянути це питання
 Exercise L9.E2

You are provided with a file named contamination_analysis.txt. This file contains details regarding a contamination analysis ( The process of finding unwanted chemical compounds in a certain material) carried out for a set of chemicals by a lab. 

A set of chemical names and the molecular structure of the contaminant in each chemical is given in the file. 

Example input file (contamination_analysis.txt) :

ABC/D/12    C6-H5-Cl3-Na

DE/W/45     C7-S-O4-Na

MLI/85/9    C6-H6-S-O3-Mg

QT/36/X     C4-Cl3-O3-Cl3-O2

AL/2T/B     C2-N-H4-Na

PP/L2/28    C6-S-O8-Na-H2-Cl3

  • Each line of the input file has a chemical name and the molecular formula of the contaminant found in the chemical ( ABC/D/12 is the chemical name, and C6-H5-Cl3-Na is the molecular formula for the contaminant in the chemical ABC/D/12 ).

  • The number of chemicals in an input file can vary. The example input file has details regarding 6 chemicals but the input files in test cases can have up to 10 chemicals in a file.

You need to categorize each chemical in the input files based on the contaminant  in the chemical. The following criteria should be followed for categorizing chemicals.

Criteria:

  1. The chemical is categorized as ‘Level_1’ if the contaminant contains;

                  a. One  ‘S’ molecule and,

                  b. Four ‘O’ molecules and,

                  c. One ‘Na’ molecule 

  1. The chemical is categorized as ‘Level_2’ if the contaminant contains;

                  a. One  ‘S’ molecule and,

                  b. Three ‘O’ molecules and,

                  c. One ‘Mg’ molecule 

       3.The chemical is categorized as ‘Level_3’ if the contaminant contains;

                  a. Two  ‘O’ molecules and,

                  b. Three ‘Cl’ molecules 

        4. If any contaminant belongs to more than one category above then the chemical is  categorized as ‘Level_4’.

        5.If the contaminant doesn’t belong to any of the above categories then the chemical is categorized as ‘Level_0.txt’.

Note : When categorizing, give priority to the order of the criteria.

Ex: If the contaminant has (C6-S-O3-Na-O2-Mg)

  • One ‘S’
  • Six ‘C’ s
  • Five ‘O’ s
  • One ‘Na’
  • One ‘Mg’

Then the category is Level_1. Because after we categorized it to Level_1 the left molecules are

  • Six ‘C’ s
  • One ‘O’
  • One ‘Mg'
The leftover molecules cannot form Level_2.

Please submit the flowchart diagram that illustrates the algorithm of your program here.

Переглянути це питання

L9.E1.Part 02

When you connect a load (RL) to the output of a voltage divider, the output voltage can change because the load resistor (RL) is effectively in parallel with the resistor (R2) in the voltage divider circuit.

Image failed to load

New Output Voltage (Vnew) is given by,

Where,

You need to,

  • Generate a plot showing how the output voltage (Vnew) varies with load resistance (RL) from 10 to 1000 ohms. (Use a step size of 10 ohms ) 

  • Then Submit your generated plot.

  • Example plot 

Image failed to load

Note: You must plot and submit the graphs. If you do not submit, then the submission will be incomplete and will not be accepted.

Переглянути це питання

Which of the following statement is NOT correct with respect to main memory?

Переглянути це питання

The Accumulator is a special register in the CPU which is used to,

Переглянути це питання

Which of the following is NOT a component of the System Bus?

50%
0%
0%
Переглянути це питання

Which part of a CPU instruction specifies the operation to be carried out?

50%
0%
0%
Переглянути це питання

The CPU instruction has the format of  LOAD B,<Address>  where <adresss> refers to an address of a memory location.  Which of the following is NOT true regarding the instruction cycle associated with its operation.

Переглянути це питання

Хочете миттєвий доступ до всіх перевірених відповідей на online.uom.lk?

Отримайте необмежений доступ до відповідей на екзаменаційні питання - встановіть розширення Crowdly зараз!