Write My Paper Button

WhatsApp Widget

Arkansas Tech University Computer Science Worksheet

Share this post on:

Arkansas Tech University Computer Science Worksheet – Description

1. Write a Python program to find the area of a rectangle. Take both sides of the rectangle from end user.

2. Write a Python function to find average of four integer numbers in Python. Then, test the output of the function by calling it and printing the result on the console (You don’t need to take numbers from end user).

3. Find the output of the following Boolean function f (X,Y,Z) logic expression in a Python. Suppose that X = False, Y = False, and Z = True. f (X,Y,Z) = not X or (Y and (not Z)) or (Z or X and Y) or (not Y)

4. Define a one dimensional 1×6 array in Python. Reshape its size from 1×6 to 2×3 (matrix). Find transpose of the converted matrix.

5. Define two different one dimensional arrays in Python. Apply element-wise addition and multiplication to these arrays.

6. Define a 3×4 two dimensional array (matrix) in Python. Access and print the third row. Access and print the second column. Access the element which has (3,2) index number and print it.

7. Define a one dimensional 1×5 array in Python. Find absolute value of the array. Sort the elements of the array.

8. Define a 4×4 matrix in Python. Find inverse of this matrix. Find determinant of this matrix. Find eigenvalue and eigenvectors of this matrix.

9. Create a two dimensional 3×5 array (matrix) in Python. Find its dimension and size.

10. Suppose that we have the following two lists List1 and List2. List1 = [‘Arkansas’, ‘College’, ‘Department’, ‘Campus’, ‘Parking’] List2 = [8, -1, 6, 5, -3, 124] Check whether “Campus” is in the List1. Show the 2nd element of the List2. Show the last two elements of the List1. Find and show the number of elements of the List2.

11. Define the following data frame in Python. Insert a ‘branch name’ column with ‘Russellville’, ‘Little Rock’, ‘Morrilton’, and ‘Conway’ elements. Find the names of the item whose Id Number is less than 300.

Name and Id Number

Egg and 228

Butter and 330

Bread and 997

Mushroom and 125

12. Write a Python program to find the sum of series 1 + (1/2)^2 + (1/3)^2 + (1/4)^2 + … + (1/N)^2 Take the number of N from end user.

13. Apply line plot and bar plot for the following series A. A = Series([2,-1,3.7,2.9], index = [‘2015′,’2017′,’2019’,’2021’])

Please show your code and program outputs with screenshots.

The post Arkansas Tech University Computer Science Worksheet first appeared on .

Share this post on:

Affordable and Dependable Platform for Your Academic Assignments

X