In the Programming Process which of the following is not involved in defining what the program is to do:_____________ Group of answer choices

a. Compile code
b. Purpose
c. Output
d. Input
e. Process

Answers

Answer 1

Answer:

a. Compile code

Explanation:

In programming process, the following are important in defining what a program is to do;

i. Purpose: The first step in writing a program is describing the purpose of the program. This includes the aim, objective and the scope of the program.  The purpose of a program should be defined in the program.

ii. Input: It is also important to specify inputs for your program. Inputs are basically data supplied to the program in order to perform a task. Valid inputs are defined in the program.

iii. Output: Many times, when inputs are supplied to a program the resulting effects are shown in the outputs. The way the output will be is defined in the program.

iv. Process: This involves the method by which inputs are being mapped into outputs. The process implements the functionality of the program by converting inputs into their corresponding outputs. The process is defined in the program.

Compile code is not a requirement in defining what a program is to do. It just allows the source code of the program to be converted into a language that the machine understands.


Related Questions

Implement the function:

string get_ap_terms(int a, int d, size_t n);

which returns a string containing the first n terms of the arithmetic progression (AP) as a sequence of comma-separated values.

Answers

Answer:

This is written in C++

Check comments for explanations

Program starts here

#include<iostream>

#include<string>

using namespace std;

//The function get_ap_terms begins here

string get_ap_terms(int a, int d, int size_tn)

{  

// This line initializes the expected string to empty string

string result = "";

//The for iteration loops through the number of terms the function is expected to return

for(int i = 1; i<= size_tn;i++)

{

//This line checks if the loop is less than the number of  terms    

if(i < size_tn)

  {

//This string gets the current term of the progression

   result+=to_string(a)+ ", ";

//This line calculates the next term

   a+=d;  

  }

  else

  {

//This line calculates the last term

   result+=to_string(a);

  }

}

//This line returns the string containing the first n terms of the arithmetic progression

return result;

}

//The main function starts here

int main()

{

//This line declares the first term (a), the common difference (d) and the number of terms (size_tn)

int a,d,size_tn;

//This line prompts the user for the first term

cout<<"First Term: ";

//This line gets the first term

cin>>a;

//This line prompts the user for the common difference

cout<<"Common Difference: ";

//This line gets the common difference

cin>>d;

//This line prompts the user for number of terms

cout<<"Number of Terms: ";

//This line gets the number of terms

cin>>size_tn;

//This line calls the function to print the string containing the first n terms

cout<<get_ap_terms(a, d, size_tn);

return 0;

}

//Program ends here

If you have taken any drugs, it's not safe to drive.
A. True
B. False

Answers

Answer:

True

Explanation:

It is risky to drive while you are on drugs!

The is_positive function should return True if the number received is positive, otherwise it returns None. Can you fill in the gaps to make that happen?

Answers

Question:

The is_positive function should return True if the number received is positive, otherwise it returns None. Can you fill in the gaps to make that happen?

def is_positive(number):

       if  _____ :

           return _____

Answer:

def is_positive(number):

   if (number > 0):

       return True

  else:

       return "None"

---------------------------------------------------------------------------------

Code Test and Sample Output:

print(is_positive(6))

>> True

print(is_positive(-7))

>> None

----------------------------------------------------------------------------------

Explanation:

The code above has been written in Python.

Now, let's explain each of the lines of the code;

Line 1: defines a function called is_positive which takes in a parameter number. i.e

def is_positive(number):

Line 2: checks if the number, supplied as parameter to the function, is positive. A number is positive if it is greater than zero. i.e

if (number > 0):

Line 3: returns a boolean value True if the number is positive. i.e

return True

Line 4: defines the beginning of the else block that is executed if the number is not positive. i.e

else:

Line 5: returns a string value "None" if the number is not positive. i.e

return "None"

All of these put together gives;

===============================

def is_positive(number):

   if (number > 0):

       return True

   else:

       return "None"

================================

An example test of the code has also been given where the function was been called with an argument value of 6 and -7. The results were True and None respectively. i.e

print(is_positive(6))   = True

print(is_positive(-7))  = None

Following are the python program to check input number is positive or negative:

Program:

def is_positive(n):#defining the method is_positive that takes one variable in parameter

   if (n > 0):#defining if block that check input number is positive

       return True#return boolean value that is True

   else:#else block

      return "None"#return string value

n=int(input("Enter number: "))#defining n variable that input a number

print(is_positive(n))#using print method that calls and prints method return value

Output:

please find the attached file.

Program Explanation:

Defining the method "is_positive" that takes one variable "n" in the parameter.Inside the method, if conditional block is defined that checks the input number is positive, if it's true, it will return a boolean value that is "True". Otherwise, it will go to the else block, where it will return a string value that is "None".Outside the method, the "n" variable is declared to be an input number.After the input value, a print method is used that calls the "is_positive" method and prints its return value.

Find out more about the method here:

brainly.com/question/5082157

James has a USB flash drive that he has used at work. The drive needs to be thrown away, but James wants to make sure that the data is no longer on the drive before he throws it away. What can James use to wipe the data clean?

a. Zero-fill utility
b. Format the drive
c. ATA Secure Erase
d. Smash the USB drive

Answers

Answer:

C. ATA Secure Erase

D. Smash the USB drive

Explanation:

Zero fill utility is a specialized way of formatting a storage device particularly secondary storage such as hard disk, flash drive e.t.c. In this process, the disk contents are overwritten with zeros. Once this has been done, undoing is essentially hard but possible. In most cases, this might just mean that the data content is corrupt and as such might still be recovered, maybe not in its pure entirety.

Formatting the drive on another hand does not essentially mean cleaning the drive and wiping off data. It just means that operating systems cannot see those data contents anymore. They are still present in the drive and can be recovered.

