Program is set of instruction written in programming language.​

Answers

Answer 1

Answer:

Program is set of instruction written in programming language.

 program is a collection of instructions that can be executed by a computer to perform a specific task


Related Questions

9.18 LAB: Exact change - methods Write a program with total change amount as an integer input that outputs the change using the fewest coins, one coin type per line. The coin types are dollars, quarters, dimes, nickels, and pennies. Use singular and plural coin names as appropriate, like 1 penny vs. 2 pennies. Ex: If the input is:

Answers

Answer:

Explanation:

The following code is written in Java. It asks the user to enter the amount of change needed. This is done as a double since we are dealing with coins and not full dollar values alone. It then makes the necessary calculations to calculate the number of each coin needed and outputs it back to the user. A test case has been provided in the picture below with a sample output.

import java.util.Scanner;

class Brainly {

   public static void main(String[] args) {

       int dollars = 1;

       double quarters = 0.25;

       double dimes = 0.10;

       double nickels = 0.05;

       double pennies = 0.01;

       Scanner in = new Scanner(System.in);

       System.out.println("Enter Change Value: ");

       double change = in.nextDouble();

       int numDollars, numQuarters, numDimes, numNickels, numPennies;

       double newChange;

       numDollars = (int) (change / dollars);

       newChange = change % dollars;

       numQuarters = (int) (newChange / quarters);

       newChange = newChange % quarters;

       numDimes = (int) (newChange / dimes);

       newChange = newChange % dimes;

       numNickels = (int) (newChange / nickels);

       newChange = newChange % nickels + 0.001;

       numPennies = (int) (newChange / pennies);

       newChange = newChange % pennies;

       

       System.out.println("Minimum Num of Coins needed: ");

       if (numDollars != 1) {

           System.out.println(numDollars + " Dollars");

       } else {

           System.out.println(numDollars + " Dollar");

       }

       if (numQuarters != 1) {

           System.out.println(numQuarters + " Quarters");

       } else {

           System.out.println(numQuarters + " Quarter");

       }

       if (numDimes != 1) {

           System.out.println(numDimes + " Dimes");

       } else {

           System.out.println(numDimes + " Dime");

       }

       if (numNickels != 1) {

           System.out.println(numNickels + " Nickels");

       } else {

           System.out.println(numNickels + " Nickel");

       }

       if (numPennies != 1) {

           System.out.println(numPennies + " Pennies");

       } else {

           System.out.println(numPennies + " Penny");

       }

   }

}

The program is an illustration of conditional statements

Conditional statements are used to make decisions

The program in C++ where comments are used to explain each line is as follows

#include<iostream>

using namespace std;

int main() {

// This line declare all the variables

int amount, dollar, quarter, dime, nickel, penny;

// This prompts the user for input (i.e. the amount)

cout<<"Amount: ";

//This gets the amount from the user

cin>>amount;

// This checks if the amount is 0 or less

if(amount<=0)  {

//This prints "No Change"

cout<<"No Change";

}

//If the amount is greater than 0

else {

// These convert the amount to various coins

dollar = amount/100;

amount = amount%100;

quarter = amount/25;

amount = amount%25;

dime = amount/10;

amount = amount%10;

nickel = amount/5;

penny = amount%5;

// The next lines print the coins

if(dollar>=1)  {

if(dollar == 1) {

cout<<dollar<<" dollar\n"; }

else {

cout<<dollar<<" dollars\n"; }

}

if(quarter>=1) {

if(quarter== 1) {

cout<<quarter<<" quarter\n";

}

else {

cout<<quarter<<" quarters\n";

}

}

if(dime>=1) {

if(dime == 1) {

cout<<dime<<" dime\n";

}

else {

cout<<dime<<" dimes\n";

}

}

if(nickel>=1) {

if(nickel == 1) {

cout<<nickel<<" nickel\n";

}

else {

cout<<nickel<<" nickels\n";

}

}

if(penny>=1) {

if(penny == 1) {

cout<<penny<<" penny\n";

}

else {

cout<<penny<<" pennies\n";

}

}

}

return 0;

}

Read more about conditions at:

https://brainly.com/question/15683939

Major findings of evolution of computers

Answers

Answer:

twitt

Explanation:

A pharmaceutical company is using blockchain to manage their supply chain. Some of their drugs must be stored at a lower temperature throughout transport so they installed RFID chips to record the temperature of the container.

Which other technology combined with blockchain would help the company in this situation?

Answers

Answer:

"Artificial Intelligence" would be the correct answer.

Explanation:

Artificial intelligence through its generic definition seems to be a topic that integrates or blends computer technology with sturdy databases to resolve issues.Perhaps it covers particular fields of mechanical acquisition including profound learning, which can sometimes be referred to together alongside artificial intellect.

Thus the above is the correct answer.

A process needs 103 KB of memory in order to run. If the system on which it is to run uses paging with 2 KB pages, how many frames in memory are needed

Answers

Answer: 52

Explanation:

Following the information given in the question, we are informed that a process needs 103 KB of memory in order to run and that the system on which it is to run uses paging with 2KB pages, then the number of frames in memory that are needed will be:

= 103/2

= 51.5

= 52 approximately

Therefore, 52 frames in memory are needed.

why concurrency control is needed in transaction.
And why Acid properties in transaction is important.

Answers

Explanation:

Concurrency Control in Database Management System is a procedure of managing simultaneous operations without conflicting with each other. It ensures that Database transactions are performed concurrently and accurately to produce correct results without violating data integrity of the respective Database.And The ACID properties, in totality, provide a mechanism to ensure correctness and consistency of a database in a way such that each transaction is a group of operations that acts a single unit, produces consistent results, acts in isolation from other operations and updates that it makes are durably stored.

How many fingers do you need to type floor

Answers

Answer:

About 0-1 fingers at minimum

Explanation:

you can type with your toes/elbow as well. Any body part really.

To type the word "floor" on a regular keyboard layout, you would generally need six fingers: three on your left hand and three on your right.

Your index finger (usually used for the "F" key) on your left hand would be utilised for the letter "f." Your middle finger (which is normally used for the "D" key) would be utilised for the letter "l."

Finally, your ring finger (which is normally used for the "S" key) would be utilised for the letter "o."

Your index finger (usually used for the "J" key) on your right hand would be utilised for the letter "o." Your middle finger (which is normally used for the "K" key) would be utilised for the second letter "o."

Finally, your ring finger (which is normally used for the "L" key) would be utilised for the letter "r."

Thus, on a typical keyboard layout, you would type the word "floor" with three fingers from each hand.

For more details regarding Keyboard layout, visit:

https://brainly.com/question/17182013

#SPJ6

what is the meaning of compiler​

Answers

Answer:

in computing it means a program that converts instructions into a machine-code or lower-level form so that they can be read and executed by a computer.

If you fail a course as a MAIN (residency) course, you can repeat that course as either a MAIN (residency) or an online (IG or IIG) course.
A. True
B. False

Answers

it depends on where you are taking your courses. In most cases the answer would be true

what is the process by which we can control what parts of a program can acccess the members of class

Answers

Answer:

Encapsulation.

Explanation:

Information hiding involves using private fields within classes and it's a feature found in all object-oriented languages such as Java, Python, C#, Ruby etc.

In object-oriented programming language, a process known as encapsulation is used for the restrictions of the internal data of a software program from the outside code, therefore preventing an unauthorized direct access to the codes. This is achieved through the use of classes.

In Computer programming, class members can be defined as the members of a class that typically represents or indicates the behavior and data contained in a class.

Basically, the members of a class are declared in a class, as well as all classes in its inheritance hierarchy except for destructors and constructors.

In a class, member variables are mainly known as its attributes while its member function are seldomly referred to as its methods or behaviors.

One of the main benefits and importance of using classes is that classes helps to protect and safely guard their member variables and methods by controlling access from other objects.

Therefore, the class members which should be declared as public are methods and occasionally final attributes because a public access modifier can be accessed from anywhere such as within the current or external assembly, as there are no restrictions on its access.

Long Answer Questions: a. Briefly explain the types of Control Structures in QBASIC.​

Answers

Answer:

The three basic types of control structures are sequential, selection and iteration. They can be combined in any way to solve a specified problem. Sequential is the default control structure, statements are executed line by line in the order in which they appear.

Write a simple nested loop example that sums the even and odd numbers between 5 and 15 and prints out the computation.

Answers

Answer:

for e in range(6, 15, 2):

for o in range(5, 15, 2):

calc = e+o

print(e, "+", o, "=", calc)

Explanation:

To connect several computers together, one generally needs to be running a(n) ____ operating system

Answers

Answer:

Local Area Network

Explanation:

In the Information technology it is called Local Area Network.

