Write a program that allow a customer to input the value of goods bought, The program should then decide the discount to give a customer,

Answers

Answer 1

Answer:

geeksforgeeks is the answer


Related Questions

10. When does teasing become cyberbullying?
A. When the words, images, or videos shift from humorous to hurtful.
B. When the comment gets over 100 likes.
C. When the victim finally gives away their personal information.
D. When the victim experiences physical harm.

Answers

Answer:

A) When the words, images or videos shift from humorous to hurtful.

Unlike kids who are being bullied, kids who are being teased can influence whether it continues or ends. If they get upset, the teaser usually stops.

What is the accurate description

Answers

Answer:

an accurate description exact stresses a very strict agreement with fact, standard, or truth. Exact measurements precise adds to exact an emphasis on sharpness of definition or delimitation.

PLEASE MARK ME AS BRAINLIEST ANSWER THANKS

explanation: how to have a good database?

Answers

For one to have a good database design one has to:

Share your information into a form of subject-based tables to lower the redundant data.Give an Access with the information it needs to add to the information in the tables altogether as required.Act as a form of aid and make sure of the accuracy and integrity of the information one has provided.

What is a database?

A database is known to be often set up so that there can be easy storage and access to any information.

Note that For one to have a good database design one has to:

Share your information into a form of subject-based tables to lower the redundant data.Give an Access with the information it needs to add to the information in the tables altogether as required.Act as a form of aid and make sure of the accuracy and integrity of the information one has provided.

Learn more about database  from

https://brainly.com/question/26096799

#SPJ1

how could environmental and energy problem Kenya faces as far computer installations are concerned be avoided​

Answers

The environmental and energy problem Kenya faces as far computer installations are concerned can be avoided​ by

Knowing and finding out the key aspect of ICT strength. Create an holistic judgements in the assessment of ICT capability. Promote the use of solar power.

How can we overcome ICT challenges?

There are a lot of Energy Challenges in terms of ICT  in Kenyan and it is good the government and the people work towards energy in terms of sustainable ICT.

Therefore, The environmental and energy problem Kenya faces as far computer installations are concerned can be avoided​ by

Knowing and finding out the key aspect of ICT strength. Create an holistic judgements in the assessment of ICT capability. Promote the use of solar power.

Learn more about computer installations from

https://brainly.com/question/11430725

#SPJ1

Five roles of propaganda in communication

Answers

These are five roles of propaganda in communication:

Propaganda is different from advertising although they share some techniques. Advertising tries to persuade to sell and propaganda persuades for many reasons.Propaganda is common in politics because it is the way to show the citizens public policies or persuade people to get votes.Propaganda usually has an agenda and from that specific agenda is the communication based of.Propaganda in communication can be used to manipulate messages in the media.Propaganda in communication can be used strictly informative.

What does propaganda means?

Propaganda is the distribution of an idea, piece of information, practice, statements with an agenda or planning behind.

It differs from advertising, which persuades to sell.

Check more information about propaganda here https://brainly.com/question/12686211

#SPJ1

difference between primary and secondary storage​

Answers

Answer:

Primary storage also called as main memory. RAM is an example of primary memory.

Secondary storage are popular as we use them for permanent storage.

Explanation:

Primary storage are temporary such RAM which are required for your program to execute. Without these storage, we can't use the computer for any operations. These memory keeps intermediate data and garbage out when the data no longer required.

On the other hand, when we need to store the data for future reference such as files, photos and videos we use secondary storage devices such as usb drive, hard disk etc.

c. Explain the mechanical era of computer.​

Answers

Answer:

why should I say mother and if you r urmia l love you

Choose the output result of the below code.

Answers

Answer:

B

Explanation:

When you initialize an instance of FunEvent(tags, year) and assign it to bc. The instance variables in this case are: self.tags = ["g", "ml"] and self.year = 2022. But then you alter tags, which will also change self.tags, since self.tags is a reference to the list you passed in as an argument. This is not the case when you do year=2023 because, first of all, integers are not mutable, and also because even if somehow integers were mutable, you're not changing the object in-place, you're simply changing the where the "variable" is pointing to. So for example if you did tags = ["g", "ml", "bc"] instead of tags.append("bc"), it would also not change the value of the instance variable "tags", because you wouldn't be changing the object in-place. So when you print(bc), the instance variables will be ["g", "ml", "bc"] and 2022. When you try to print an object, it call try to convert it into a string using the __str__  magic method. In this case it will return a string formatted as "Event(tags={self.tags}, year={self.year}) which will output "Event(tags=['g', 'ml', 'bc'], year=2022)" So the correct answer is B

what is the use of word processing software?​

Answers

Answer:

A typical word processor enables the user to create documents, edit them using the keyboard and mouse, store them for later retrieval, and print them to a printer. Common word processing applications include Microsoft Notepad, Microsoft Word, and Corel WordPerfect.

Select 3 true statements about Python primitive types.

32-bit integer type (a.k.a. int32) can represent integer value from -2^31 (-2,147,483,648) to 2^31-1 (2,147,483,647)

The int type in Python3 cannot represent a number greater than 2^31-1.

A binary floating-point method is used to represent fractions in binary numbers.

The decimal number 0.1 cannot be expressed without error in binary floating-point format.

The float type in Python3 can represent decimal 0.1 without error.

Answers

The  true statements about Python primitive types are:

32.bit integer type (a.k.a. int32) can represent integer value from -2 31 (-2.147,483,648) to 2"31-1 (2,147,483,647) A binary floating point method is used to represent fractions in binary numbers. The decimal number 0.1 cannot be expressed without error in binary floating-point format.

What are the Python primitive types?

The Python is known to be made up of four primitive data types which are said to be:

Integer.Float.String.Boolean.

Note therefore that The  true statements about Python primitive types are:

32.bit integer type (a.k.a. int32) can represent integer value from -2 31 (-2.147,483,648) to 2"31-1 (2,147,483,647) A binary floating point method is used to represent fractions in binary numbers. The decimal number 0.1 cannot be expressed without error in binary floating-point format.

Learn more about Python from

https://brainly.com/question/26497128

#SPJ1

Which of the following can be called a form of discriminant analysis?

Answers

Decision tree can be called a form of discriminant analysis.

What do you mean by Analysis?

Analyzing something entails dissecting it into its component parts and then coming to your own conclusions by asking questions like WHY and HOW.

Based on results from one or more quantitative predictor variables, observations are divided into non-overlapping groups using the statistical approach known as discriminant analysis. A clinician could, for instance, use a discriminant analysis to find patients with high or low stroke risk.

Discriminant analysis is a regression-based statistical technique used to identify the category or group to which a piece of data or an object belongs based on its traits or distinguishing characteristics.

Therefore, Decision tree can be called a form of discriminant analysis.

Learn more about Analysis, here;

https://brainly.com/question/5040600

#SPJ6

In Python write a program that reads a list of integers into a list as long as the integers are greater than zero, then outputs the values of the list.
Ex: If the input is:

10
5
3
21
2
-6
the output is:

[10, 5, 3, 21, 2]

Code hints: while user_input >0: #This is the number that is greater than 0 from the list that is entered.

print(user_numbers) #Prints out the numbers greater than zero that are inputted at the top part.

Answers

See the comments for explanations of what each line does.

Code

integers = []  # Create an empty list to store the values

user_input = int(input())  # Get the first input

while user_input > 0:  # Loop as specified

   integers.append(user_input)  # Add the value to the list

   user_input = int(input())  # Get another input

print(integers)  # Print the full list

would it be feasible to combine fixed length field and variable length field format in single disk

Answers

it is very easy or possible to combine both fixed length and variable length on a single disk.

What is the above case about?

Fixed length field is known to be a a field that is said to have the same number of characters and it is said to be fixed length field.

Note that Variable-length records  is one that has the length of all record as it varies.  it is very easy or possible to combine both fixed length and variable length on a single disk.

Learn more about fixed length field from

https://brainly.com/question/13014336

#SPJ1

This was the template given for my assignment: class Login:
def __init__(self):
self.login_name = 'none'
self.login_password = 'none'

# TODO: Define class method - check_credentials(self, user_login, user_passwd)


if __name__ == "__main__":

login = Login()
timeout = 5 #variable used for login attempts
login = input()
password = input()

# TODO: Create boolean variable that receives return value from
# calling check_credentials(login, password)

# TODO: Create a loop that will continue until login attempts run out or a successful login is returned

# TODO: Create a loop that only allows 5 failed login attempts
I have tried a trillion different ways to get this solved and I cannot figure out what I am doing wrong

Answers

Using the code in python it is possible to use the code given in the statement it is possible to make the change so that it fits with all topics.

Writing code in python:

class Login:

def __init__(self):

 self.login_name = 'none'

 self.login_password = 'none'

def check_credentials(self, user_login, user_passwd):

 simlogin = 'Test'

 simpass = 'test1234'

 if user_login == simlogin and user_passwd == simpass:

  print("Successful login!")

  return True

 elif user_login == simlogin and user_passwd != simpass:

  print("Login name is correct, incorrect password!")

  return False

 elif user_login != simlogin and user_passwd == simpass:

  print("Login name incorrect, password accepted!")

  return False

 elif user_login != simlogin and user_passwd != simpass:

  print("Unsuccessful login attempt!")

  return False

if __name__ == "__main__":

ob = Login()

timeout = 5

login = input()

password = input()

valid_login = ob.check_credentials(login, password)

while True:

 if valid_login:

  break

 else:

  timeout = timeout - 1

  if timeout == 0:

   print("5 failed login attempts. No more login attempts.")

   break

  login = input()

  password = input()

  valid_login = ob.check_credentials(login, password)

See more python at brainly.com/question/18502436

#SPJ1

According to many, the digital world is being divided into ‘haves’ and ‘have nots’ – between those that have access and can use a computer and the Internet, and those that do not have such access. Some believe that this creates serious ethical implications and that there is a moral obligation to do something about the disparity; the ‘have nots’ may well feel discriminated against or feel ‘socially excluded’ and are missing out on many life opportunities. Do you feel that everyone everywhere should have access to computers and the Internet, regardless of location, need, competency, or ability to pay? If yes, who should provide the services and education and who should pick up the tab? If no, explain why not everyone needs access to the Internet.

Answers

Answer:

I believe that everyone should have access to computers and the Internet, regardless of location, need, competency, or ability to pay. I think that it is a moral obligation to provide access to the Internet to everyone. The ‘have nots’ may well feel discriminated against or feel ‘socially excluded’ and are missing out on many life opportunities.

I think that the government should provide the services and education and pick up the tab. I think that it is the government’s responsibility to make sure that everyone has access to the Internet.

Explanation:

The Bank of Commerce Caribbean (BCC) is a fairly new financial institution. It started off with one bank in Jamaica and now is opening another Jamaican branch within a month and expanding to St Kitts in the months thereafter. At present, it has a local area network connecting all of its devices. However, the main method of communication among the bank departments is printed circulars. Printed circulars are also sent to investors, stakeholders and customers. You are a member of an IT team advising the bank on its networking needs. The team consists of students from your class.
1. What is a major problem that BCC will face when it expands?
2. What are three possible reasons for this problem?
3. Use a step-by-step approach to explain how your team will work out a solution to the problem.
4. Recommend a solution to the problem facing the bank that you stated in question 1. Use posters or any other media tools that you can use competently to produce a presentation that you can show to the bank managers. 5. What challenges did you face while working out a solution, and how did you overcome them?​

Answers

The major problem that BCC will face when it expands is the lack of digital coverage to all its branches because they are currently using only local area network that is connecting only on branch devices.

The three possible reasons for this problem is that:

They are just starting new and are limited in what they know.They lack exposureThey h]lack the needed  technology

What are the factors to be considered when opening a new bank branch?

The issues one need to look if opening a New Bank

Site Selection. The Nearby Businesses.Onsite Customer Experience.ATM/ITM Accessibility.

Therefore, The major problem that BCC will face when it expands is the lack of digital coverage to all its branches because they are currently using only local area network that is connecting only on branch devices.

Learn more about bank branch from

https://brainly.com/question/14160129

#SPJ1

What is meant by applied quantum computing

Answers

Quantum computing is an area of study focused on the development of computer based technologies centered around the principles of quantum theory. Quantum theory explains the nature and behavior of energy and matter on the quantum (atomic and subatomic) level.

The study of quantum computing is concerned with the creation of computer-based technologies based on the ideas of quantum theory. The nature and behaviour of matter and energy at the quantum level are explained by quantum theory.

What is computer based technology?

Technology is defined as computer-based technology that makes use of particular hardware, software, and microprocessing capabilities found on a computer or mobile device.

Computer based technology helps the people in reducing their time and strength by simplifying task. Some computer-based technology are-

   Television.     Internet.    Cell phones.    Computers.    Circuitry.    Artificial intelligence.    Software.    Audio and visual technology.

Thus, creation of computer-based technologies based on the ideas of quantum theory.

For more details about computer-based technology, click here:

https://brainly.com/question/4524884

#SPJ2


With computer technology in mind, what do you envision the
future to look like?

Answers

Answer:

They would be faster than today's computer and it technology it would easy and usefu and it would be more advanced with artificial intelligence at a rapid pace with higher technology I can say that it would be faster and easy

In Python write a program that reads a list of integers into a list as long as the integers are greater than zero, then outputs the values of the list.
Ex: If the input is:

10
5
3
21
2
-6
the output is:

[10, 5, 3, 21, 2]

Code hints: while user_input >0: #This is the number that is greater than 0 from the list that is entered.

print(user_numbers) #Prints out the numbers greater than zero that are inputted at the top part.

Answers

Answer:

ansList =input().split() #get input and split it by space

ansList = [int(i) for i in ansList if int(i)>0] #turn string to integer,and get all positive integers

print(ansList)

Explanation: I think this would work for you. I leace comments in the answer.

The program that reads a list of integers into a list as long as the integers are greater than zero is coded in the source code.

Source code:

user_numbers = []

user_input = int(input("Enter an integer (enter a non-positive integer to stop): "))

while user_input > 0:

   user_numbers.append(user_input)

   user_input = int(input("Enter an integer (enter a non-positive integer to stop): "))

print(user_numbers)

In this program, we initialize an empty list user_numbers to store the integers entered by the user. We then use a while loop to repeatedly prompt the user to enter an integer.

If the entered integer is greater than 0, it is appended to the user_numbers list. If the entered integer is non-positive (less than or equal to 0), the loop terminates.

Learn more about Loop here:

https://brainly.com/question/14390367

#SPJ4

Write a program whose inputs are two integers, and whose output is the smallest of the two values.

Ex: If the input is:

7
15

the output is:

7

Preferred in Python

Answers

Method 1 :

Using If else statements: If the condition checks whether num1 is smaller than num2 if so it will print 'Smallest of these two integers is num1'.

else it will print 'Smallest of these two integers is num2'

Method 2:

Using the 'min' method: using the method min(num1,num2), the program finds the smallest value and prints it directly to the user.

Python Program using method 1

#PYTHON PROGRAM TO FIND SMALLEST INTEGER VALUE FROM TWO INPUTS FROM USER - Method 1

#Accepts inputs from user

num1 = int (input ("Enter your first number:")) #Gets the first integer input from user and stores in num1

num2 = int (input ("Enter your second number: ")) #Gets the second integer input from user and stores in num2

#Finding output by if else

#Checks num1 smaller than num2

if (num1 < num2):

#assign num1 to small

small = num1

else:

#assign num2 to small

small = num2

 

print ("Smallest of these two integers is", small)

Python Program using method 2

#PYTHON PROGRAM TO FIND SMALLEST INTEGER VALUE FROM TWO INPUTS FROM USER - Method 2

#Accepts inputs from user

num1 = int (input ("Enter your first number:")) #Gets the first integer input from user and stores in num1

num2 = int (input ("Enter your second number: ")) #Gets the second integer input from user and stores in num2

#Finding output using min method

print("\n Smallest of these two integers is",min(num1,num2)) #Prints output to user

Answer:num1 = int(input())

num2 = int(input())

num3 = int(input())

lowest = min(num1, num2, num3)

if num1 < num2 and num1 < num3:

   lowest = num1

elif num2 < num1 and num2 < num3:

   lowest = num2

elif num3 < num1 and num3 < num2:

   lowest = num3

print(lowest)

Explanation:

Write a program that converts a decimal height in feet into feet and inches.
For instance; an input of 4.75 feet should become 4 feet and 9 inches.

Answers

The program to illustrate the conversion of the height is illustrated below.

How to illustrate the program?

The information here is to convert 1 inch = 2.54 cm. First, we will take user input of height in cm. We first convert this to inches by dividing by 2.54

After that, we use Floor Division // and Modulo % by 12 to get feet and inches respectively.

The inches will be in a lot of decimals. We round this off to 2 decimal places and finally print out the converted height.

The code will be:

# Take user input for height in cm

height_cm = float(input("Enter your height in cm: "))

# Convert height to inches

height_in = height_cm / 2.54

# Get feet by taking floor division with 12

feet = height_in // 12

# Get inches by taking modulo division with 12

