Why is it important for a programmer to write a code efficiently

Answers

Answer 1
Answer:

Answer:

There are various answers that are all correct.

Explanation:

An efficient code will take less time to compile and execute. It is less noticeable in small programs but in larger ones it becomes apparent. You would rather press start and have your program give you your values immediately rather than wait 20 seconds every time.

An efficient code will be easier for you to find mistakes in if there are errors when compiling, being smaller and easier to read.

It will be easier to make small changes to an efficient program that for example, used global variables instead of local ones (where applicable).

If the code will be used/viewed by other people in the future, an efficient code will help them to use the program with ease rather than trying to understand a potentially messier code.    

These are just some reasons that came to me off the top of my head, there could be more potential answers


Related Questions

Whats in a computer?
You have a DNS server outside your corporate firewall that's a standalone Windows Server 2016 server. It hosts a primary zone for your public Internet domain name, which is different from your internal Active Directory domain names. You want one or more of your internal servers to be able to handle DNS queries for your public domain and to serve as a backup for the primary DNS server outside the firewall. Which configuration should you choose for internal DNS servers?A. A standard secondary zone.B. A standard stub zone.C. A forwarder to point to the primary DNS server.D. An Active Directory-integrated stub zone.
In Excel, by default, text is ____ in a cell.
Question 1:Which of the following is involved in weathering?a. waterb. seafloor spreadingc. mountain buildingd.volcanoesQuestion 2:What types of rocks initially form from deposition?a. igneousb. sedimentaryc. metamorphicd. basalticQuestion 3 :Air, water, and ice can break rocks into tiny fragments. Which of the following best describes this process?a. erosionb. depositionc. weatheringd. sediment
Powerpoint displays many that are varied and appealing and give you an excellent start at designing a presentation

A way to minimize technical problems with your computer

Answers

Fix issues before they become a problem. Remember to back up your computer, Don't wait until the last minute. You could also buy Mcafee to protect your computer. Replace old equipment. Or you could look for a expert.

Describe three different camera shots the director uses in Casablanca. What effect does each of these shots have on the plot, mood, etc. of the film?

Answers

The movie Casablanca was considered as the standard for Classic Hollywood Movies. Below are the three different camera shots used by the Director in the movie:
1. The point of View Shot: also referred as POV shot. It is the camera shot where it shows what the character or the subject looking at in the film.
2.  Wide Shot: it also termed by others as the long shot or full shot. In the movie, it is the shot from a distance so the people or the characters will appear as indistinct shapes.
3. High angle Shot: In the film, it is the type of shot wherein the camera is placed above the subject with its lens pointing downward to make the subject small. Typically used in horror movies.

Given the int variables x, y, and z, write a fragment of code that assigns the smallest of x, y, and z to another int variable min. Assume that all the variables have already been declared and that x, y, and z have been assigned values.

Answers

Answer:

// here is code in C++.

#include <bits/stdc++.h>

using namespace std;

// main function

int main()

{

   // variables

   int x=5,y=2,z=9;

   int min;

   // find the smallest value and assign to min

   // if x is smallest

   if(x < y && x < z)

   // assign x to min

    min=x;

     // if y is smallest

else if(y < z)

 // assign y to min

    min=y;

// if z is smallest

else

 // assign z to min

    min=z;

// print the smallest

cout<<"smallest value is:"<<min<<endl;

return 0;

}

Explanation:

Declare and initialize variables x=5,y=2 and z=9.Then check if x is less than y and x is less than z, assign value of x to variable "min" .Else if value of y is less than value of z then smallest value is y, assign value of y to "min".Else z will be the smallest value, assign its value to "min".

Output:

smallest value is:2

Virtual offices that give everyone on a team access to the same set of resources and information are called

Answers

instant messaging document

Write a program to input the day of a week and print holiday if it is Saturday

Answers

DAY=int(input(“Please enter the number of day: ”))
if DAY==1:
… print(“The day is Monday and a working day”)
…elif DAY==2:
… print(“The day is Tuesday and a working day”)
…elif DAY==3:
… print(“The day is Wednesday and a working day”)
…elif DAY==4:
… print(“The day is Thursday and a working day”)
…elif DAY==5:
… print(“The day is Friday and a working day”)
…elif DAY==6:
… print(“The day is Saturday and a holiday”)
…elif DAY==7:
… print(“The day is Sunday and a working day”)
…else:
… print(“Invalid number”)

What do you know about editing and formatting text in word processing pakage?explain​

Answers

Answer:

maybe you can use Grammarly

Explanation: