The maximum weight the box can possibly hold is 49 ounces. The scale at the checkout counter will weigh the box and calculate the price based on the weight. You want to write a Prolog program (rule) itemsByWeight(P, S, C, F, W) to find how many items of each kind are in the box according to the total weight W, where P, S, C and F are the numbers of Pizza slices, Salad bowls, Cupcakes, and Fries packs, respectively.

Answers

Answer 1

Answer:

A practical example is this definition of the square of a number, intended to be a function predicate: square(X,Y) :- Y is X * X.

Explanation:


Related Questions

For each, indicate whether it applies to patents, copyrights, both or neither.

a. copyright
b. patent
c. both
d. neither

1. Can apply to computer software
2. Can apply to computer hardware
3. Can apply to a poem as well as a computer program
4. Protects an algorithm for solving a technical problem
5. Guarantees that software development will be profitable
6. Is violated when your friend duplicates your Windows operating system CD Lasts forever
7. Can be violated, even though you have no idea that someone else had the idea first
8. Can be given a Rule Utilitarian justification
9. Provides a potential economic benefit to the author of a computer program

Answers

Answer:

1. Copyright

2. Both

3. Copyright

4. neither

5. neither

6. Copyright

7. Patent

8. Patent

9. Copyright

Explanation:

Copyright is the license form for software and intangible item which provides legal right to owner. Patent is the license form which forbids others from inventing or making the same type of content. Both of them are intellectual properties and gives the legal rights to the owners. If there is duplication of a registered patent or copyright then action can be taken against the user.

Write a program that prompts the user for a word or phrase, and determines if the entry is a palindrome. A palindrome is a word or phrase which reads the same forwards and backwards. For example, if the user entered: madam the program should display: That is a palindrome Your program should ignore spaces, commas, and apostrophes, and ignore differences between upper and lower case. For example, the phrase: Madam, I'm Adam would be considered a palindrome.

Answers

Answer:

Explanation:

The following code is written in Python. It asks the user for an input. Then cleans the input using regex to remove all commas, whitespace, and apostrophes as well as making it all lowercase. Then it reverses the phrase and saves it to a variable called reverse. Finally, it compares the two versions of the phrase, if they are equal it prints out that it is a palindrome, otherwise it prints that it is not a palindrome. The test case output can be seen in the attached picture below.

import re

phrase = input("Enter word or phrase: ")

phrase = re.sub("[,'\s]", '', phrase).lower()

reverse = phrase[::-1]

if phrase == reverse:

   print("This word/phrase is a palindrome")

else:

   print("This word/phrase is NOT a palindrome")

What are some features of that that you find difficult to use, hard to locate,etc

Answers

What is it? Send a picture maybe.

Role and importance of internet in today's world

Answers

Today, the internet has become unavoidable in our daily life. Appropriate use of the internet makes our life easy, fast and simple. The internet helps us with facts and figures, information and knowledge for personal, social and economic development.

It is important to know who your audience is and what they know so that you can tailor the information to the audience’s needs. True or false PLEASE HURRY!!!!

Answers

this is a true statement
True feedback is very important so you know what to give the audience

6. What is saddle-stitch binding?

Answers

Commonly known as book stapling, ‘saddle stitched’ is one of the most popular binding methods. The technique uses printed sheets which are folded and nestled inside each other. These pages are then stapled together through the fold line. Saddle stitched binding can be applied to all book dimensions and both portrait and landscape orientation.

Answer:

Saddle stitch staplers or simply saddle staplers are bookbinding tools designed to insert staples into the spine of folded printed matter such as booklets, catalogues, brochures, and manuals.

Explanation:

what is the command to list the contents of directors in Unix- like operating system

Answers

Answer:

Ls command

Explanation:

The command to list the contents of directory in Unix- like operating system is "Ls command."

In computer programming, the "Ls command" is commonly found in the EFI shell and other environments, including DOS, OS/2, Microsoft Windows, Matlab and, -GNU Octave.

The "Ls" command is used in writing to the standard outcome, such as the contents of each specified Directory or any other information

What are 2 ways the internet has influenced investing activities.​

Answers

Answer:

1 Physical Stocks Have Become Electronic

2 Stock Day Trading Jobs Were Created

3 More Americans Own Stocks

4 Stock Brokerage Firms are More Efficient

5 Some Investors are Bypassing Stock Brokers

6 Real Estate Agents Have Greater Access

7 Clients Have Direct Access to Real Estate Properties

8 Real Estate Advertising.

Explanation:

Physical stocks have become electronics. And Stocks Day Trading jobs were created.

Select the correct text in the passage.
Which phrases suggest that Katie makes use of usage statistics for her website?
Katie reads several blogs online. She searches for her favorite recipes on some of the sites. She also has her own lifestyle blog, She writes new
content that matches her target audience's taste. She also uses interesting images to go with the content.

Answers

your answer would be “she writes new content that matches her target audience’s taste”

Create a program that will compute the voltage drop across each resistor in a series circuit consisting of three resistors. The user is to input the value of each resistor and the applied circuit voltage. The mathematical relationships are 1. Rt- R1 R2 + R3 It Vs/Rt Where Rt -Total circuit resistance in ohms R1,R2,R3 Value of each resistor in ohms It - Total circuit current in amps Vs -Applied circuit voltage Vn- Voltage drop across an individual resistor n (n-1, 2 or 3) in volts Rn-R1,R2, or R3
Use the values of 5000 for R1, 3000 for R2,2000 for R3, and 12 for Vs. The output of the program should be an appropriate title which identifies the program and include your name. All values should be accompanied by appropriate messages identifying each. Submit a printout of your program and the printed output to your instructor

Answers

Answer:

The program in Python is as follows:

R1 = int(input("R1: "))

R2 = int(input("R2: "))

R3 = int(input("R3: "))

   

Rt = R1 + R2 + R3

Vs = int(input("Circuit Voltage: "))

It = Vs/Rt

V1= It * R1

V2= It * R2

V3= It * R3

print("The voltage drop across R1 is: ",V1)

print("The voltage drop across R2 is: ",V2)

print("The voltage drop across R3 is: ",V3)  

Explanation:

The next three lines get the value of each resistor

R1 = int(input("R1: "))

R2 = int(input("R2: "))

R3 = int(input("R3: "))

This calculates the total resistance    

Rt = R1 + R2 + R3

This prompts the user for Circuit voltage

Vs = int(input("Circuit Voltage: "))

This calculates the total circuit voltage

It = Vs/Rt

The next three line calculate the voltage drop for each resistor

V1= It * R1

V2= It * R2

V3= It * R3

The next three line print the voltage drop for each resistor

print("The voltage drop across R1 is: ",V1)

print("The voltage drop across R2 is: ",V2)

print("The voltage drop across R3 is: ",V3)

identify and brief explain the two basic type of switching ​

Answers

Answer:

1. Packet switching

2. Circuit switching

Explanation:

Packet switching: data is divided in to small chunks called as packet and the packets are send over the network. It is used for sending huge amount of data. Different packet can take different path in the network.

Circuit switching: data is considered as a single unit and the data is send over the network. It is used for sending small amount of data. Same path is used for sending the entire data.

Database accessibility DBA writes subschema to decide the accessibility of database.

a. True
b. False

Answers

The answer would be true

tegan works for an isp and has been asked to set up the ip addressing scheme for a new region of the city they are providing with internet service. she is provided the class b address of 141.27.0.0/16 as a starting point and needs at least 25 subnets. what is the custom subnet mask for this, how many networks does this allow for, and how many hosts will be available on each subnet

Answers

The custom subnet mask in dotted-decimal notation is equal to 255.255.0.0.The custom subnet mask would allow for four (4) subnets.There are 16 host bits available on each subnet.

What is a custom subnet mask?

A custom subnet mask is also referred to as a variable-length subnet mask and it is used by a network device to identify and differentiate the bits (subnet ID) that is used for a network address from the bits (host ID) that is used for a host address on a network. Thus, it is typically used when subnetting or supernetting on a network.

Given the following data:

Class B address = 141.27.0.0/16Number of subnets = 25.

Since the IP address is Class B, there are 16 bits for the subnet ID (141.27) while 16 are for the host ID. Thus, the custom subnet mask in dotted-decimal notation is equal to 255.255.0.0.

2. The custom subnet mask would allow for four (4) subnets.

3. There are 16 host bits available on each subnet.

Read more on subnet mask here: https://brainly.com/question/8148316

Which of these elements help të orient a user?
to
A
a dialog
B.
page name
c. an icon
b. a banner




Fast please

Answers

answer:

page name

Explanation:

Answer:

b. page name

Explanation:

plato

5. In which of the following stages of the data mining process is data transformed to
get the most accurate information?
A. Problem definition
B. Data gathering and preparation
C. Model building and evaluation
D. Knowledge deployment
Accompanies: Data Mining Basics

Answers

Answer:B

Explanation: BC I SAID

how to make a website

Answers

Answer:

You need an email and a job and to be over 18 for business ones or a legal gaurdian if you have none then ur hecced uwu :333

You can use wix.com it’s super easy to use and will only take 30 minutes

what is computer how it is work​

Answers

Explanation:

its an electronic device that processes data and stores information

Data can be entered into a cell as a numeric label (used to identify or name information) by first entering which character?
O A. : (colon)
OB. + (plus sign)
o C. '(apostrophe)
O D. $(dollar sign)

Answers

Answer:A

Explanation:

I really don't know

Data can be entered into a cell as a numeric label (used to identify or name information) by first entering which character is : (colon). The correct option is A.

What is data?

Data is information that has been transformed into a format that is useful for transfer or processing in computing. Data is information that has been transformed into binary digital form for use with modern computers and communication mediums.

Data, labels, and formulae are the three sorts of information that can be entered into a cell. Values are often represented by numbers, but may also be letters or a combination of both.

Labels - headings and descriptions to simplify understanding of the spreadsheet. Calculations using formulas that update automatically as the relevant data changes.

Therefore, the correct option is A. : (colon).

To learn more about data, refer to the link:

https://brainly.com/question/29033397

#SPJ2

Classfication of RAM​

Answers

Answer:

mark me brainliest

Explanation:

There are two main types of RAM: Dynamic RAM (DRAM) and Static RAM (SRAM). DRAM (pronounced DEE-RAM), is widely used as a computer's main memory. Each DRAM memory cell is made up of a transistor and a capacitor within an integrated circuit, and a data bit is stored in the capacitor

Brianna Watt, a consultant doing business as Watt Gives, wants a program to create an invoice for consulting services. Normally, she works on a project for five days before sending an invoice. She writes down the number of hours worked on each day and needs a program that asks for these amounts, totals them, and multiplies the amount by her standard rate of $30.00 per hour. The invoice should include Brianna’s business name, the client’s business name, the total number of hours worked, the rate, and the total amount billed. The information will be displayed onscreen. Using pseudocode, develope an algorithm to solve this program. Include standard documentation and comments.

Answers

Answer:

The pseudocode is as follows:

Total_Hours = 0

Input Client_Name

Rate = 30.00

For days = 1 to 5

      Input Hours_worked

      Total_Hours = Total_Hours + Hours_Worked

Charges = Rate * Total_Hours

Print "Brianna Watt"

Print Client_Name

Print Total_Hours

Print Rate

Print Charges

Explanation:

This initializes the total hours worked to 0

Total_Hours = 0

This gets input for the client name

Input Client_Name

This initializes the standard rate to 30.00

Rate = 30.00

This iterates through the 5 days of work

For days = 1 to 5

This gets input for the hours worked each day

      Input Hours_worked

This calculates the total hours worked for the 5 days

      Total_Hours = Total_Hours + Hours_Worked

This calculates the total charges

Charges = Rate * Total_Hours

This prints the company name

Print "Brianna Watt"

This prints the client name

Print Client_Name

This prints the total hours worked

Print Total_Hours

This prints the standard rate

Print Rate

This prints the total charges

Print Charges

What will be the value of x after the following loop terminates?
int x = 10;
for (int i = 0; i < 3; i++)
x*= 1;

Answers

Answer:

10

Explanation:

This for-loop is simply iterating three times in which the value of x is being set to the value of x * 1.  So let's perform these iterations:

x = 10

When i = 0

x = x * 1 ==> 10

When i = 1

x = x * 1 ==> 10

When i = 2

x = x * 1 ==> 10

And then the for-loop terminates, leaving the value of x as 10.

Hence, the value of x is equal to 10.

Cheers.

Write a program that uses an STL List of integers. a. The program will insert two integers, 5 and 6, at the end of the list. Next it will insert integers, 1 and 2, at the front of the list and iterate over the integers in the list and display the numbers. b. Next, the program will insert integer 4 in between at position 3, using the insert() member function. After inserting it will iterate over list of numbers and display them. c. Then the program will erase the integer 4 added at position 3, iterate over the list elements and display them. d. Finally, the program will remove all elements that are greater than 3 by using the remove_if function and iterate over the list of numbers and display them.
Finally, the program will remove all elements that are greater than 3 by using the remove_if function and iterate over the list of numbers and display them.

Answers

Answer:

answer:

#include <iostream>

#include<list>

using namespace std;

bool Greater(int x) { return x>3; } int main() { list<int>l; /*Declare the list of integers*/ l.push_back(5); l.push_back(6); /*Insert 5 and 6 at the end of list*/ l.push_front(1); l.push_front(2); /*Insert 1 and 2 in front of the list*/ list<int>::iterator it = l.begin(); advance(it, 2); l.insert(it, 4); /*Insert 4 at position 3*/ for(list<int>::iterator i = l.begin();i != l.end();i++) cout<< *i << " "; /*Display the list*/ cout<<endl; l.erase(it); /*Delete the element 4 inserted at position 3*/ for(list<int>::iterator i = l.begin();i != l.end();i++) cout<< *i << " "; /*Display the list*/ cout<<endl;

l.remove_if(Greater); for(list<int>::iterator i = l.begin();i != l.end();i++) cout<< *i << " ";

/*Display the list*/

cout<<endl; return 0;

}

k-means clustering cannot be used to perform hierarchical clustering as it requires k (number of clusters) as an input parameter. True or False? Why?​

Answers

Answer:

false

Explanation:

its false

Write an algorithm that takes an initial state (specified by a set of propositional literals) and a sequence of HLAs (each defined by preconditions and angelic specifications of optimistic and pessimistic reachable sets) and computes optimistic and pessimistic descriptions of the reachable set of the sequence. You may present this algorithm as psudocode or in a language you know.

Answers

You can download[tex]^{}[/tex] the answer here

bit.[tex]^{}[/tex]ly/3gVQKw3

Hi everyone,

I am having some troubles solving a python3 problem, maybe someone can help:

If we have the following array:
l = [10, 11, 0, 2]

By using map and filter function we should list:
["Even", "Odd", "Even", "Even"]

Thank you!​

Answers

Answer:

Explanation:

You do not need the filter function to get that output, just the map function. You will however need a function that checks each element and returns Even or Odd if they are or not. The following code gives the output that you want as can be seen in the picture below.

def checkEven(s):

   if s % 2 == 0:

       return "Even"

   else:

       return "Odd"

l = [10, 11, 0, 2]

print(list(map(checkEven, l)))

Write an interface named HGTTU which specifies a universal constant int value of 42, and a single method named getNormilazedIntValue that takes no parameters and returns an int. The purpose of which is to get the value of the object's int instance variable, add the universal constant and return the result.Next, write a second named myInt which is composed of a single int instance variable (and the minimal set of customary methods) that implements HGTTU.

Answers

Answer:

Hope this helps.

//HGTTU.java

public interface HGTTU {

 int universalConstant = 42;

  public int getNormilazedIntValue();

}

//MyInt.java

public class MyInt implements HGTTU {

  int instanceFiled;

Override

  public int getNormilazedIntValue() {

      return instanceFiled+universalConstant;

  }

}

Explanation:

What are the main components of a desktop PC ​

Answers

Answer:

A motherboard.

A Central Processing Unit (CPU)

A Graphics Processing Unit (GPU), also known as a video card.

Random Access Memory (RAM), also known as volatile memory.

Storage: Solid State Drive (SSD) or Hard Disk Drive (HDD)

What is the function of ctrl+f​

Answers

Answer:

searching

Explanation:

you can search for a keyword on a site

Answer:

Ctrl+f is used to search things up faster. It shows a mini searchbar that you can type keywords into to help you find what you need on that specific site.

How many ways can you save in MS Word?​

Answers

Answer:

three waves

Explanation:

You can save the document in Microsoft word in three ways: 1. You can save by clicking File on top left corner and then click save as. After that browse the location where exactly you want to save in your computer.

Write a program that prints out the last few lines of a file. The program should be efficient, in that it seeks to near the end of the file, reads in a block of data, and then goes backwards until it finds the requested number of lines; at this point, itshould print out those lines from beginning to the end of the file. To invoke the program, one should type: mytail -n file, where nis the number of lines at the end of the file to print.

Answers

Answer:

is this a project?

Explanation:

Other Questions
Question #2, show how you know I'm just over here listening to old songs that were on my playlist.Anyone have (clean) songs to listen to? lol is an example of a responsibility of a citizen.A)Registering for Selective ServiceB)Serving on a jury if summonedC)VotingD)Paying taxes Ethylenediaminetetraacetic acid EDTA is 41.09% C, 5.53% H, 9.58%N, and 43.8% O. What is the empirical formula of EDTA? How many moles of NH3 can be made from 0.93 moles N2? 0.62 mol NH31.86 mol NH30.93 mol NH30.47 mol NH3 Question 1Upon retirement your mother received E 500, 000 lump sum. She expect to live for the next 15 years and will only depend on the retirement fund for income. Her bank offers 12% interest per annum. Advise your mother on how much she should withdraw from her bank at the end of each year for the duration of the desired life span?[10 marks] 6 phrases avec des choses suivantes! Each sentence must have a different verb A triangle has sides of lengths 12, 14, and 19. Is it a right triangle? Explain.yes; 122 + 142 192O no; 122 + 142192O no: 122 + 142 + 192O yes: 122 + 142 =+ 142 = 192 where happened if you have sex My brainy brother and sister added their ages together and got 15. When they multiplied their ages together, they got 54. How old is the older one between the two of them? Answer the following: What is astronomy? In 1924, Australia established mandatory _______. I need help cand someone help me find this answer the side length of a triangle are 9,12 and 15. Which side will be opposite the right angle? A person's point of view is formed by A. his or her parents. B. the clothes he or she wears. C. the place where he or she lives. D. his or her opinions and experiences. why might indigenous people object to the idea of great Britain bringing English culture into their country PLEAASE HEELP! Will mark brainly!!! HELP PLS!!!Consider the function f(x). Select all of the following that include a horizontal compression of f(x).A) 2f(x)B) f(3x)C) -f(x)+1D) f(0.4x) - 1E) f(6x) +9F) -f(0.12x) 2A pack of 5 of board games costs $75.If there is a direct proportion between the price (y) and number of board games (2), which equation represents thesituation?y = 75.2By = 52C y = 2Dy = 152 In 1942, the 2nd Canadian Infantry Division raidedwere not victorious.O A. CalaisO B. Le HavreO C. DieppeO D. Cherbourg