In this code block, the monkey sprite is an example of both an input and a(n)__

In This Code Block, The Monkey Sprite Is An Example Of Both An Input And A(n)__

Answers

Answer 1

In this code block, the monkey sprite is an example of both an input and a option d: function.

What does CodeMonkey do?

It is an Another illustration is a function that directs a rat or a monkey to an object. "goto" is the name of this function. You can utilize the same code with multiple values by using arguments in a function. When using the function, the main code sends these values to it.

Note that In Game Lab, we refer to a group of values that depicts a character from a narrative, animation, or game as a sprite. Sprites can be saved in variables with labels, however unlike other types of values that you might have previously placed in variables, such numbers, sprites allow you to group together several related values under a single label.

Therefore, one can say that CoffeeScript and Python are two text-based programming languages covered by codeMonkey. The CoffeeScript is the name of the programming language employed in Coding Adventure. This computer language, which is related to JavaScript, is mostly used for web applications in the sector.

Learn more about coding from

https://brainly.com/question/27682740
#SPJ1

Answer 2

Answer: parameter

Explanation:

In This Code Block, The Monkey Sprite Is An Example Of Both An Input And A(n)__

Related Questions

Make a program that, given a square matrix, identify the largest number and what position it has, indicate how many even and odd numbers it has. With functions in pseint.

Answers

A program that, given a square matrix, identifies the largest number and what position it has, and indicates how many even and odd numbers it has, is given below:

The Program in C++

// C++ implementation to arrange

// odd and even numbers

#include <bits/stdc++.h>

using namespace std;

// function to arrange odd and even numbers

void arrangeOddAndEven(int arr[], int n)

{

  int oddInd = 1;

   int evenInd = 0;

   while (true)

   {

       while (evenInd < n && arr[evenInd] % 2 == 0)

           evenInd += 2;

           

       while (oddInd < n && arr[oddInd] % 2 == 1)

           oddInd += 2;

           

      if (evenInd < n && oddInd < n)

           swap (arr[evenInd], arr[oddInd]);

           

       else

           break;

   }

}

// function to print the array

void printArray(int arr[], int n)

{

   for (int i = 0; i < n; i++)

       cout << arr[i] << " ";

}

// Driver program to test above

int main()

{

   int arr[] = { 3, 6, 12, 1, 5, 8 };

   int n = sizeof(arr) / sizeof(arr[0]);

   cout << "Original Array: ";

  printArray(arr, n);

   arrangeOddAndEven(arr, n);

   cout << "\nModified Array: ";

   printArray(arr, n);

   return 0;

}

Output

Original Array: 3 6 12 1 5 8

Modified Array: 6 3 12 1 8 5

Read more about programming here:

https://brainly.com/question/23275071

#SPJ1

The given program reads a list of single-word first names and ages (ending with -1), and outputs that list with the age incremented. The program fails and throws an exception if the second input on a line is a string rather than an integer. At FIXME in the code, add try and except blocks to catch the ValueError exception and output 0 for the age.

Ex: If the input is:

Lee 18
Lua 21
Mary Beth 19
Stu 33
-1
then the output is:

Lee 19
Lua 22
Mary 0
Stu 34


# Split input into 2 parts: name and age
parts = input().split()
name = parts[0]
while name != '-1':
# FIXME: The following line will throw ValueError exception.
# Insert try/except blocks to catch the exception.
age = int(parts[1]) + 1
print('{} {}'.format(name, age))

# Get next line
parts = input().split()
name = parts[0]

Answers

The statements that catch the exception in the program are:

      age = int(parts[1]) + 1

      print('{} {}'.format(name, age))

      # Get next line

      parts = input ( ) . split ( )

      name = parts[0]

  except ValueError:

      print ( ' Invalid value ! ' )

      # Get next line

      parts = input().split()

      name = parts [ 0 ]

Complete Program

# Split input into 2 parts: name and age

parts = input().split()

name = parts[0]

while name != '-1':

  # FIXME: The following line will throw ValueError exception.

  # Insert try/except blocks to catch the exception.

  try:

      age = int ( parts [ 1 ] )  + 1

      print( ' { } { } ' . format ( name, age ) )

      # Get next line

     parts = input( ) . split ( )

      name = parts[0]

  except ValueError:

      print ( ' Invalid value ! ' )

      # Get next line

      parts = input ( ) . split ( )

      name = parts[0]

Read more about programming here:

https://brainly.com/question/23275071

#SPJ1


What would the code be for this?

Answers

Answer:

c = 'z'

while c >= 'a':

 print(c)

 c = c h r(ord(c)-5)

Explanation:

Keep in mind, you could have also chosen to do:

print("z\nu\np\nk\nf\na\n")

but it seems the character arithmetic is what is asked for...

Need help with this coding question. It must be done in python and must use a while loop structure.

Answers

Answer:

I'm generally puzzled

Explanation:

define as stored program digital computing system​

Answers

Answer:

stored-program computer is a computer that stores program instructions in electronically or optically accessible memory.

Kyla has composed a draft of her term paper using Microsoft Word. She now wants to revise the paper. Which tool can she use to store the
document with a different name and makes changes in the new document?
O A. Download
OB. Save As
O C. Save
OD. Export

Answers

A tool which Kyla can use to store the document with a different name and makes changes in the new document is: B. Save As.

What is a document?

A document simply refers to a computer resource that is designed and developed to enable end users to easily store data as a single unit on a computer storage device.

Generally speaking, all computer documents can be identified by a title (name), date modified, size, and type such as the following;

SystemTextAudioImageVideoWhat is the Save as command?

A Save as command can be defined as a type of command associated with the file menu of a software application or document and it causes a copy of the current file to be created and stored to a different location, file name, and/or file type.

In this context, we can reasonably infer and logically deduce that Kyla  should save the document by using the "Save as" command.

Read more on Save as command here: https://brainly.com/question/16852455

#SPJ1

I need this fast pls
How many clock ticks would a computer with one million hertz have?

a - 1,000,000 per minute


b - 1,000,000 per second


c - 1,000,000 per hour


d - 1,000,000 per hour

Answers

Answer: Its B. 1,000,000 per second

Explanation: One hertz is one tick per second. A computer with a one million hertz processer would have 1,000,000 ticks per second.

Which of the following is an example of how agriculture uses computer programming? (5 points)

Create drones
Initiate patient portals
Track and plan growth
Use special effects

Answers

Answer:

create drones is an example of how agriculture uses computer programming

Tom is interested in becoming a dental hygienist. When he goes to the dentist for his regular checkup, he asks the hygienist there if she would be willing to talk to him about what her job is like. What is this talk called?

A.
jobs outlook

B.
informational interview

C.
data session

D.
counseling appointment

Answers

Since Tom is interested in becoming a dental hygienist and he asks the hygienist there if she would be willing to talk to him about what her job is like, this talk is called  D. counseling appointment.

What is the purpose of career counseling?

In order to make decisions about your job, education, and overall well-being, career counseling is a process that will help you get to know and understand yourself as well as the working environment.

Note that Choosing a major and determining what profession you want to acquire after graduation are only two aspects of career development.

A career counselor will assist a client in exploring abilities and strengths, taking into account education levels and others.

Learn more about counseling appointment from

https://brainly.com/question/28214390

#SPJ1

Type the correct answer in the box. Spell all words correctly. What method is Dana using? Dana is working on a software development project. As a team leader she sets up time -bound targets for each of the members in her cross-functional team to improve collaboration. She is using the _ method of project development

Answers

Since Dana is using a cross-functional team to improve collaboration. She is using the Agile method of project development.

What is agile method of development?

Agile is one that lets teams offer value to their clients more quickly and with fewer difficulties through an iterative approach to project management and software development.

Note that an agile team produces work in manageable, small-scale increments rather than staking all on a "big bang" launch.

Since the Agile technique divides a project into many parts and uses these phases to manage the project. Continuous improvement at every stage and ongoing collaboration with stakeholders are required. Teams cycle through a process of planning, carrying out, as well as assessing once the job starts.

Learn more about Agile from

https://brainly.com/question/14524978
#SPJ1

can help me biii and d? also help me check my answer is correct or not if wrong please help me correct it thanks​

Answers

Answer:

b(ii) prices[1]= 20.50;  // do not declare with double again

b (iii) scanf("%lf", &prices[4]);  //prices[4] is last element

d) See below

Explanation:

/* This program uses the string.h header file

The strncat() function in this file concatenates two strings. It takes three arguments, dest and source strings and number of characters to concatenate

*/

#include <stdio.h>
#include <string.h>

int main() {
char s1[10] = "Happy";
char s2[10] = " Birthday";
char s3[10]="";

strncat(s3, s1, 5);  //concatenate 5 characters of s1 to end of s3 and                            
                                    //store result in s3; s = "Happy"
strncat(s3, s2, 10); //concatenate s2 with current contents of s3
                                      //s3 becomes "Happy Birthday
printf("%s", s3);

return 0;

}

Which of the following methods includes or embeds a new node directly ahead of a child node?

a. node.appendChild(new)
b. node.replaceChild(new, old)
c. node.insertBefore(new, child)
d. node.insert(new, old)

Answers

Option c is correct. Node.insertBefore(new, child) is the method that includes or embeds a new node directly ahead of a child node.

The Node interface's insertBefore() method places a node as a child of a given parent node ahead of a reference node.

InsertBefore() transfers the specified node to the new place if it already exists in the document. (That is, before adding it to the given new parent, it will automatically remove it from its current parent.)

As a result, a node cannot be present in two places in the document at once. The full contents of the DocumentFragment are moved into the child list of the chosen parent node if the given child is a DocumentFragment. the node that newNode is added before. In the event that this is null, newNode is appended to the end of the node's child nodes.

To know more about node click on the link:

https://brainly.com/question/28485562

#SPJ4

Choose the term that makes the sentence true.

is the most popular desktop operating system.

Answers

Microsoft's Windows is the most popular desktop operating system and as such is the true statement.

Check more about Microsoft  windows below.

What is the most popular PC operating system?

Windows from Microsoft is seen as the Computer operating systems' global market share from 2012 through 2022, broken down by month.

Note that the desktop, tablet, as well as console OS markets are all dominated by Microsoft's Windows, which has a 70.68 percent market share worldwide.

Therefore, The most widely used desktop and laptop operating system is Windows 10. The most widely used PC operating system is Windows. An operating system is a piece of software that runs on a computer and controls how software programs and computer resources are used.

Learn more about Microsoft's Windows from

https://brainly.com/question/28132832
#SPJ1

Write a program that reads integers from the user and stores them in a list. Use 0 as a sentinel value to mark the end of the input.

Answers

num = int(input("User Input: "))

mylist = []

while(num !=0):

   mylist.append(num)

   num = int(input("User Input: "))

mylist.reverse()

for i in mylist:

   print(i,end = ' ')

What is a program?

A program is a set of instructions that a computer follows to complete a specific task.

This question is answered in Python, and it employs 0 as a sentinel value, which means that the program stops prompting the user for input when the user enters 0.

This line requests input from the user

num = int(input("User Input: "))

This line declares a list that is empty

mylist = []

This loop is repeated as long as user enters input other than 0

while(num !=0):

This appends user input to the list

   mylist.append(num)

This prompts user for another input

   num = int(input("User Input: "))

This reverses the list

mylist.reverse()

The following iteration the list in reverse order

for i in mylist:

   print(i,end = ' ')

To learn more about program

https://brainly.com/question/23275071

#SPJ9

Which of the following BEST describes what a kilobyte is a measurement of?
CPU speed
Power level
Back
Data throughput
Storage space

Answers

Answer:

Storage space

Explanation:

Laptop overheating what should you do to prevent damage

Answers

Answer:

I think you should off it and let it cool down by itself.

Explanation:

Hope it helps and have a nice day! :)

BRAINIEST is appreciated it would really help

Write a Python program that asks the user to enter students’ grades. The program should
keep accepting grades and stops once a negative value is entered. Finally, the program prints
the number of grades entered, summation and average of all grades.

Answers

hey bro can u make me brainliest

grades = []
print('Please enter a grade (negative value to end):')
grade = float(input())
while grade >= 0:
grades.append(grade)
print('Please enter a grade (negative value to end):')
grade = float(input())
print('\n')
print('You have entered ' + str(len(grades)) + ' grades.')
print('The sum is ' + str(sum(grades)) + '.')
print('The average is ' + str(sum(grades) / len(grades)) + '.')

Briefly explain the benefits of making a time management plan as a student or professional.
Describe at least three planning tools that will help you manage your time effectively.

Answers

Answer:

As a student I answered for students benefits only

Explanation:

I am explaining into list form so that everyone can understand it easily.

Benefits:

You get more done in less time.

By sticking to this time plan, you have a better chance of tackling the task than getting to it with no predefined time allocated to it.

Reduces stress.

Proper time management enables you to prioritize tasks and tackle them first.

It helps you achieve your goals faster.

Instead of getting caught up in multitasking, you focus on one activity at a time for a specified duration.

It boosts your confidence.

Managing your time well allows you to get your work done on time. This elicits a sense of confidence and accomplishment in your capabilities. Getting through a long to-do list can also evoke these feelings.

How does this code give me 17? (python)

j = 3

z = {}

z[2] = 1

z[7] = 3

z[5] = 2

for l in z:

j += l

print(j)


I don't understand where the 17 is coming from. I thought the square brackets were basically accessing the location (meaning the code would be like this "1, 2, 3." I even thought of individually adding 3 separately to all the numbers only for it to give me 15. Yeah, i've trying to understand this for 2 days lol.

Answers

Answer:

See explanation below and try out this code to see what exactly is happening

# Program

j = 3

z = { ]  # empty dictionary

print(z)

z[2] = 1 # z

print(z)

z[7] = 3

print(z)

z[5] = 2

print(z)   # prints out {2: 1, 7: 3, 5: 2}

for l in z:

   print("Initial value of j = ", j)

   print("Value of l(key) = ", l)

   j += l

  print("Updated value of j = ", j)

print("Final value of j=", j)

Explanation:

What you have is a dictionary object. We use { } to represent a dictionary. A dictionary consists of keys and values related to the keys. For example, you can have a  dictionary which contains names of students and their GPAs

This is declared as
student_grades = {"Amy": 4.3, "Zach":4.0", "Bill": 3.2}

The names are referred to as keys and the GPA as values
You can also have both key and value as integers. Fir example you could store the cubes of numbers from 1 to 5 in a dictionary

cubes = {1: 1, 2:8, 3: 27, 4: 64, 5:125}

If you wanted to add the cube for 6 then you would use cubes[6] = 216 This creates a new entry in the dictionary 6:216 so that the dictionary is now

cubes = {1: 1, 2:8, 3: 27, 4: 64, 5:125, 6:216}

In this short program here is what is happening


j = 3   # variable j created and value set to 3

z = { }  # this creates an empty dictionary named z

z[2] = 1  #adds an entry with key = 2 and value = 1; z = {2 : 1}

z[7} = 3  #key  7 and value 2 added => z = {2 : 1, 7 : 3}

z[5] = 2  #key 5, value 2 => z = {2: 1, 7 : 3, 5 : 2}

So now there are 3 entries in the dictionary i.e. 3 pairs of key-values

When you iterate through the dictionary as in

for l in z:
 - you are actually iterating over the keys so l = 2, 7 and 5 on each iteration

So you are accumulating the key values

Here is what happens

First execution of  loop => j = 3 , l = 2 (first key =2), j = 3 + 2 = 5

Second time: l = 7 (second key value) , j = 5 + 7 = 12

Third time: l = 5, j = 12 + 5 = 17

There is a lot more to dictionaries and sometimes it can get complicated. Suggest you search the internet for the same

Putting print() statements also helps you visualize what is happening. Code is provided in the answer section to help you

Define a function CheckVals() with no parameters that reads integers from input until integer 0 is read. The function returns true if all of the integers read before 0 are in the range -10000 to -9000 inclusive, otherwise, returns false.


Ex: If the input is -9500 -8975 0, then the output is:


Invalid value(s)

#include
using namespace std;

bool CheckVals() {

bool zero = true;

Answers

In this exercise we have to use the knowledge of C++ to write a program that is possible Define a function with no parameters that reads integers from input until integer 0 is read.

Writting the code:

#include <iostream>

using namespace std;

bool

{

   int num;

   bool =true;

   do

   {

       cin>>num;

       if(num>=0 && num!=1)

           =false;

   }while(num!=1);

   return;

}

int main()

{

   bool allNegative;

   allNegative=

   if(allNegative==true)

       cout<<"All match";

   else

       cout<<"All not match";

   return 0;

}

See more about C++ at brainly.com/question/19705654

#SPJ1

In 3-5 sentences, describe one disadvantage each for list, array, and queue data structures

Answers

One disadvantage each for list, array, and queue data structures are:

The list is constrained in that additions can only be made at the end.Because array items are kept in contiguous memory, insertion and deletion operations are expensive.Limited Room.

What are the disadvantages of simple queue in data structure?

It is difficult to quickly search the queue. You must begin at the very end and might need to keep another queue. Don't even consider utilizing a queue if you have data that you want to make searchable in the future. It is difficult to add or remove items from the queue's middle.

Note that An array doesn't verify its borders: In the C programming language, we are unable to determine whether the values placed in an array exceed its size or not.

Learn more about queue data structures from

https://brainly.com/question/15397013
#SPJ1

9. Which of the following is used to input in computer in digital form? a) Keyboard b) Monitor c) Scanner d) Mouse​

Answers

Answer:

Scanner

Explanation:

The correct answer is Scanner. Input devices are used to enter data or instructions into a computer.

which cyber protection condition establishes a protection priority focus

Answers

I don’t even know tbh


INFOCON 1 is the prerequisite for cyber defence that creates a protection priority focus on just crucial and essential functions.

What is INFOCON 1?

Information operations condition, or INFOCON 1, is a circumstance where an information system has been successfully attacked and the effects on Department of Defense  missions are clear, yet the computer network's defence system is on high alert.

INFOCON 1 basically assures that a computer network security system is as aware or ready as possible to deal with intrusion approaches that cannot be detected or countered at a lower readiness level.

In conclusion, INFOCON 1 is a need for cyber protection that places a priority on protecting only vital and necessary functions.

Thus, INFOCON 1 is the prerequisite for cyber defence.

For more information about INFOCON 1, click here:

https://brainly.com/question/25157787

#SPJ12

In what setting should a bidirectional microphone be used and why?

Answers

Bidirectional microphones have a very constricted pickup angle, making them useful for separating a single voice or mechanism in the presence of other sound sources, as lengthy as nothing is directly behind the mic. They are useful for picking up two sources that are next to each other.

What is bidirectional microphone?

The pressure gradient principle underpins this type of microphone. The sound can travel through the membrane on both sides.

When the sound on the front and backside of the diaphragm differs, the microphone sends a signal.

Bidirectional microphones have a particularly narrow pickup angle, which makes them advantageous for distinguishing a single voice or framework in the involvement of other sound sources, as long as nothing is directly behind the mic.

They are useful for detecting two sources that are close together.

Thus, in this setting a bidirectional microphone can be used.

For more details regarding bidirectional microphone, visit:

https://brainly.com/question/14360530

#SPJ1

need help array question ​

Answers

A C program segment for prompting a user to enter an integer and save it in an option variable is given below:

The Program

#include <stdio.h>

#include <ctype.h>

int main(void)