ATA Secure Erase is actually a way of completely and permanently erasing the content in a drive. Once the function has been done, undoing is not possible. Both the data content and even the data management table will be completely gone.

Smashing the USB drive is the surest way of cleaning data as that will permanently destroy the working components of the drive such as the memory chip. And once that happens then there's no drive let alone its contents.

All the protocol layers of the internet (Application, Transport. Network) were originally without any security. TLS is one of the security architectures added later. In the Internet protocol stack. TLS is located:________. 1. right above the application layer 2. right below the application layer 3. right below the transport layer 4. right above the IP layer

Answers

Answer:

2. right below the application layer

Explanation:

TLS (Transport Layer Security) is an improved and more secured version of the SSL (Secure Socket Layer) used as cryptographic protocol for providing authentication and encryption over a network. It is initialized at the transport layer of the IP stack and finalized at the application layer. In other words, it is located between the transport and application layer of the Internet protocol stack. And this is necessary so that data received in the application layer from the transport layer are protected from start to end between these two layers.

Therefore, it is safe to say that the TLS is located right below the application layer.  

DOLLAR GENERAL
x
Knowledge Check
Non-employees are allowed in the store before the store opens and after
closing time.
True
False
SUBMIT​

Answers

Answer:

False

Explanation:

Unless authorized by a manager. Only staff members are allowed in the store before and after normal store hours.

Answer:

The correct answer is

False

If you are not an employee you are not allowed in stores before opening hours or after closing time. The only times non-staff are allowed in the store is for purchasing of products during hours of operation.h

Hope this helps!

Other Questions
If you took $1,000 and put it into an interest-bearing savings account compounding quarterly at 3%, how much would your fund be worth at the end of one year? A: $1,030.00 B: $1,120.00 C: $1,030.34 D: $1,120.33 3. 10 + (8 x 3) - 32 Find the volume of a cylinder that has the following dimensions. Do not round your answer. (Use 3.14 for pi.)Radius = 5 cmHeight = 0.25 mVolume = __ cm3 Thomas Paine was an English American __________ who wrote pamphlets that influenced many people and were instrumental in starting the American Revolution. He skillfully communicated the ideas of the Revolution to everyone, from farmers to intellectuals. If the purpose of this paragraph is to inform, which word best fits in the blank? writer person activist man Help me with this somebody. The surnames of 40 children in a class arranged in alphabetical order. 16 of the surnames begins with O and 9 of the surname begins with A, 14, of the letters of the alphabet do not appear as the first letter of a surname If more than one surname begins with a letter besides A and O, how may surnames begin with that letter? A gym for diabetes is offering a deal to new members. Customers can sign up by paying a registration fee of $250 and a monthly fee of $42. Which of thefollowing models the membership cost? How have search engines like Google, Bing, and Yahoo! revolutionized the ability to do research? They are more difficult to access than the library. They provide only information from reliable sources. They provide immediate access to information on the web. They take longer than using a card catalog but provide only expert sources. I need help with this Waterway, Inc. manufactures two products: missile range instruments and space pressure gauges. During April, 50 range instruments and 200 pressure gauges were produced, and overhead costs of $87,550 were estimated. An analysis of estimated overhead costs reveals the following activities. Activities Cost Drivers Total Cost 1. Materials handling Number of requisitions $40,800 2. Machine setups Number of setups 25,750 3. Quality inspections Number of inspections 21,000 $87,550The cost driver volume for each product was as follows.Cost Drivers Instruments Gauges TotalNumber of requisitions 420 630 1,050Number of setups 225 260 485Number of inspections 265 225 490Air United, Inc. manufactures two products: missilAir United, Inc. manufactures two products: missil Determine the overhead rate for each activity.Overhead RateMaterials handling $Machine setups $Quality inspections $ Which statement describes one feature of a mineral's definite chemical composition?It always occurs in pure form.It always contains certain elements.It cannot form from living or once-living materials.It cannot contain atoms from more than one element.N Who was pitagoras ??????????? the type of writing that sumerians invented was hieroglyphics. t or f Read the passage from Animal Farm. It had come to his knowledge, he said, that a foolish and wicked rumour had been circulated at the time of Boxer's removal. Some of the animals had noticed that the van which took Boxer away was marked "Horse Slaughterer," and had actually jumped to the conclusion that Boxer was being sent to the knacker's. It was almost unbelievable, said Squealer, that any animal could be so stupid. Surely, he cried indignantly, whisking his tail and skipping from side to side, surely they knew their beloved Leader, Comrade Napoleon, better than that? But the explanation was really very simple. The van had previously been the property of the knacker, and had been bought by the veterinary surgeon, who had not yet painted the old name out. That was how the mistake had arisen. Which statement best expresses the theme of the passage? Workers need to organize for better health care. Dictatorships use lies to manipulate the populace. Sometimes, you cannot trust what you see with your own eyes. Relying on others is the only way to get through difficult times. On which body would a 10 kg lamp have the most gravitational potential energy when lifted to height of 2 m? A) Earth B) Mars C) Neptune D) Uranus Which type of medication is methylphenidate? Ideally, you should develop a risk management plan for a specific project because _________A. Engaging in planning activities demonstrates professionalism B. Your boss is committed to using project management techniques in every project C. The scale of a particular project the size and complexity require it D. The Project Management Institute recommends it What is 2x + 2x + 2 = 4x + 2 Ways in which you could participate in activities at school to eradicate acts ofhuman rights violations. AWARDING BRAINIEST Find the perimeter of the following shape, rounded to the nearest tenth: a coordinate plane with quadrilateral ABCD at A negative 2 comma 0, B 0 comma negative 2, C negative 3 comma negative 5, D negative 5 comma negative 3A) 10B) 11.3C) 12D) 14.1