Write code that prints: Ready! userNum ... 2 1 Go! Your code should contain a for loop. Print a newline after each number and after each line of text. Ex: If the input is: 3 the output is: Ready! 3 2 1 Go!

Answers

Answer:

Kindly find the code snippet in the explanation written in kotlin language

Explanation:

fun main(args: Array<String>) {

   var num:Int

   println("Enter a num")

    num= Integer.valueOf(readLine())

   for(i in num downTo 1){

       if(i==num){

           print("Ready!")

           print(" ")

       }

       print(i)

       print(" ")

       if(i==1){

           print(" ")

           print("Go!")

       }

   }

}

This function too can also work

fun numTo(num:Int){

   if (num>0) for(i in num downTo 1) print("$i ")

   println("Go!")

what is the data type name for integer?​

Answers

Answer:

the data type name for integer is int

Hope This Helps!!!

Explanation:

the integer data type ( int ) is used to represent whole numbers that can be stored within 32-bits. The big integer data type ( bigint ) is used to represent whole numbers that are outside the range of the integer data type and can be stored within 64 bits.

Write a class called Student that has two private data members - the student's name and grade. It should have an init method that takes two values and uses them to initialize the data members. It should have a get_grade method.

Answers

Answer:

Explanation:

The following class is written in Python as it is the language that uses the init method. The class contains all of the data members as requested as well as the init and get_grade method. It also contains a setter method for both data variables and a get_name method as well. The code can also be seen in the attached image below.

class Student:

   _name = ""

   _grade = ""

   def __init__(self, name, grade):

       self._name = name

       self._grade = grade

   def set_name(self, name):

       self._name = name

   def set_grade(self, grade):

       self._grade = grade

   def get_name(self):

       return self._name

   def get_grade(self):

       return self._grade

Write a programmer defined function that compares the ASCII sum of two strings. To compute the ASCII sum, you need to compute the ASCII value of each character of the string and sum them up. You will thus need to calculate two sums, one for each string. Then, return true if the first string has a larger ASCII sum compared to the second string, otherwise return false. In your main function, prompt the user to enter two strings with a suitable message and provide the strings to the function during function call. The user may enter multiple words for either string. Then, use the Boolean data returned by the function to inform which string has the higher ASCII sum.

Answers

Answer:

The program in Python is as follows:

def ASCIIsum(str1,str2):

   asciisum1 = 0;    asciisum2 = 0

   for chr in str1:

       asciisum1 += (ord(chr) - 96)

   for chr in str2:

       asciisum2 += (ord(chr) - 96)

   if asciisum1 > asciisum2:

       return True

   else:

       return False

str1 = input("Enter first string: ")

str2 = input("Enter second string: ")

if ASCIIsum(str1,str2) == True:

   print(str1,"has a higher ASCII value")

else:

   print(str2,"has a higher ASCII value")

Explanation:

This defines the function

def ASCIIsum(str1,str2):

This initializes the ascii sum of both strings to 0

   asciisum1 = 0;    asciisum2 = 0

This iterates through the characters of str1 and add up the ascii values of each character

   for chr in str1:

       asciisum1 += (ord(chr) - 96)

This iterates through the characters of str2 and add up the ascii values of each character

   for chr in str2:

       asciisum2 += (ord(chr) - 96)

This returns true if the first string has a greater ascii value

   if asciisum1 > asciisum2:

       return True

This returns false if the second string has a greater ascii value

   else:

       return False

The main begins here

This gets input for first string

str1 = input("Enter first string: ")

This gets input for second string

str2 = input("Enter second string: ")

If the returned value is True

if ASCIIsum(str1,str2) == True:

Then str1 has a greater ascii value

   print(str1,"has a higher ASCII value")

If otherwise

else:

Then str2 has a greater ascii value

   print(str2,"has a higher ASCII value")

Which operating system desktop or mobile is the best

Answers

Answer:

bing or alien ware is the best.

Answer:

Your choice, but personally, desktop is better.

Explanation:

Desktop devices have portrait orientations so content can stretch across a screen and often multiple messages or images can live comfortably in such a wide space. Mobile devices are usually used in portrait orientation (and the smaller screens mean that even in landscape mode, horizontal space is limited).

You are between flights at the airport and you want to check your email. Your wireless settings show two options:
a) a free unsecured site called TerminalAir and b) a pay-by-the-hour site called Boingo.
Which one is likely to be the most secure?

Answers

The correct answers Is B

shooting phases in film and video editing​

Answers

Answer:

Filmmaking involves a number of complex and discrete stages including an initial story, idea, or commission, through screenwriting, casting, shooting, sound recording and pre-production, editing, and screening the finished product before an audience that may result in a film release and an exhibition.

Write a program that reads a list of words. Then, the program outputs those words and their frequencies. Ex: If the input is: hey hi Mark hi mark

Answers

Answer:

The program in Python is as follows:

wordInput = input()

myList = wordInput.split(" ")

for i in myList:

   print(i,myList.count(i))

Explanation:

This gets input for the word

wordInput = input()

This splits the word into a list using space as the delimiter

myList = wordInput.split(" ")

This iterates through the list

for i in myList:

Print each word and its count

   print(i,myList.count(i))

How can COUNTIF, COUNTIFS, COUNT, COUNTA, and COUNTBLANK functions aide a company to support its mission or goals

Answers

Answer:

Following are the responses to these questions:

Explanation:

It employs keywords to autonomously do work tasks. Users can type numbers directly into the formulas or use the following formulae, so any data the cells referenced provide would be used in the form.

For instance, this leadership involves accounting, and Excel is concerned with organizing and organizing numerical data. In this Equation, I can discover all its information in the data. This idea is simple me count the number many cells containing a number, and also the number of integers. It counts integers in any sorted number as well. As both financial analysts, it is helpful for the analysis of the data if we want to maintain the same number of neurons.

????????????????????????? ???????????????

Answers

Answer:

sorry, I don't know what that is

Illustrate why Sally's slide meets or does not meet professional expectations?
Describe all the things Sally can improve on one of her slides?
Suggest some ways Sally can learn more PowerPoint skills.

Answers

The correct answer to this open question is the following.

Unfortunately, you did not provide any context or background about the situation of Sally and the problem with her slides. We do not know it, just you.

However, trying to be of help, we can comment on the following general terms.

When someone does not meet professional expectations, this means that this individual did not prepare her presentation, lacked technical skills, did not included proper sources, or missed the proper visual aids to make the presentation more attractive and dynamic.

What Sally can improve about her slides is the following.

She can design a better structure for the presentation to have more congruence.

Sally has to clearly establish the goal or goals for her presentation.

She has to add many visuals instead of plain text. This way she can better capture the interest of her audience.

If she can use more vivid colors instead of pale or dark ones, that would be best.

No paragraphs unless necessary. She better uses bullet points.

Take care of the tone of her voice. During her practice, she can record her vice to check how it sounds.

The values of existing data can be modified using the SQL ________ command, which can be used to change several column values at once.

Answers

Answer:

The values of existing data can be modified using the SQL ___Update_____ command, which can be used to change several column values at once.

Explanation:

However, if you are interested in modifying some columns, then you must specify the columns of interest by using Update (table name) Set column1, column2, etc., which assigns a new value for the columns that you want to update, with each column value separated by a comma.  The SQL (Structured Query Language) Update command is used to update data of an existing database table.

command create database in oracle database ::((

Answers

Answer:

kdkskskiisidiodoosooddodod

Which of the following was one reason why electronic (computer-based) information sharing was challenging in the not too distant past?
a. Individuals and/or members of organizations did not speak the same language.
b. Hardware and software applications on either end could not talk to one another.
c. The most powerful computers were owned by large companies.
d. Organizations needed to protect information for competitive advantage.

Answers

Answer:

B. Hardware and software applications on either end could not talk to one another.

Explanation:

The answer to this question is that making connection to the internet used to be very slow, it's operation was difficult and so was its maintenance. Therefore they could be said to be unreliable at the time making electronic information sharing difficult as well as challenging. From this explanation the right answer to this question is answer option b.

Thank you.

Usually, in organizations, the policy and mechanism are established by the:

CEO

Team of Exectives

Board of Directors

Stakeholders

none of these

Answers

Answer:

Team of exectives

Explanation:

This is right answer please answer my question too

Write a method swapArrayEnds() that swaps the first and last elements of its array parameter. Ex: sortArray

Answers

I understand you want a function that swaps the first and last element of an array so that the first element takes the last one's value and vice versa.

Answer and Explanation:

Using Javascript programming language:

function swapArrayEnds(sortArray){

var newArray= sortArray.values();

var firstElement=newArray[0];

newArray[0]=newArray[newArray.length-1];

newArray[newArray.length-1]=firstElement;

return newArray;

}

var exampleArray=[2, 5, 6, 8];

swapArrayEnds(exampleArray);

In the function above we defined the swapArray function by passing an array parameter that is sorted by swapping its first and last element. We first get the elements of the arrayvusing the array values method. We then store the value of the first element in the variable firstElement so that we are able to retain the value and then switch the values of the first element before using the firstElement to switch value of the last element. We then return newArray and call the function.

Discuss why databases are important in accounting information systems. Describe primary and foreign keys, normalization and database cardinalities. Why are each important to the database design

Answers

Answer:

ensure integrity. primary key is unique key..foreign key is to connect 2 table.normalization to ensure you keep track on what you should do to create db..

you are installing two new hard drives into your network attached storage device your director asks that they be put into a raid solution that offers redundndancy over performance which would you use

Answers

Question options:

a. RAID 0

b. RAID 1

c. RAID 5

d. RAID 6

e. RAID 10

Answer:

d. RAID 6

Explanation:

RAID is Redundant Array of Inexpensive/Independent Disks. RAID combines low cost physical hard disk drives in one hard disk drive. RAID is used to achieve data redundancy(data backup but with synchronization) or improved performance or both.

To get what the director requires he would need to use RAID 6. RAID 6 is RAID level optimized to achieve data redundancy but with slow performance.

Other Questions
Why is objectivity so important to historical accounts? Rewrite the sentences using the words given. 1. It wasn't a good idea to leave your rubbish on the beach. (shouldn't ) You_____________________________2. The most logical explanation is that someone stole the paintings form the art gallery. (must) Someone________________________3. It wasn't necessary to ask Paul to come and help us. (need) You____________________________4. I think Louise drew the dragon on the wall. (may) Louise___________________________ What is the complementary DNA strand for this DNA strand : GTTACGAACT Ammonia and oxygen react to form nitrogen monoxide and water. Construct your own balanced equation to determine the amount of NO and H2O that would form when 2.78 mol NH3 and 5.19 mol O2 react. What m-RNA strand would be formed from the DNA strand below?T G A C G T AA C T G C A T would Nepal be so beautiful if it were a plain, hill or mountain only ? discuss If Q is the midpoint of PR, find the coordinates of R if P(11,-2) and Q(4,3). Carla invest $10,000 into an account with a 2.2% interest rate that is compounded annually. How much money will she have in his account if she keeps her for five years? Round your answer to the nearest dollar can you help me do this Question if you can? Can someone help me with this math homework please! Explain how sunlight is the primary source of energy for your own life Mr. Harris earns $12 per hour for 40 hours of work. He earns $18 per hour for hours worked over 40. How many hours did he work if he earned $642? To leave the gravitational pull of the Earth, and explore other planets, satellites must have at least: 1. A basic assumption of the short run is that a firm: a. can employ more workers and add more capital to the production process. b. cannot adjust its workforce or the amount of capital it uses. c. can reduce the number of workers it uses, but it cannot adjust how much capital it uses. d. can freely adjust the amount of labor and capital that it Two students with masses of 40kg and 32 kg are sitting 22 m apart. What is the gravitational force of attraction between them? Use a half angle identity to find the exact value of tan 5pi/12a. 2+squared3/2b. 2-squared3/2C.2+squared 3D.2-squared3. Please select the best answer from the choices provided RSTN Co. produces its product through two sequential processing departments. Direct materials and conversion are added to the product evenly throughout the process. The company uses monthly reporting periods for its process costing system. During October, the company finished and transferred 150,000 units of its product to Department 2. Of these units, 30,000 were in process at the beginning of the month and 120,000 were started and completed during the month. The beginning work in process inventory was 30% complete. At the end of the month, the work in process inventory consisted of 20,000 units that were 80% complete. Required:Compute the number of equivalent units of production for October. Use the FIFO method. Cuntos ml de alcohol contiene una lata de cerveza de 375 ml si tiene una concentracin 4% v/v? 80 divided by 1.94 A company purchased office supplies costing $5,000 and debited Supplies for the full amount. At the end of the accounting period, a physical count of office supplies revealed $900 still on hand. The appropriate adjusting journal entry to be made at the end of the period would be: debit Supplies Expense, $4,100; credit Supplies, $4,100. debit Supplies, $4,100; credit Supplies Expense, $4,100. debit Supplies Expense, $5,900; credit Supplies, $5,900. debit Supplies, $900; credit Supplies Expense, $900.