1. (Expressions) Write Python expressions for the following tasks.
Print the results of the expressions using the ‘print’ function.
# Compute the product of 11111111 with itself. a = 11111111 print(a * a) # How often does 91 go into 1000? (Integer value) print(1000 // 91) # What remainder does 91 leave when divided into 1000? print( 1000 % 9) # You scored 90/100, 46/50, 55/60 and 66/70. What is your best score on these four works? scores = {'90/100': 90/100, '46/50' : 46/50, '55/60' : 55/60, '66/70' : 66/70} print(max(scores.keys(), key=lambda k: scores[k])) # A KB (kilobyte) in information technology is really 1024 bytes (not 1000 bytes), # where 1024 is 2 raised to the power 10. Use Python to calculate what # a Gigabyte is (2 raised to the power 30). print(2 ** 30)
1. (Expressions) Write Python expressions for the following tasks. Print the results of the expressions using...
Part 1: Using Idle Write a Python Script that Does the Following 1. At the top of your program, import the math library as in from math import * to make the functions in the math module available. Create a variable and assign into it a constant positive integer number of your choice. The number should be at most 10. 1 Suppose we call this variable x for this writeup document Try something like x = 4 2. Create another...
Write a C++ program named, gradeProcessor.cpp, that will do the following tasks: -Print welcome message -Generate the number of test scores the user enters; have scores fall into a normal distribution for grades -Display all of the generated scores - no more than 10 per line -Calculate and display the average of all scores -Find and display the number of scores above the overall average (previous output) -Find and display the letter grade that corresponds to the average above (overall...
Using the book, write another paragraph or two: write 170 words: Q: Compare the assumptions of physician-centered and collaborative communication. How is the caregiver’s role different in each model? How is the patient’s role different? Answer: Physical-centered communication involves the specialists taking control of the conversation. They decide on the topics of discussion and when to end the process. The patient responds to the issues raised by the caregiver and acts accordingly. On the other hand, Collaborative communication involves a...