{

   char ch;

   float num1,num2,answer;

   printf("Enter the operation of your choice:\n");

   printf("a. add     s. subtract\n");

   printf("m. multiply q. divide\n");

   printf("q. quit\n");

   while ((ch = getchar())!='q')

   {

       ch=tolower(ch);

       //Ignore whitespace

       if (ch=='\n')

           continue;

       else

       {

           switch(ch)

           {

               //Addition part

               case 'a':

                   //First number

                   printf("Enter first number: ");

                   //Check to see if input is a number

               while (scanf("%f",&num1)==0)

               {

                   printf("Invalid input. Please enter a number, such as 2.5, -1.78E8, or 3: ");

                   scanf("%*s");

               }

               //Second number

              printf("Enter second number: ");

               while (scanf("%f",&num2)==0)

               {

                   printf("Invalid input. Please enter a number, such as 2.5, -1.78E8, or 3: ");

                   scanf("%*s");

               }

               //Do math for respective operation

              answer = num1 + num2;

               //Print out result

               printf("%.3f + %.3f = %.3f\n", num1,num2,answer);

               break;

           //Subtraction part

           case 's':

              printf("Enter first number: ");

               while (scanf("%f",&num1)==0)

               {

                   printf("Invalid input. Please enter a number, such as 2.5, -1.78E8, or 3: ");

                   scanf("%*s");

               }

               printf("Enter second number: ");

               while (scanf("%f",&num2)==0)

               {

                   printf("Invalid input. Please enter a number, such as 2.5, -1.78E8, or 3: ");

                   scanf("%*s");

               }

               answer = num1 - num2;

               printf("%.3f - %.3f = %.3f\n", num1,num2,answer);

               break;

           //Multiplication part

           case 'm':

               printf("Enter first number: ");

               while (scanf("%f",&num1)==0)

               {

                   printf("Invalid input. Please enter a number, such as 2.5, -1.78E8, or 3: ");

                   scanf("%*s");

               }

               printf("Enter second number: ");

               while (scanf("%f",&num2)==0)

               {

                   printf("Invalid input. Please enter a number, such as 2.5, -1.78E8, or 3: ");

                   scanf("%*s");

               }

               answer = num1 * num2;

               printf("%.3f * %.3f = %.3f\n", num1,num2,answer);

               break;

           //Division part

           case 'd':

               printf("Enter first number: ");

               while (scanf("%f",&num1)==0)

               {

                  printf("Invalid input. Please enter a number, such as 2.5, -1.78E8, or 3: ");

                   scanf("%*s");

               }

               printf("Enter second number: ");

               while (scanf("%f",&num2)==0)

               {

                   printf("Invalid input. Please enter a number, such as 2.5, -1.78E8, or 3: ");

                   scanf("%*s");

               }

              //Check for if number is a zero

               while (num2==0)

               {

                   printf("Please enter a non-zero number, such as 2.5, -1.78E8, or 3: ");

                   while (scanf("%f",&num2)==0)

                   {

                       printf("Invalid input. Please enter a number, such as 2.5, -1.78E8, or 3: ");

                       scanf("%*s");

                   }

               }

               answer = num1 / num2;

               printf("%.3f / %.3f = %.3f\n", num1,num2,answer);

               break;

           //For if a non-valid operation is entered

           default:

               printf("That is not a valid operation.\n");

               break;

       }

   }

  printf("Enter the operation of your choice:\n");

   printf("a. add      s. subtract\n");

   printf("m. multiply q. divide\n");

   printf("q. quit\n");

}

printf("Bye.\n");

return 0;

Read more about programming here:

https://brainly.com/question/23275071

#SPJ1

1. To partition and format a hard drive when no operating system has been installed, you may use either _______________ or _______________ to boot the system and run disk setup utilities.

Answers

To partition and format a hard drive when no operating system has been installed, you may use either GParted or Windows installation media to boot the system and run disk setup utilities.

What is a hard drive?

A hard drive simply refers to an electro-mechanical, non-volatile data storage device that is made up of magnetic disks (platters) that rotates at high speed.

What is a partition?

Partition can be defined as a terminology which is used to describe the division of a hard-disk drive into two or more fragments.

In Computer technology, GParted or Windows installation media should be used to boot a computer system and run disk setup utilities, especially when you wish to partition and format a hard drive when there is no operating system (OS) installed.

Read more on hard drive partition here: brainly.com/question/14987710

#SPJ1

Complete Question:

To partition and format a hard drive when no operating system has been installed, you may use either__ or __ to boot the system and run disk setup utilities.

Please choose from a list of words:

basic disk

chkdsk

defragmentation

Disk Cleanup

Disk Management

dynamic disk

Error-checking

format

GParted

partition

volumes

Windows installation media

Edit the program provided so that it receives a series of numbers from the user and allows the user to press the enter key to indicate that he or she is finished providing inputs. After the user presses the enter key, the program should print:

The sum of the numbers
The average of the numbers
An example of the program input and output is shown below:

Enter a number or press Enter to quit: 1
Enter a number or press Enter to quit: 2
Enter a number or press Enter to quit: 3
Enter a number or press Enter to quit:

The sum is 6.0
The average is 2.0

This is what I have but it just keep going with the numbers
# Edit the code below
theSum = 0.0
count = 0
while True:
number= input("Enter a number or press Enter to quit:")
if number=="":
break
theSum+=float(number)
count+=1
print("The sum is", theSum)
if count>0:
print("The average is ", theSum/count)

Answers

The edited and complete program is as follows

theSum = 0.0

count = 0

while True:

   number= input("Enter a number or press Enter to quit:")

   if not number:

       print("The sum is", theSum)

       if count>0:

           print("The average is ", theSum/count)

       exit()

   theSum+=float(number)

   count+=1

How to edit the program?

The complete program that calculates the average and the sum of numbers entered by the user is as follows:

Note that the program ends when the user presses the enter key and comments are used to explain each line

#This initializes the sum

theSum = 0.0

#This initializes the counter

count = 0

#This ensures the user enters numbers repeatedly

while True:

   #This gets the input

   number= input("Enter a number or press Enter to quit:")

   #When the user presses enter

   if not number:

       #This prints the sum and the average

       print("The sum is", theSum)

       if count>0:

           print("The average is ", theSum/count)

       #This exits the program

       exit()

   #This calculates the sum

   theSum+=float(number)

   count+=1

Read more about python programs at

https://brainly.com/question/26497128

#SPJ1

write a script that(1) gets from a user: (i) a paragraph of plain text and (ii) a distance value.distance value. next, (2) encrypt the plaintext using caesar cipher and (3) output (print) this paragraph into an encrypted text. (4) write this text to file called ‘encryptfile.txt’ and print the text file. Then (5) read this file and write it to a file named ‘copyfile.txt’ and print text file.

Answers

A script that(1) gets from a user: (i) a paragraph of plain text and (ii) a distance value.distance value. next, encrypts the text using Caeser cipher, then prints it as an encrypted text given below:

The below script also reads the file and then writes it to a file named ‘copyfile.txt’ and print the text file.

The Script

mapping = {}

with open ( " copyfile . txt " , " r " ) as keyFile:

   for line in copyFile:

      l1, l2 = line . split ( )

       mapping [ upper ( l1 ) ] = upper ( l2 )

       decrypt = " "

       with open ( " encrypted.txt " , " r " ) as encryptedFile:

           for line in encryptedFile:

               for char in line:

                   char = upper ( char )

                   if char in mapping:

                       decrypt + = mapping [ char ]

                   else:

                       decrypt += char print ( decrypt )

Read more about programming here:

https://brainly.com/question/16397886

#SPJ1

Jeremiah is interested in becoming a certified nursing assistant. Which educational path is probably the BEST fit for this goal?

A.
university

B.
college

C.
vocational school

D.
entrepreneur academy

Answers

Answer:

Explanation: WE can do it justin university

Consider two packet switches directly connected by a link of 5000 km,
propagation speed 2.5 X10^8 m/s and transmission rate 1 Mbps. How long does it take to move
a packet of length 1,000 bytes from one packet switch to the other packet switch? Generally,
how long does it take to move a packet of length L over a link of distance d, propagation speed
s, and transmission rate R bps?

Answers

The time that is required for the packet to move over the the distance d at the speed s is  0.028 seconds.

The speed that It would take to move it in transmission is given as 0.008 seconds.

How to solve for the required time

The details that we would have to solve the problem that we have here are given below

The distance = 5000 km, we convert to meters = 5000 * 1000

The speed of the propagation is given as (s) 2.5 x 108 m/s

The propagation delay is given as d / s

= 5000000 / 2.5 x 10^8

= 0.02 this is the value of the propagation

Next we have to find the length of the packet. L = 1000 bytes

this is equal to 8000 bits

The transmission rate is 1 Mbps = 1000000 bits

The transmission delay would be = L/R

= 8000 / 1000000

= 8 / 1000

= 0.008 seconds in transmission

The total required time that is to be gotten would be

Propagation + transmission

= 0.02 + 0.008

= 0.028

Read more on transmission rate here:

https://brainly.com/question/13013855

#SPJ1

Other Questions
a group of locals who testified in a trial is called? Mrs. argueta needed to fill up her gas tank. gas cost $3.66 per gallon and she needed 9 1 2 gallons. how much did it cost mrs. argueta to fill up her tank? Write a formal letter on request your principal to open a computer club in your school? Please answer both questions below (will mark Brainliest if correct) 1. PRE (Progressive Resistance Exercise) is a method of building muscular fitness.(True or False)2. MS&E Intensity can be measured using the pounds lifted of your equipment, your own bodyweight, or the number of sprint intervals you plan for your workout.(True or False) bruce and carol are discussing an upcoming business trip after carol returned from a mandatory leave of absence. carol laughs and makes eye contact with bruce, joking about the length of the trip. the laughter and joking are what layer of their interaction? If f(x) = 4x6 + x + 4, then what is the remainder when f(x) is divided by x -1? after watching a recent news item about whether to keep indivudals in a persisten vegetative state on life support or not you fell stonrgly that you would like to specify what care Someone please help me!!! ( I'll mark brainliest ) Whats the correct answer answer asap for brainlist 7. If Antonio makes x dollars per regular hours, and his boss tells him that he isgoing to get paid over time at double time, write an equation to find his hourlyrate if he makes $1578.5 working 55 hours this week. PLEASE HELP!: I'm so confused about what equations to write for the problem. All I need is the equations and I can solve it alone! I'll give brainly!You invest $8,000 in 3 investment accounts. The accounts are: paper, metal, and glass. Paper returns 2% income, metal returns 4% income, and glass returns 5% income. The amount invested in the glass account was double the amount invested in the metal account. The yield was a total of $280 at the end of one year. How much was invested in each account? find the number of sides of a regular polygonwhose exterior angle measure 18 Why water and air are compounds while carbon and gold are elements Karen is driving her moterhome. It uses 3 gallons of gas for every 24 milesComplete the table below showing the number of gallons used and the distance traveled.( The table is 3,24 6, ? 7,? ? , 72 and 10, ?) Four students, Naomi, Nathan, Jonathan, and Carson, line up one behind the otherHow many different ways can they stand in line? Bob makes some fruit punch that contains apple and mango juice in a 1:5 ratio. If he uses 15 pints of the mango juice how many pints of apple juice will he need Cliff divers at acapulco jump into the sea from a cliff 30.3 m high. at the level of the sea, a rock sticks out a horizontal distance of 7.94 m. the acceleration of gravity is 9.8 m/^2 If nadine is beaming, is she likely to be happy or sad When you see iron (II) that means iron with 2 valence electrons, so what will thecharge be? What is the area of this face?4 in.4 in.4 in.1 in.1 in.16 in15 in17 in12 in