inches = height_in % 12

# Round off the inches to 2 decimal places

inches_rounded = format(inches, ".2f")

# Print out the height in feet and inches

print(f"Height is {feet} ft {inches_rounded} in")

Learn more about program on:

https://brainly.com/question/26134656

#SPJ1

For given natural number n, e.g n=3, print string "1 sheep...2 sheep...3 sheep". Can someone help?​

Answers

The code that is used to count sheep aloud in Javascript is given as:

var countSheep = function (num){

 //start with a counter i = 1

 // increment i

 // stop until i == num

 // "interpolation" to insert variables

 // return joint array

   let smallArr = "";

   for (let x = 1; x <= num; x++)

   {

      smallArr += `${x} sheep...`

   }

   return smallArr;

};

Read more about javascript here:

https://brainly.com/question/16698901

#SPJ1

Continuing with the program in problem #4: Box #10 has identical attributes to Box #07. Create box #10. Then, write two statements that will print out: one will compare the contents of Box #07 and Box #10, and the other will compare the contents of Box #21 and Box #23.

Answers

The program illustrates the use of conditional statements i.e. the if keyword

The two statements

The statements that compare the boxes written in Python are as follows:

#Statement 1

if box07 > box10:

  print("Box 07")

else

  print("Box 10")

#Statement 2

if box21 > box23:

  print("Box 21")

else

  print("Box 23")

Read more about python programs at:

https://brainly.com/question/13246781

#SPJ1


To create a new folder, you should first?
A. create all the files that will be contained in the folder
C. navigate to the location where you want to store the
folder
B. delete any other folders in the desired location
D. close all open apps to avoid conflicts with the folder

Answers

Answer:

create a new folder when saving your document by using the Save As dialog box. With your document open, click File > Save As. Under Save As, select where you want to create your new folder. You might need to click Browse or Computer, and navigate to the location for your new folder. In the Save As dialog box that opens, click New Folder.

How is a qubit in quantum computing different from a regular bit in classical computing?

Answers

The qubit in quantum computing are different from a regular bit in classical computing is multiple qubits can show quantum entanglement.

What is the different about?

An important factor between qubits and normal bits is that a lot of qubits can show quantum entanglement.

Note that Quantum entanglement is said to be a form of nonlocal property that pertains to two or more qubits that gives room for a set of qubits to show higher correlation than is it was in any systems.

Therefore, The qubit in quantum computing are different from a regular bit in classical computing is multiple qubits can show quantum entanglement.

Learn more about qubits from

https://brainly.com/question/14894495

#SPJ1

Write an algorithm that describes the second part of the process of making change (counting out the coins and bills).

Answers

An Algorithm that describes the second part of the process can be written as listed below :

Algorithm describing the second part of the process of making change (counting out the coins and bills )

First step : Initialize the required variables to zero to determine the number of coins and bills.

Second step : Prompt and read the amount to convert. amount to Hundreds

Third step : Compute hundred bill note as 100 amount equal to  ( amount% * 100 fifties - amount )

Fourth step : Compute fifty bill notes as :  ( amount% * 50 fifty bill notes )

Fifth Step : Compute Twenty bill notes as amount equal to ( amount% *20 Twenties - amount )

Sixth Step : Compute Tens bill notes as : ( amount% * 10 Tens bill notes )

Note : continue the process for fives, Quarters, Dimes, Nickels, and Pennies.

Learn more about Algorithm : https://brainly.com/question/13800096

#SPJ1

Attached below is the missing part of the question

Write an algorithm that describes the second part of the process of making change (counting...

Using for loop write an alogarithm flow program to find simple interest fo three steps? ​

Answers

Answer:

The difference between a shallow and a deep depth of field is how much of your photo is in focus.

Explanation:

I receive errors in this code in eclipse and in GDB. Can someone help me? Thank you!



import java.io.*;
import java.util.*;

public class Contribution {

public void fileOperation(String inputFile, String outputFile) {
double max_contro = Double.MIN_VALUE;
double min_contro = Double.MAX_VALUE;
int total = 0;
int goal = 1000;
double current = 0.0;

// Reading from the file
try {
File file = new File(inputFile);
Scanner sc = new Scanner(file);
while (sc.hasNextLine()) {

double amt = Double.parseDouble(sc.nextLine());
current += amt;
total++;
if (amt < min_contro) {
min_contro = amt;
}
if (amt > max_contro) {
max_contro = amt;
}
if (current > goal) {
break;
}
}
} catch (Exception e) {
System.out.println("Error processing the file!");
}

double average_contro = Math.round((double) current / total);
// Writing to the file
try {
FileWriter writer = new FileWriter(outputFile, true);
BufferedWriter out = new BufferedWriter(writer);
out.write("It took " + total + " contributions to reach the goal.\nThe maximum contribution"
+ " received was $" + max_contro + ".\nThe minimum contribution"
+ " received was $" + min_contro + "\nThe average contribution amount was $"
+ average_contro + ".\nA total of $" + current + " was collected.");
out.newLine();
out.close();
} catch (Exception e) {
System.out.println("Error processing the file!");
}

}

// Driver method to test the code
public static void main(String[] args) {

String inputFile = "input.in";
String outputFile = "output.out";

Contribution obj = new Contribution();
obj.fileOperation(inputFile, outputFile);

}Input File: (Copy and Paste)

150
165
12
16
14
189
13
3
74
59
53
20
26
91
40
16
71
4
100
165
82
30
49
10
85
61
30
25
2
6
9
47
8
50
13
Output:


}

Answers

Debugging a code involves locating the errors in a code segment, and fixing them.

How to debug the code segment?

When the program was run on GDB, the program give the following error

Main.java:62: error: reached end of file while parsing

This means that we need to add a closing brace to the end of the program.

A second run after fixing this error gives another set of errors:

Main.java:4: error: class Contribution is public, should be declared in a file named Contribution.java

It should be noted that GDB only allows you to create a program with the file name Main i.e. Main.java

This means that we change the Contribution keywords in the program to Main.

After this has been done, the program gives the following output:

It took 17 contributions to reach the goal.

The maximum contribution received was $189.0.

The minimum contribution received was $3.0

The average contribution amount was $60.0.

A total of $1012.0 was collected.

So, the corrected program is:

import java.io.*;

import java.util.*;

public class Main {

   public void fileOperation(String inputFile, String outputFile) {

       double max_contro = Double.MIN_VALUE;

       double min_contro = Double.MAX_VALUE;

       int total = 0;

       int goal = 1000;

       double current = 0.0;

       // Reading from the file

       try {

           File file = new File(inputFile);

           Scanner sc = new Scanner(file);

           while (sc.hasNextLine()) {

               double amt = Double.parseDouble(sc.nextLine());

               current += amt;

               total++;

               if (amt < min_contro) {

                   min_contro = amt;

               }

               if (amt > max_contro) {

                   max_contro = amt;

               }

               if (current > goal) {

                   break;

               }

           }

       } catch (Exception e) {

           System.out.println("Error processing the file!");

       }

       double average_contro = Math.round((double) current / total);

       // Writing to the file

       try {

           FileWriter writer = new FileWriter(outputFile, true);

           BufferedWriter out = new BufferedWriter(writer);

           out.write("It took " + total + " contributions to reach the goal.\nThe maximum contribution"

           + " received was $" + max_contro + ".\nThe minimum contribution"

           + " received was $" + min_contro + "\nThe average contribution amount was $"

           + average_contro + ".\nA total of $" + current + " was collected.");

           out.newLine();

           out.close();

       } catch (Exception e) {

           System.out.println("Error processing the file!");

       }

   }

   

   // Driver method to test the code

   public static void main(String[] args) {

       String inputFile = "input.in";

       String outputFile = "output.out";

       Main obj = new Main();

       obj.fileOperation(inputFile, outputFile);

   }

}

Note that the filename must be Main.java in GDB and the input file is input.in

Read more about debugging at:

https://brainly.com/question/13966274

#SPJ1

Consider the following language:

L={ |M is a Turing Machine and M accepts at least one palindrome,

and rejects at least one palindrome}

a. Is L a decidable language? Prove your answer.

b. Is L a recognizable language? Prove your answer.

Answers

L is a decidable language because the Turing machine accepts it.

L is a recognizable language if  TM M recognizes it.

How do you know if a language is decidable?

A language is said to be decidable only when there seems to exists a Turing machine that is said to accepts it,

Here, it tends to halts on all inputs, and then it answers "Yes" on words that is seen in the language and says "No" on words that are not found in the language. The same scenario applies to recognizable language.

So,  L is a decidable language because the Turing machine accepts it.

L is a recognizable language if  TM M recognizes it.

Learn more about programming language from

https://brainly.com/question/16936315

#SPJ1

The Linux tail command prints the last maximum n lines of a file. When writing a function that performs this function, choose the correct statements that can go in the ?????.



lines[-n]

lines[-n:]

lines[len(lines)-n:]

lines[-1:-n-1:-1]

lines.pop(n)

Answers

The Linux tail command prints the last maximum n lines of a file. When writing a function that performs this function, in this case is lines[-n:].

Writing code in Linux:

def tail(filename, n=10) :

 with open(filename, "r") as

     lines = f.readlines()

  for line in lines[-n:] :

    print (lines)

See more about linux at brainly.com/question/15122141

#SPJ1

Other Questions
Your English teacher has asked you to write a story. Your story must begin with this sentence, This was her very first trip to a music concert. Write your story in about 100 words. PLS I NEED IT FOR TOMORROW HELP ASAPGiven: ABCD is a parallelogram and ABC is a right angle.Prove: BD is congruent to AC. Different types of angels The idea that setting ambitious, but attainable goals can motivate workers and improve performance if the goals are accepted and accompanied by feedback and facilitated by organizational conditions is at the heart of which motivation theory What is the value of g( 3) when g(x) = 2x-2 In the diagram, ABCDE is a regular pentagon. The sides AB and DC are produced to meet at F. Find the angles x, y and z. What are the four types of claim Before Adolescence -You are very self-centered-After Adolescence_?_ What is this? PLS AWNSER ASAPResults/Consequences-You are able to have more compassion for others.- Determine an equivalent expression by rationalizing the denominator: (53)/(4-6) Currently, a government's budget is balanced. The marginal propensity to consume is 0.80. The government has determined that each additional $10 billion in new government debt it issues to finance a budget deficit pushes up the market interest rate by 0.20 percentage points. It has also been determined that every 0.10 (one-tenth) percentage-point change in the market interest rate generates a change in planned investment expenditures equal to $4 billion. Finally, the government knows that to close a recessionary gap and take into account the resulting change in the price level, it must generate a net rightward shift in the aggregate demand curve equal to $200 billion. Assuming that there are no direct expenditure offsets to fiscal policy, calculate the increase in government expenditures necessary to close the recessionary gap. (Hint: How much private investment spending will each $10 billion increase in government spending crowd out?) $ ___ billion. (Enter your response rounded to two decimal places.) When p2 4p is subtracted from p2 + p 6, the result is A solution is made by diluting 20.0 mL of propanone (C3H6O) with water. The total volume of the solution is 300 mL. What is the percent by volume of propanone in the solution Rice Corp. noticed that a check written by the company for utility expense in the amount of $1,000 was incorrectly recorded by the bank as $1,100. What entry needs to be recorded to correct this error Which of the numbers below are some potential roots of p(x) = x3 6x2 7x 60 according to the rational root theorem? hello please help with my question, I will give brainlyest! gary cycled a total of 8 kilometers by making 4 trips to work. How many trips will gary have to make to cycle a total of 10 kilometers? Be sure that you show all of your work to reach your answer. Each step must be on a separate line. Your method to reach your answer must be clear and include explanations.Be sure to only round at the last step for your final answer.You plan to purchase a house for $525,000 and you will make a 20% down payment. You are evaluating two mortgages a 30-year fixed mortgage at 2.72% and a 15-year fixed mortgage at 2.25%. Your goal is to have a monthly payment that fits within your budget. a. Which mortgage will give you the lowest monthly payment? What will that payment be? How much less will this be than the other monthly mortgage payment?b. Assuming you take the full term of the mortgage, which mortgage will result in you paying the most interest? What will that interest be? How much more will this be than the interest on the other mortgage? R= regular monthly paymentp= amount financed, or principalr= rate written as a decimaln= number of payments per yeart= number of years Needs to be easy to read. Glven: AABC with DE || ACAD CEEBProve: DBB1. DE2.StatementEReasonCgivenIf two parallel lines arecut by a transversal, thecorresponding angles arecongruent.What is the missing step in this proof?OAZCABOB. ZADEOC.OD. ZCABLEDB, ZACB DEBLACB, LEDB ZDEBZDBE, ZCED= LEBDZCAD ZACE, ZADEZCED how to find compound rate from given values, 10 years after, and initial Agent willis believes that the choices they made are not ideal, what can he do to get them back