Skip to content
Snippets Groups Projects
Commit 5265af0b authored by Karthik M's avatar Karthik M
Browse files

first commit open lab projects

parents
No related branches found
No related tags found
No related merge requests found
Pipeline #197 failed
<?xml version="1.0" encoding="UTF-8"?>
<module type="PYTHON_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
<component name="TestRunnerService">
<option name="PROJECT_TEST_RUNNER" value="Unittests" />
</component>
</module>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.5.0 (C:\Python350\python.exe)" project-jdk-type="Python SDK" />
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/Python-OpenLab.iml" filepath="$PROJECT_DIR$/.idea/Python-OpenLab.iml" />
</modules>
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ChangeListManager">
<list default="true" id="d49a514a-145b-4f5e-b4d5-4e94d0726c1c" name="Default" comment="" />
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
<option name="TRACKING_ENABLED" value="true" />
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
<option name="LAST_RESOLUTION" value="IGNORE" />
</component>
<component name="CoverageDataManager">
<SUITE FILE_PATH="coverage/Python_OpenLab$lab3_q5.coverage" NAME="lab3-q5 Coverage Results" MODIFIED="1544504641719" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" />
<SUITE FILE_PATH="coverage/Python_OpenLab$lab4_q1_file_handling.coverage" NAME="lab4-q1-file-handling Coverage Results" MODIFIED="1545109724715" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" />
<SUITE FILE_PATH="coverage/Python_OpenLab$lab3_q2.coverage" NAME="lab3-q2 Coverage Results" MODIFIED="1544504480163" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" />
<SUITE FILE_PATH="coverage/Python_OpenLab$lab4_pylab.coverage" NAME="lab4-pylab Coverage Results" MODIFIED="1545108580081" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" />
<SUITE FILE_PATH="coverage/Python_OpenLab$lab3_q4.coverage" NAME="lab3-q4 Coverage Results" MODIFIED="1544504550584" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" />
<SUITE FILE_PATH="coverage/Python_OpenLab$lab3_q3.coverage" NAME="lab3-q3 Coverage Results" MODIFIED="1544504277925" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" />
<SUITE FILE_PATH="coverage/Python_OpenLab$lab4_matplotlib.coverage" NAME="lab4-matplotlib Coverage Results" MODIFIED="1545107731290" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" />
<SUITE FILE_PATH="coverage/Python_OpenLab$lab4_bargraph_multicolor.coverage" NAME="lab4-bargraph-multicolor Coverage Results" MODIFIED="1545109366341" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" />
<SUITE FILE_PATH="coverage/Python_OpenLab$lab3_q1.coverage" NAME="lab3-q1 Coverage Results" MODIFIED="1544504432627" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" />
</component>
<component name="FileEditorManager">
<leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
<file leaf-file-name="lab3-q3.py" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/lab3-q3.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="87">
<caret line="21" column="51" lean-forward="false" selection-start-line="21" selection-start-column="51" selection-end-line="21" selection-end-column="51" />
<folding />
</state>
</provider>
</entry>
</file>
<file leaf-file-name="lab3-q5.py" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/lab3-q5.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="204">
<caret line="12" column="10" lean-forward="false" selection-start-line="12" selection-start-column="10" selection-end-line="12" selection-end-column="10" />
<folding />
</state>
</provider>
</entry>
</file>
<file leaf-file-name="lab4-q1-file-handling.py" pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/lab4-q1-file-handling.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="104">
<caret line="47" column="20" lean-forward="false" selection-start-line="47" selection-start-column="20" selection-end-line="47" selection-end-column="20" />
<folding>
<element signature="e#0#10#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
</file>
<file leaf-file-name="lab4-bargraph-multicolor.py" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/lab4-bargraph-multicolor.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="104">
<caret line="16" column="0" lean-forward="false" selection-start-line="16" selection-start-column="0" selection-end-line="24" selection-end-column="31" />
<folding>
<element signature="e#47#65#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
</file>
<file leaf-file-name="lab4-pylab.py" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/lab4-pylab.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="204">
<caret line="12" column="26" lean-forward="true" selection-start-line="12" selection-start-column="26" selection-end-line="12" selection-end-column="26" />
<folding>
<element signature="e#0#26#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
</file>
<file leaf-file-name="lab4-matplotlib.py" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/lab4-matplotlib.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="204">
<caret line="12" column="19" lean-forward="true" selection-start-line="12" selection-start-column="19" selection-end-line="12" selection-end-column="19" />
<folding>
<element signature="e#0#32#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
</file>
<file leaf-file-name="lab4-input-emp.txt" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/lab4-input-emp.txt">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="51">
<caret line="3" column="24" lean-forward="false" selection-start-line="3" selection-start-column="24" selection-end-line="3" selection-end-column="24" />
<folding />
</state>
</provider>
</entry>
</file>
<file leaf-file-name="lab4-output-emp.txt" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/lab4-output-emp.txt">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="85">
<caret line="5" column="0" lean-forward="false" selection-start-line="5" selection-start-column="0" selection-end-line="5" selection-end-column="0" />
<folding />
</state>
</provider>
</entry>
</file>
</leaf>
</component>
<component name="FileTemplateManagerImpl">
<option name="RECENT_TEMPLATES">
<list>
<option value="Python Script" />
</list>
</option>
</component>
<component name="IdeDocumentHistory">
<option name="CHANGED_PATHS">
<list>
<option value="$PROJECT_DIR$/q1.py" />
<option value="$PROJECT_DIR$/lab3-q1.py" />
<option value="$PROJECT_DIR$/lab3q2.py" />
<option value="$PROJECT_DIR$/lab3-q4.py" />
<option value="$PROJECT_DIR$/lab3-q5.py" />
<option value="$PROJECT_DIR$/lab3-q2.py" />
<option value="$PROJECT_DIR$/lab4-input-grades.txt" />
<option value="$PROJECT_DIR$/lab3-q3.py" />
<option value="$PROJECT_DIR$/lab4-input-emp.txt" />
<option value="$PROJECT_DIR$/lab4-output-emp.txt" />
<option value="$PROJECT_DIR$/lab4-matplotlib.py" />
<option value="$PROJECT_DIR$/lab4-pylab.py" />
<option value="$PROJECT_DIR$/lab4-bargraph-multicolor.py" />
<option value="$PROJECT_DIR$/lab4-q1-file-handling.py" />
</list>
</option>
</component>
<component name="JsBuildToolGruntFileManager" detection-done="true" sorting="DEFINITION_ORDER" />
<component name="JsBuildToolPackageJson" detection-done="true" sorting="DEFINITION_ORDER" />
<component name="JsGulpfileManager">
<detection-done>true</detection-done>
<sorting>DEFINITION_ORDER</sorting>
</component>
<component name="ProjectFrameBounds" extendedState="6">
<option name="x" value="-34" />
<option name="y" value="-16" />
<option name="width" value="1346" />
<option name="height" value="688" />
</component>
<component name="ProjectView">
<navigator currentView="ProjectPane" proportions="" version="1">
<flattenPackages />
<showMembers />
<showModules />
<showLibraryContents />
<hideEmptyPackages />
<abbreviatePackageNames />
<autoscrollToSource />
<autoscrollFromSource />
<sortByType />
<manualOrder />
<foldersAlwaysOnTop value="true" />
</navigator>
<panes>
<pane id="Scope" />
<pane id="ProjectPane">
<subPane>
<expand>
<path>
<item name="Python-OpenLab" type="b2602c69:ProjectViewProjectNode" />
<item name="Python-OpenLab" type="462c0819:PsiDirectoryNode" />
</path>
</expand>
<select />
</subPane>
</pane>
<pane id="Scratches" />
</panes>
</component>
<component name="PropertiesComponent">
<property name="WebServerToolWindowFactoryState" value="false" />
<property name="settings.editor.selected.configurable" value="com.jetbrains.python.configuration.PyActiveSdkModuleConfigurable" />
</component>
<component name="RunDashboard">
<option name="ruleStates">
<list>
<RuleState>
<option name="name" value="ConfigurationTypeDashboardGroupingRule" />
</RuleState>
<RuleState>
<option name="name" value="StatusDashboardGroupingRule" />
</RuleState>
</list>
</option>
</component>
<component name="RunManager" selected="Python.lab4-q1-file-handling">
<configuration name="lab3-q5" type="PythonConfigurationType" factoryName="Python" temporary="true">
<option name="INTERPRETER_OPTIONS" value="" />
<option name="PARENT_ENVS" value="true" />
<envs>
<env name="PYTHONUNBUFFERED" value="1" />
</envs>
<option name="SDK_HOME" value="" />
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
<option name="IS_MODULE_SDK" value="true" />
<option name="ADD_CONTENT_ROOTS" value="true" />
<option name="ADD_SOURCE_ROOTS" value="true" />
<module name="Python-OpenLab" />
<EXTENSION ID="PythonCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" runner="coverage.py" />
<option name="SCRIPT_NAME" value="$PROJECT_DIR$/lab3-q5.py" />
<option name="PARAMETERS" value="" />
<option name="SHOW_COMMAND_LINE" value="false" />
<option name="EMULATE_TERMINAL" value="false" />
</configuration>
<configuration name="lab4-bargraph-multicolor" type="PythonConfigurationType" factoryName="Python" temporary="true">
<option name="INTERPRETER_OPTIONS" value="" />
<option name="PARENT_ENVS" value="true" />
<envs>
<env name="PYTHONUNBUFFERED" value="1" />
</envs>
<option name="SDK_HOME" value="" />
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
<option name="IS_MODULE_SDK" value="true" />
<option name="ADD_CONTENT_ROOTS" value="true" />
<option name="ADD_SOURCE_ROOTS" value="true" />
<module name="Python-OpenLab" />
<EXTENSION ID="PythonCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" runner="coverage.py" />
<option name="SCRIPT_NAME" value="$PROJECT_DIR$/lab4-bargraph-multicolor.py" />
<option name="PARAMETERS" value="" />
<option name="SHOW_COMMAND_LINE" value="false" />
<option name="EMULATE_TERMINAL" value="false" />
</configuration>
<configuration name="lab4-matplotlib" type="PythonConfigurationType" factoryName="Python" temporary="true">
<option name="INTERPRETER_OPTIONS" value="" />
<option name="PARENT_ENVS" value="true" />
<envs>
<env name="PYTHONUNBUFFERED" value="1" />
</envs>
<option name="SDK_HOME" value="" />
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
<option name="IS_MODULE_SDK" value="true" />
<option name="ADD_CONTENT_ROOTS" value="true" />
<option name="ADD_SOURCE_ROOTS" value="true" />
<module name="Python-OpenLab" />
<EXTENSION ID="PythonCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" runner="coverage.py" />
<option name="SCRIPT_NAME" value="$PROJECT_DIR$/lab4-matplotlib.py" />
<option name="PARAMETERS" value="" />
<option name="SHOW_COMMAND_LINE" value="false" />
<option name="EMULATE_TERMINAL" value="false" />
</configuration>
<configuration name="lab4-pylab" type="PythonConfigurationType" factoryName="Python" temporary="true">
<option name="INTERPRETER_OPTIONS" value="" />
<option name="PARENT_ENVS" value="true" />
<envs>
<env name="PYTHONUNBUFFERED" value="1" />
</envs>
<option name="SDK_HOME" value="" />
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
<option name="IS_MODULE_SDK" value="true" />
<option name="ADD_CONTENT_ROOTS" value="true" />
<option name="ADD_SOURCE_ROOTS" value="true" />
<module name="Python-OpenLab" />
<EXTENSION ID="PythonCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" runner="coverage.py" />
<option name="SCRIPT_NAME" value="$PROJECT_DIR$/lab4-pylab.py" />
<option name="PARAMETERS" value="" />
<option name="SHOW_COMMAND_LINE" value="false" />
<option name="EMULATE_TERMINAL" value="false" />
</configuration>
<configuration name="lab4-q1-file-handling" type="PythonConfigurationType" factoryName="Python" temporary="true">
<option name="INTERPRETER_OPTIONS" value="" />
<option name="PARENT_ENVS" value="true" />
<envs>
<env name="PYTHONUNBUFFERED" value="1" />
</envs>
<option name="SDK_HOME" value="" />
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
<option name="IS_MODULE_SDK" value="true" />
<option name="ADD_CONTENT_ROOTS" value="true" />
<option name="ADD_SOURCE_ROOTS" value="true" />
<module name="Python-OpenLab" />
<EXTENSION ID="PythonCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" runner="coverage.py" />
<option name="SCRIPT_NAME" value="$PROJECT_DIR$/lab4-q1-file-handling.py" />
<option name="PARAMETERS" value="" />
<option name="SHOW_COMMAND_LINE" value="false" />
<option name="EMULATE_TERMINAL" value="false" />
</configuration>
<list size="5">
<item index="0" class="java.lang.String" itemvalue="Python.lab3-q5" />
<item index="1" class="java.lang.String" itemvalue="Python.lab4-q1-file-handling" />
<item index="2" class="java.lang.String" itemvalue="Python.lab4-matplotlib" />
<item index="3" class="java.lang.String" itemvalue="Python.lab4-pylab" />
<item index="4" class="java.lang.String" itemvalue="Python.lab4-bargraph-multicolor" />
</list>
<recent_temporary>
<list size="5">
<item index="0" class="java.lang.String" itemvalue="Python.lab4-q1-file-handling" />
<item index="1" class="java.lang.String" itemvalue="Python.lab4-bargraph-multicolor" />
<item index="2" class="java.lang.String" itemvalue="Python.lab4-pylab" />
<item index="3" class="java.lang.String" itemvalue="Python.lab4-matplotlib" />
<item index="4" class="java.lang.String" itemvalue="Python.lab3-q5" />
</list>
</recent_temporary>
</component>
<component name="ShelveChangesManager" show_recycled="false">
<option name="remove_strategy" value="false" />
</component>
<component name="TaskManager">
<task active="true" id="Default" summary="Default task">
<changelist id="d49a514a-145b-4f5e-b4d5-4e94d0726c1c" name="Default" comment="" />
<created>1544498890253</created>
<option name="number" value="Default" />
<option name="presentableId" value="Default" />
<updated>1544498890253</updated>
</task>
<servers />
</component>
<component name="ToolWindowManager">
<frame x="-8" y="-8" width="1382" height="744" extended-state="6" />
<editor active="true" />
<layout>
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.24304539" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
<window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
<window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="true" content_ui="tabs" />
<window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
<window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
<window_info id="Python Console" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.29968455" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
<window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
<window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
<window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="true" content_ui="tabs" />
<window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.39905363" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
<window_info id="Data View" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
<window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
<window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
<window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
<window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
<window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
<window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
<window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
<window_info id="Concurrent Activities Diagram" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.329653" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
</layout>
</component>
<component name="TypeScriptGeneratedFilesManager">
<option name="version" value="1" />
</component>
<component name="VcsContentAnnotationSettings">
<option name="myLimit" value="2678400000" />
</component>
<component name="XDebuggerManager">
<breakpoint-manager>
<default-breakpoints>
<breakpoint type="python-exception">
<properties notifyOnTerminate="true" exception="BaseException">
<option name="notifyOnTerminate" value="true" />
</properties>
</breakpoint>
</default-breakpoints>
</breakpoint-manager>
<watches-manager />
</component>
<component name="editorHistoryManager">
<entry file="file://$PROJECT_DIR$/lab3-q3.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="0">
<caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/lab3-q5.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="527">
<caret line="31" column="30" lean-forward="true" selection-start-line="31" selection-start-column="30" selection-end-line="31" selection-end-column="30" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/q1.py" />
<entry file="file://$PROJECT_DIR$/lab3-q1.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="51">
<caret line="3" column="9" lean-forward="true" selection-start-line="3" selection-start-column="9" selection-end-line="3" selection-end-column="9" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/lab3-q2.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="70">
<caret line="7" column="13" lean-forward="false" selection-start-line="7" selection-start-column="13" selection-end-line="7" selection-end-column="13" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/lab3-q4.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="133">
<caret line="12" column="0" lean-forward="true" selection-start-line="12" selection-start-column="0" selection-end-line="12" selection-end-column="0" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/lab4-input-grades.txt">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="102">
<caret line="6" column="1" lean-forward="true" selection-start-line="6" selection-start-column="1" selection-end-line="6" selection-end-column="1" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/lab4-output-grades.txt">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="0">
<caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/lab3-q5.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="204">
<caret line="12" column="10" lean-forward="false" selection-start-line="12" selection-start-column="10" selection-end-line="12" selection-end-column="10" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/lab3-q3.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="87">
<caret line="21" column="51" lean-forward="false" selection-start-line="21" selection-start-column="51" selection-end-line="21" selection-end-column="51" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/lab4-input-emp.txt">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="51">
<caret line="3" column="24" lean-forward="false" selection-start-line="3" selection-start-column="24" selection-end-line="3" selection-end-column="24" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/lab4-output-emp.txt">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="85">
<caret line="5" column="0" lean-forward="false" selection-start-line="5" selection-start-column="0" selection-end-line="5" selection-end-column="0" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/lab4-matplotlib.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="204">
<caret line="12" column="19" lean-forward="true" selection-start-line="12" selection-start-column="19" selection-end-line="12" selection-end-column="19" />
<folding>
<element signature="e#0#32#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/lab4-pylab.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="204">
<caret line="12" column="26" lean-forward="true" selection-start-line="12" selection-start-column="26" selection-end-line="12" selection-end-column="26" />
<folding>
<element signature="e#0#26#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/lab4-bargraph-multicolor.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="104">
<caret line="16" column="0" lean-forward="false" selection-start-line="16" selection-start-column="0" selection-end-line="24" selection-end-column="31" />
<folding>
<element signature="e#47#65#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/lab4-q1-file-handling.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="104">
<caret line="47" column="20" lean-forward="false" selection-start-line="47" selection-start-column="20" selection-end-line="47" selection-end-column="20" />
<folding>
<element signature="e#0#10#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
</component>
</project>
\ No newline at end of file
# q1
import sys
val = int(input("Enter money : "))
# val+=0.01
print("money : $%0.2f"%(val))
# op:
Enter money : 123
money : $123.00
# q2
import sys
nums = [2, 7, 11, 15]
target = int(input("enter target : "))
for i in range(0,nums.__len__()):
for j in range(0, nums.__len__()):
if ((nums[i] + nums[j])== target and i != j):
print("indices are %d and %d"%(i+1,j+1));
pass
pass
# op:
enter target : 9
indices are 1 and 2
indices are 2 and 1
# q3
import sys
str1 = input("enter string 1 : ")
str2 = input("enter string 2 : ")
if(str1.__len__() != str2.__len__()):
print("false")
else:
str1 = str1.lower()
str2 = str2.lower()
count1 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
count2 = count1
for i in range(0, str1.__len__()):
print(chr(97))
# count1[str1[i]] += 1
pass
# for i in range (0,str2.__len__()):
# count1[str2[i] - 97]+=1
# pass
# print(count1)
# print(count2)
# print("%s %s" % (str1, str2))
# q4
def climb(steps):
if(steps <= 1):
return 1;
elif(steps == 2):
return 2;
else:
return climb(steps-1) + climb(steps-2)
ip = int(input("enter number of steps : "))
print(climb(ip))
# op:
enter number of steps : 5
8
# q5
ip = input("enter sentence : ")
start = ["the","at","in"]
end = ["park","preserve","reservation","reserve","recreation area"]
ip = ip.lower()
lst = ip.split(" ")
print(lst)
flag = -1
for i in range(0,start.__len__()):
for j in range(0,lst.__len__()):
if start[i] == lst[j]:
flag = j
pass
pass
if flag == -1:
print("nothing here!")
else:
flag2 = -1
for i in range(0, end.__len__()):
for j in range(0, lst.__len__()):
if end[i] == lst[j]:
flag2 = j
pass
pass
if(flag2 == -1):
print("nothing here!")
else:
for i in range(flag, flag2+1):
print(lst[i])
# op:
enter sentence : deer at north ch reserve
['deer', 'at', 'north', 'ch', 'reserve']
at
north
ch
reserve
\ No newline at end of file
'''
Dollars and Cents
The Company you work for has just been awarded a contract to build a payment
gateway. In order to help move things along, you have volunteered to create a function
that will take a float and return the amount formatting in dollars and cents.
39.99 becomes $39.99
3 needs to become $3.00 and 3.1 needs to become $3.10
'''
import sys
val = int(input("Enter money : "))
# val+=0.01
print("money : $%0.2f"%(val))
\ No newline at end of file
"""
Two Sum
Given an array of integers, return indices of the two numbers such that they add up to
a specific target.
You may assume that each input would have exactly one solution, and you may not use
the same element twice.
Given nums = [2, 7, 11, 15], target = 9,
Because nums[0] + nums[1] = 2 + 7 = 9,
return [0, 1].
"""
import sys
nums = [2, 7, 11, 15]
target = int(input("enter target : "))
for i in range(0,nums.__len__()):
for j in range(0, nums.__len__()):
if ((nums[i] + nums[j])== target and i != j):
print("indices are %d and %d"%(i+1,j+1));
pass
pass
"""
Two strings str1 and str2 are called isomorphic if there is a one to one mapping possible
for every character of str1 to every character of str2. And all occurrences of every
character in ‘str1’ map to same character in ‘str2’
Input: str1 = "aab", str2 = "xxy"
Output: True
'a' is mapped to 'x' and 'b' is mapped to 'y'.
Input: str1 = "aab", str2 = "xyz"
Output: False
One occurrence of 'a' in str1 has 'x' in str2 and
other occurrence of 'a' has 'y'.
"""
import sys
str1 = input("enter string 1 : ")
str2 = input("enter string 2 : ")
if(str1.__len__() != str2.__len__()):
print("false")
else:
str1 = str1.lower()
str2 = str2.lower()
count1 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
count2 = count1
for i in range(0, str1.__len__()):
print(chr(97))
# count1[str1[i]] += 1
pass
# for i in range (0,str2.__len__()):
# count1[str2[i] - 97]+=1
# pass
# print(count1)
# print(count2)
print("%s %s" % (str1, str2))
"""
There are n stairs, a person standing at the bottom wants to reach the top. The person
can climb either 1 stair or 2 stairs at a time. Count the number of ways, the person can
reach the top.
Consider the example shown in diagram. The value of n is 3. There are 3 ways to reach
the top.
o steps - 1 way
1 step - 1 way
2 steps - 2 ways
"""
def climb(steps):
if(steps <= 1):
return 1;
elif(steps == 2):
return 2;
else:
return climb(steps-1) + climb(steps-2)
ip = int(input("enter number of steps : "))
print(climb(ip))
\ No newline at end of file
"""
substring from string
substring after the words "The", "At" or "In"
substring ends with words "Park", "Preserve", "Reservation", "Reserve" or "Recreation Area"
"""
ip = input("enter sentence : ")
start = ["the","at","in"]
end = ["park","preserve","reservation","reserve","recreation area"]
ip = ip.lower()
lst = ip.split(" ")
print(lst)
flag = -1
for i in range(0,start.__len__()):
for j in range(0,lst.__len__()):
if start[i] == lst[j]:
flag = j
pass
pass
if flag == -1:
print("nothing here!")
else:
flag2 = -1
for i in range(0, end.__len__()):
for j in range(0, lst.__len__()):
if end[i] == lst[j]:
flag2 = j
pass
pass
if(flag2 == -1):
print("nothing here!")
else:
for i in range(flag, flag2+1):
print(lst[i])
\ No newline at end of file
#https://pythonspot.com/matplotlib-bar-chart/
import numpy as np
import matplotlib.pyplot as plt
# data to plot
n_groups = 4
means_frank = (90, 55, 40, 65)
means_guido = (85, 62, 54, 20)
# create plot
fig, ax = plt.subplots()
index = np.arange(n_groups)
bar_width = 0.35
opacity = 0.8
rects1 = plt.bar(index, means_frank, bar_width,
alpha=opacity,
color='b',
label='Frank')
rects2 = plt.bar(index + bar_width, means_guido, bar_width,
alpha=opacity,
color='g',
label='Guido')
plt.xlabel('Person')
plt.ylabel('Scores')
plt.title('Scores by person')
plt.xticks(index + bar_width, ('A', 'B', 'C', 'D'))
plt.legend()
plt.tight_layout()
plt.show()
\ No newline at end of file
roll,name,gender,role,salary 16401,Ajay,M,System Manager,10000 16402,Rahul,M,Programming Analyst,20000 16403,Srinidhi,F,HR,5000
\ No newline at end of file
O
A
B+
B
C
D
F
\ No newline at end of file
import matplotlib.pyplot as plt;
import numpy as np
import matplotlib.pyplot as plt
objects = ('Ajay','Rahul','Srinidhi')
y_pos = np.arange(len(objects))
performance = [10000,20000,5000]
plt.bar(y_pos, performance, align='center', alpha=0.5)
plt.xticks(y_pos, objects)
plt.ylabel('Usage')
plt.title('Programming language usage')
plt.show()
\ No newline at end of file
1,Ajay,2000.0,1000.0,13000.0
2,Rahul,4000.0,2000.0,26000.0
3,Srinidhi,1000.0,500.0,6500.0
1,Ajay,2000.0,1000.0,13000.0
2,Rahul,4000.0,2000.0,26000.0
3,Srinidhi,1000.0,500.0,6500.0
1,Ajay,2000.0,1000.0,13000.0
2,Rahul,4000.0,2000.0,26000.0
3,Srinidhi,1000.0,500.0,6500.0
1,Ajay,2000.0,1000.0,13000.0
2,Rahul,4000.0,2000.0,26000.0
3,Srinidhi,1000.0,500.0,6500.0
1,Ajay,2000.0,1000.0,13000.0
2,Rahul,4000.0,2000.0,26000.0
3,Srinidhi,1000.0,500.0,6500.0
1,Ajay,2000.0,1000.0,13000.0
2,Rahul,4000.0,2000.0,26000.0
3,Srinidhi,1000.0,500.0,6500.0
1,Ajay,2000.0,1000.0,13000.0
2,Rahul,4000.0,2000.0,26000.0
3,Srinidhi,1000.0,500.0,6500.0
1,Ajay,2000.0,1000.0,13000.0
2,Rahul,4000.0,2000.0,26000.0
3,Srinidhi,1000.0,500.0,6500.0
1,Ajay,2000.0,1000.0,13000.0
2,Rahul,4000.0,2000.0,26000.0
3,Srinidhi,1000.0,500.0,6500.0
1,Ajay,2000.0,1000.0,13000.0
2,Rahul,4000.0,2000.0,26000.0
3,Srinidhi,1000.0,500.0,6500.0
1,Ajay,2000.0,1000.0,13000.0
2,Rahul,4000.0,2000.0,26000.0
3,Srinidhi,1000.0,500.0,6500.0
1,Ajay,2000.0,1000.0,13000.0
2,Rahul,4000.0,2000.0,26000.0
3,Srinidhi,1000.0,500.0,6500.0
1,Ajay,2000.0,1000.0,13000.0
2,Rahul,4000.0,2000.0,26000.0
3,Srinidhi,1000.0,500.0,6500.0
1,Ajay,2000.0,1000.0,13000.0
2,Rahul,4000.0,2000.0,26000.0
3,Srinidhi,1000.0,500.0,6500.0
1,Ajay,2000.0,1000.0,13000.0
2,Rahul,4000.0,2000.0,26000.0
3,Srinidhi,1000.0,500.0,6500.0
1,Ajay,2000.0,1000.0,13000.0
2,Rahul,4000.0,2000.0,26000.0
3,Srinidhi,1000.0,500.0,6500.0
1,Ajay,2000.0,1000.0,13000.0
2,Rahul,4000.0,2000.0,26000.0
3,Srinidhi,1000.0,500.0,6500.0
1,Ajay,2000.0,1000.0,13000.0
2,Rahul,4000.0,2000.0,26000.0
3,Srinidhi,1000.0,500.0,6500.0
1,Ajay,2000.0,1000.0,13000.0
2,Rahul,4000.0,2000.0,26000.0
3,Srinidhi,1000.0,500.0,6500.0
1,Ajay,2000.0,1000.0,13000.0
2,Rahul,4000.0,2000.0,26000.0
3,Srinidhi,1000.0,500.0,6500.0
1,Ajay,2000.0,1000.0,13000.0
2,Rahul,4000.0,2000.0,26000.0
3,Srinidhi,1000.0,500.0,6500.0
1,Ajay,2000.0,1000.0,13000.0
2,Rahul,4000.0,2000.0,26000.0
3,Srinidhi,1000.0,500.0,6500.0
1,Ajay,2000.0,1000.0,13000.0
2,Rahul,4000.0,2000.0,26000.0
3,Srinidhi,1000.0,500.0,6500.0
1,Ajay,2000.0,1000.0,13000.0
2,Rahul,4000.0,2000.0,26000.0
3,Srinidhi,1000.0,500.0,6500.0
1,Ajay,2000.0,1000.0,13000.0
2,Rahul,4000.0,2000.0,26000.0
3,Srinidhi,1000.0,500.0,6500.0
1,Ajay,2000.0,1000.0,13000.0
2,Rahul,4000.0,2000.0,26000.0
3,Srinidhi,1000.0,500.0,6500.0
1,Ajay,2000.0,1000.0,13000.0
2,Rahul,4000.0,2000.0,26000.0
3,Srinidhi,1000.0,500.0,6500.0
1,Ajay,2000.0,1000.0,13000.0
2,Rahul,4000.0,2000.0,26000.0
3,Srinidhi,1000.0,500.0,6500.0
1,Ajay,2000.0,1000.0,13000.0
2,Rahul,4000.0,2000.0,26000.0
3,Srinidhi,1000.0,500.0,6500.0
import plotly.plotly as py
import plotly.tools as tls
import pylab as plt
fig = plt.figure()
x = 0.25*plt.randn(1000)
y = 0.3*plt.randn(1000)
n, bins, patches = plt.hist([x, y])
plotly_fig = tls.mpl_to_plotly( fig )
py.iplot(plotly_fig, filename='mpl-multi-histogram')
\ No newline at end of file
import csv
import sys
import matplotlib.pyplot as plt
import numpy as np
plt.rcdefaults()
name = []
sal=[]
try:
with open('lab4-input-emp.txt') as csv_file:
csv_reader = csv.reader(csv_file, delimiter=',')
line_count = 0
for row in csv_reader:
try:
if line_count == 0:
print('\t%s %s %s %s %s' % (row[0], row[1], row[2], row[3], row[4]))
line_count += 1
else:
print('\t%s %s %s %s %s'%(row[0],row[1],row[2],row[3],row[4]))
line_count += 1
sal.append(row[4])
name.append(row[1])
try:
with open('lab4-output-emp.txt', mode='a') as output:
employee_writer = csv.writer(output, delimiter=',', quotechar='"',
quoting=csv.QUOTE_MINIMAL)
employee_writer.writerow(
[line_count - 1, row[1], float(row[4]) * 0.2, float(row[4]) * 0.1, float(row[4]) * 1.3])
except:
print("unable to append to output file")
except:
print("unable to read row")
print('Processed %s lines.'%(line_count-1))
print(name)
print(sal)
salint = list(map(int, sal))
#plotting method 1
# objects = name
# y_pos = np.arange(len(objects))
# plt.bar(y_pos, salint, align='center', alpha=0.5)
# plt.xticks(y_pos, objects)
# plt.ylabel('salary')
# plt.title('income')
#
# plt.legend(loc='upper left')
# plt.show()
#plotting multicolor
n_groups = 3
fig, ax = plt.subplots()
index = np.arange(n_groups)
bar_width = 0.35
opacity = 0.8
basic = [x * 1 for x in salint]
hra = [x * 0.2 for x in salint]
da = [x * 0.1 for x in salint]
rects1 = plt.bar(index, basic, bar_width,
alpha=opacity,
color='r',
label='basic')
rects2 = plt.bar(index + bar_width, hra, bar_width,
alpha=opacity,
color='g',
label='HRA')
rects3 = plt.bar(index + bar_width+ bar_width, da, bar_width,
alpha=opacity,
color='b',
label='DA')
plt.xlabel('name')
plt.ylabel('salary')
plt.title('income')
plt.xticks(index + bar_width, ('A', 'B', 'C'))
plt.legend()
plt.tight_layout()
plt.show()
except:
print("Unable to open input file", sys.exc_info()[0], "occured.")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment