You risk having your license suspended or even face jail time.
Answer:
total = 0
k = 1
while k <= 50:
total += k**2
k += 1
print(total)
Explanation:
Note: There some errors in the question. The correct complete question is therefore provided before answering the question as follows:
Use the variables k and total to write a while loop that computes the sum of the squares of the first 50 counting numbers, and associates that value with total. Thus your code should associate 1*1 + 2*2 + 3*3 +... + 49*49 + 50*50 with total. Use no variables other than k and total.
The answer is now explained as follows:
# Initialize k which is the number of term
k = 1
# Initialize total which is the sum of squares
total = 0
# Loop as long as k is less than or equal to 50.
while (k <= 50):
# Add the square of k to total in order to increase it
total = total + k * k
# Increase the value of k by one.
k += 1
# Finally, output total
print (total)
Answer:
Following is the code in Java Language :
DecimalFormat form1= new DecimalFormat ("0.####"); // create an instance of . //DecimalFormat
System.out.println (form1.format(res)); // display the value in proper format
Explanation:
Following are the description of the program
- Firstly we create the instance of DecimalFormat i.e "form1" that will round a formatted value to four decimal places. To create an instance or object of the class we can use a new keyword.
- Finally, we print the format by using the format method.In the format method, we pass the variable "res".The System.out.println() is used to display the value of the format.
An electronic document is any electronic media content that are intended to be used in either an electronic form or as printed output.
Explanation:
Electronic file organization is a key skill for today's work place for many reasons.
- It will increase productivity and will help give a clear understanding of what documents should be filed in the shared drive system.
- Having a sound file structure will help to improve the over all production of the organization
- An electronic file management software system helps organize documents in various ways. So your employees can find files fast and save time. They can accomplish more work in the given amount of time.
- Doctor offices and hospitals have digitized all paper medical records, which means they are now using electronic medical records (EMR) systems. If someone does not have organization it could potentially lead to files and or documents going in to the wrong hands.
- Learning to use One Drive can also assist me in my present role as a student. It will help me to be organized with my assignments . I will be able to access any other important documents and data.
Answer:
c: removing sequencing, selection
Explanation:
c