Java Python CS 101 : Intro to Comp Sci
Assignment #1 operators and operands
Refer to the two files below to complete Assignment #1.
Note:- In order for me to be able to run and test your code on my computer, all required file(s) must be zipped together and submitted. Include a video recording (under 4min.) with your voice in audio. Share screen while explaining your code and while you demo as your code is running.
You can use the built-in video or audio recording feature in Canvas,
https://guides.instructure.com/m/4212/l/1157931-how-do-i-record-media-using-the-rich-content-editor-as-a-studentLinks to an external site.
Rubric,
2points Video code explanation & running code demonstration
3points Code must produce the expected result
2point code readability & efficiency
1point descriptive variable names
1point comment, as needed
1prompts, error handling, error messages, chance to correct and proceed
Step1) Type the Python code shown below into activecode window. You can use any section that contains activecode window in the online textbookLinks to an external site. such as "1.12. A Typical First Program".
Step2) Click the Run button in activecode to execute your code, verify that you input the required values to get similar result as shown below.
Once you complete typing the above code then run it a few times to test and confirm it works as expected, save it as a text file, screenshots are not acceptable, name it "firstLastNameAssignment0.py", preferably using any text editor such as notepad (Avoid Microsoft Word, it might run spellcheck and put unnecessary formatting, which might mangle up your code). I should be able to copy paste your code and run it without any modification to get the same results.
Similarly, continue writing code and practice using what is shown in 2.7. Operators and Operands Links to an external site.as a sample. But remember to allow the user of your program to input any number they choose. Then, convert the numbers to int or to float as shown in the sample input above in Step1.
1) Display a clear prompt for the user to input two numbers, informing the user the numbers are to be added together. Calculate the sum of these two numbers and display the result, with proper label. Test your code thoroughly. Finally, copy paste your tested code into a text file with a comment line that clearly labels it as "problem CS 101 : Intro to Comp Sci Assignment #1 operators and operandsPython 1.py".
2) Display a clear prompt for the user to input two numbers, informing the user the second number will be subtracted from the first. Calculate the difference of these two numbers by subtracting the second from the first number and display the result, with proper label. Test your code thoroughly. Finally, copy paste your tested code into a text file with a comment line that clearly labels it as "problem2.py".
3) Display a clear prompt for the user to input two numbers, informing the user the numbers are to be multiplied together. Calculate the product of these two numbers and display the result, with proper label. Test your code thoroughly. Finally, copy paste your tested code into a text file with a comment line that clearly labels it as "problem3.py".
4) Display a clear prompt for the user to input two numbers, informing the user the first number will be divided into the first. Calculate the quotient of these two numbers dividing the first number into the second number, then display the result, with proper label. Test your code thoroughly. Finally, copy paste your tested code into a text file with a comment line that clearly labels it as "problem4.py".
5) Include 3 additional files that work similarly to calculate exponentiation "problem5.py", remainder "problem6.py", and integer division "problem7.py".
Note:- you have to be creative as you select variable names, using the proper data type for the operation, your code must be easy to read, you should anticipate and consider potential error condition scenarios to handle them gracefully.
Submit a single text file screenshots are not accepted, name it it with your firstLastNameAssignment1.py (ex. kaleabGorfuAssignment1.py) containing all the code for each task above problem1 - problem7, each with its corresponding comment(s) separating each from the others. Screenshots are not required for this assignment. I should be able to copy paste your code into activecode and execute it with no errors. All assignment files must include ownership label as your signature at the beginning, confirming it is your own work. You can use any text editor such as notepad (Avoid Microsoft Word, it might run spellcheck and put unnecessary formatting, which might mangle up your code). I should be able to copy paste your code and run it without any modification. I will test your code to see if I get the correct results with each operation as I input various numbers