CS 1320: Intro to Computational Thinking Spring 2022 Assignment-1 Total Points:100 Instruction for Submission: All assignments that students will submit as part of this course are subject to the...

1 answer below »
Ignore the referring style, just follow the document provided.


CS 1320: Intro to Computational Thinking Spring 2022 Assignment-1 Total Points:100 Instruction for Submission: All assignments that students will submit as part of this course are subject to the instructions and regulations specified in this document. 1. Assignment submitted via means other than through blackboard (LMS) will not be graded unless you have made prior arrangements with your instructor. 2. Assignment will be accepted only in word file format or PDF file format; any other format will not be accepted. For the coding problem, students are advised to implement code in Jupiter notebook and then, copy it to word/pdf file. 3. Code having comments and running without error will received full points, If the code has no comments or having errors, then student will receive partial points for attempt. 4. Assignments should not be copied, should be clear, readable, and well presented. Students are advised that in case two or more students’ assignments are too similar in content, nature, the instructor would at his / her discretion decide on the quantum of marks to be awarded, irrespective of how good the submitted assignments are. 5. Late Policy: Unless otherwise specified, a lateness penalty of 25% per day late rounded up (including weekends and holidays) will be applied to all late submissions, up to a maximum of three full days past the assignment deadline, after which submissions for the assignment will not be accepted. Assignment Problems: Problem 1: Write a Python code that receives the name of a patient, age, weight (pounds or kilograms), and height and calculate the patient’s Body Mass Index (Formula: weight (lb) / [height (in)]^2 x 703) and display the result. Problem 2: Write a code that asks the user the following information: ➢ Car model ➢ Miles driven in a full tank ➢ Gas cost (per gallon) ➢ Cost to fill tank Calculate the miles per gallon of the car and cost per mile. Display the output in the given format: Amazing! [Car] has an mpg of [MPG] per gallon! You spent [$xx] to drive one mile! Problem 3: Write a Python code to check weather a given input number from is divisible by 7 and 9 using logical operator and display the result. [10 points] Problem 4: Write a Python code to calculate and print the Electricity bill of a customer. Take input customer Name, id., and unit consumed by the user from keyboard and display the total amount customer needs to pay. The charges are as follow: Unit Charge/Unit Up to 250 @0.23 250 and above but less than 400 @0.29 400 and above but less than 700 @0.32 700 and above @0.35 If bill exceeds $100 then a add surcharge of 12% in the bill and the minimum bill should be $35. Problem 3: Write a Python program to print the Fibonacci series between 0 to 35 and print the sum of all the printed numbers. Problem 3: Write a Python code to Print the following pattern using nested while loop. -------------------------------------------------------End ------------------------------------------------
Answered Same DayFeb 21, 2022

Answer To: CS 1320: Intro to Computational Thinking Spring 2022 Assignment-1 Total Points:100 Instruction for...

Neha answered on Feb 22 2022
117 Votes
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here