HW3: Write a program in C language by using if statement for a lift control
system, for your information
nation the maximum weight is 240kg and for five floors.

Answers

Answer 1
160kg Is your answer

Related Questions

8. What's the output of this code?
1
def sum(x, y):
return(x+y)
print(sum (sum(1,2), sum(3,4)))

Answers

Answer:

10

Explanation:

[tex]sum(1,2) = 3\\sum(3,4) = 7\\sum(3,7) = 10\\[/tex]

Basically, sum((1+2) + (3+4)) = sum(3,7) = (3+7) = 10

Which two of the following are conditions of AI programming that enable robots to either accept or reject commands from humans?
Group of answer choices

equality principle

knowledge

semantic manipulation

enhanced circuitry

capacity

Answers

knowledge and capacity

hope this helps :)

HLOOKUP is used for Horizontal Data look ups while VLOOKUP is for Vertical Data look ups
Select one:
True
False​

Answers

Answer:

True

Explanation:

Both HLOOKUP and VLOOKUP are excel functions used for searching through tables for a specified lookup value to either get an exact or approximate match. The VLOOK and HLOOKUP functions have identical syntax which only differs with the HLOOKUP requiring the row index number to search through the rows while, VLOOKUP requires the column index number to search through the columns. Other than this difference, the other syntax values are the same.

VLOOKUP(lookup_value, table_array, col_index_num, [range_lookup])

HLOOKUP(lookup_value, table_array, row_index_num, [range_lookup])

. Which responsibility belongs to the marketing function?

Answers

Answer:

The marketing functions involves various responsibilities of the business organization, these functions are responsible for the growth of company. The key roles and responsibilities of marketing functions are market research, finance, product development, communication, distribution, planning, promotion, selling etc.

The keyboard shortcut to enter the current date in a field is
Ctrl+semicolon (;)
Ctrl+ampersand (&)
Ctrl+asterisk (*)
Spacebar

Answers

Answer:

oh cool I'm gonna try that

Name 4 components of a components system​

Answers

The four main components are main memory, arithmetic and logic unit, control unit, and input/output (I/O). :)

You have a project that requires you to work in a team setting. You know of a developer who has the credentials you
need, works well in a team, and does not need supervision to get the job done. The problem is that the developer is not
within your geographic location. One solution is to allow the developer to blank
full-time.

Answers

Answer:

work remotely

Explanation:

The best solution would be to allow the developer to work remotely full-time. This means that they would be working from home all the time and would most likely communicate with the rest of the team via other means. Usually, unimportant communication would be done through e-mail while important issues and team meetings would be done through video conference. This will allow you to hire this developer and add him/her to the team without having to worry about any issues arising due to transportation.

Log onto the Internet and use a search engine to find three Web sites that can be models for the new site. (At least one should sell sporting goods.) For each site you selected, list the URLs in your document. Tell why you chose them. Navigate to the three sites you choose and take notes about at least three things you like and don’t like about the sites.

Answers

Please see the following file for your required answer, thank you.

Suppose a byte-addressable computer using set-associative cache has 2 16 bytes of main memory and a cache size of 32 blocks and each cache block contains 8 bytes. a) If this cache is 2-way set associative, what is the format of a memory address as seen by the cache; that is, what are the size of the tag, set, and offset fields

Answers

Answer:

Following are the responses to these question:

Explanation:

The cache size is 2n words whenever the address bit number is n then So, because cache size is 216 words, its number of address bits required for that  cache is 16 because the recollection is relational 2, there is 2 type for each set. Its cache has 32 blocks, so overall sets are as follows:

[tex]\text{Total Number of sets raluired}= \frac{\text{Number of blocks}}{Associativity}[/tex]

                                               [tex]=\frac{32}{2}\\\\ =16\\\\= 2^4 \ sets[/tex]

The set bits required also are 4. Therefore.

Every other block has 8 words, 23 words, so the field of the word requires 3 bits.

For both the tag field, the remaining portion bits are essential. The bytes in the tag field are calculated as follows:

Bits number in the field tag =Address Bits Total number-Set bits number number-Number of bits of words

=16-4-3

= 9 bit

The number of bits inside the individual fields is therefore as follows:

Tag field: 8 bits Tag field

Fieldset: 4 bits

Field Word:3 bits

Describe a problem you’ve solved or a problem you’d like to solve. It can be an intellectual challenge, a research query, an ethical dilemma — anything of personal importance, no matter the scale. Explain its significance to you and what steps you took or could be taken to identify a solution.

Answers

Answer:

Explanation:

I run an online e-commerce store and lately its been very difficult keeping track of customer detail, incoming orders, keyword generation etc. One solution that I thought about would be an application that controls all of that for me. In order to accomplish this I would first need to design and create a GUI that contains all of the necessary buttons and displays for the information. Then I would need to code a webscraper using Python to grab all of the data from e-commerce store as soon as it becomes available, organize it, and display it within the GUI.

Create a map using the Java map collection. The map should have 4 entries representing students. Each entry should have a unique student ID for the key and a student name for the element value. The map content can be coded in directly, you do not have to allow a user to enter the map data. Your program will display both the key and the value of each element.

Answers

Answer:

In Java:

import java.util.*;  

public class Main{

   public static void main(String[] args) {

       Map<String, String> students = new HashMap<>();

       students.put("STUD1", "Student 1 Name");

       students.put("STUD2", "Student 2 Name");

       students.put("STUD3", "Student 3 Name");

       students.put("STUD4", "Student 4 Name");

       for(Map.Entry m:students.entrySet()){  

           System.out.println(m.getKey()+" - "+m.getValue());    }  

}}

Explanation:

This creates the map named students

       Map<String, String> students = new HashMap<>();

The next four lines populates the map with the ID and name of the 4 students

       students.put("STUD1", "Student 1 Name");

       students.put("STUD2", "Student 2 Name");

       students.put("STUD3", "Student 3 Name");

       students.put("STUD4", "Student 4 Name");

This iterates through the map

       for(Map.Entry m:students.entrySet()){  

This prints the details of each student

           System.out.println(m.getKey()+" - "+m.getValue());    }  

You are setting up a small network. The customer has decided to change his internet service provider (ISP) to EtherSpeed. The ISP has installed a connection to both RJ45 jacks on the wall plate. You are responsible for selecting the correct router to connect the network to the internet. You want to use the fastest connection speed available while providing for security for both the Home-PC and Home-PC2 computers.

Your task is to complete the following:

⢠Use the appropriate network components to connect the two computers to the new ISP.
⢠Place the Ethernet router with firewall capabilities on the Workspace.
⢠Use the existing Cat5e Ethernet cables to connect the computers to the router's integrated Ethernet LAN ports.
⢠Use the AC to DC power adapter to plug in the device.
⢠Use the Network and Sharing Center on both computers to confirm that the computers are properly connected to the network and internet.

Answers

Home pc1 becouse it is the right one

A bank is developing an algorithm that will help them decide who to make loans to. As input the algorithm will consider information about the person applying for the loan and the amount of money requested, and as output the algorithm will decide whether the bank should give that loan.
The bank intends to develop the algorithm using machine learning techniques. The algorithm will be trained using data from past loan decisions made by human bankers.
Which of the following best describes whether this algorithm will include bias?
Group of answer choices
A. While the algorithm may be biased, the eventual decision made the algorithm will not be
B. The algorithm will not be biased because using machine learning eliminates human biases
C. Machine learning algorithms cannot be developed using biased data so if there is bias in the data it will be impossible to develop the algorithm
D. The algorithm will likely reflect the human biases in the data used to train it
E. The histogram chart below has a single bar for every state in the United States. Each state is placed in a bucket, or range, based on its area in square miles.

Answers

Answer: A

Explanation:

Just took this and got it right

Answer:

The answer is D

Explanation:

Since it is made by humans there will surely be bias in making the algorithm and the algroithm will reflect that bias from the people that made it. Also I got this question and I got it right.

ASAP NEED HELP ASAP NEED HELP ASAP NEED HELP ASAP NEED HELP ASAP NEED HELP ASAP NEED HELP ASAP NEED HELP ASAP NEED HELP​

Answers

Answer:

10.b

11.c

12.c

13.a

14.d

15.b

16.c

Explanation:

please brainleist please ♨️☺️

Mathilda’s computer has been running slow the past few months. She observed that the system unit becomes too hot. What does she need to do to fix this issue?
A.
She needs to make sure that the keyboard and mouse are properly connected.
B.
She needs to install antivirus software.
C.
She needs to delete unwanted files from her hard disk.
D.
She needs to clean the dust from the system unit fan.

Answers

It is D it may cause your computer to get hot because of the dust from the unit fan :/

Answer:

The answer is D

Explanation:

As of Spring 2020, in otder to get into the CS major, you must have a 3.0 GPA or better in cs120, cs210, and cs245. In this problem, you should write one function named get_gpa, which will calculate this GPA. This function should have one parameter, which will be a dictionary of grades in computer science courses. You can assume that the dictionary will always have the keys 'cs120', 'cs210', and 'cs245', but it also might contain some names of other courses too. The values associated with each key will be a float representeing the GPA-style grade for that class. For instance, the parameter dictionary might look like: {'cs120':4.0 'cs245':3.0, 'cs210':2.0}. Some examples:

get_gpa({'cs110': 4.0, 'cs245':3.0, 'cs335':4.0, 'cs120':3.0, 'cs210':3.0}) should return 3.0.
get_gpa({'cs110': 4.0, 'cs120':3.0, 'cs245':2.0, 'cs210':1.0}) should return 2.0.
get_gpa({'cs245':4.0, 'cs120':3.0, 'cs245':2.0}) should return 3.0.

Make sure to include only the one function in your file.

Answers

Answer:

The function is as follows:

def get_gpa(mydict):

   gpa = 0

   kount = 0

   for course_code, gp in mydict.items():

       if course_code == 'cs120' or course_code == 'cs210' or course_code == 'cs245':

           gpa += float(gp)

           kount+=1

   

   return (gpa/kount)

Explanation:

This defines the function

def get_gpa(mydict):

This initializes gpa to 0

   gpa = 0

This initializes kount to 0

   kount = 0

This iterates through the courses

   for course_code, gp in mydict.items():

If course code is cs120 or cs210 or cs245

       if course_code == 'cs120' or course_code == 'cs210' or course_code == 'cs245':

The gpa is added

           gpa += float(gp)

And the number of courses is increased by 1

           kount+=1

This returns the gpa    

   return (gpa/kount)

What type of web provides a framework that allows data to be shared and reuse to deliver
web content specifically targeting the user?

Answers

Answer:

Semantic Web

Explanation:

The Semantic Web provides a common framework that allows data to be shared and reused across application, enterprise, and community boundaries. It is a collaborative effort led by W3C with participation from a large number of researchers and industrial partners.

10.11 LAB: Pet information (derived classes) The base class Pet has private data members petName, and petAge. The derived class Dog extends the Pet class and includes a private data member for dogBreed. Complete main() to: create a generic pet and print information using PrintInfo(). create a Dog pet, use PrintInfo() to print information, and add a statement to print the dog's breed using the GetBreed() function.

Answers

Answer:

Answered below.

Explanation:

//Program in Java

Class Test{

public static void main (String[] args){

//create a pet object

Pet pet = new Pet();

//call pet object's printInfo method

pet.printInfo();

//create a new Dog object

Dog dog = new Dog();

//dog can access the printInfo method of the Pet class because it derives from it

dog.printInfo();

//dog can also call it's private method.

dog.getBreed();

}

}

Summary
In this lab, you use what you have learned about searching an array to find an exact match to complete a partially prewritten C++ program. The program uses an array that contains valid names for 10 cities in Michigan. You ask the user to enter a city name; your program then searches the array for that city name. If it is not found, the program should print a message that informs the user the city name is not found in the list of valid cities in Michigan.
The file provided for this lab includes the input statements and the necessary variable declarations. You need to use a loop to examine all the items in the array and test for a match. You also need to set a flag if there is a match and then test the flag variable to determine if you should print the the Not a city in Michigan.message. Comments in the code tell you where to write your statements. You can use the previous Mail Order program as a guide.
Instructions
Ensure the provided code file named MichiganCities.cppis open.
Study the prewritten code to make sure you understand it.
Write a loop statement that examines the names of cities stored in the array.
Write code that tests for a match.
Write code that, when appropriate, prints the message Not a city in Michigan..
Execute the program by clicking the Run button at the bottom of the screen. Use the following as input:
Chicago
Brooklyn
Watervliet
Acme
// MichiganCities.cpp - This program prints a message for invalid cities in Michigan.
// Input: Interactive
// Output: Error message or nothing
#include
#include
using namespace std;
int main()
{
// Declare variables
string inCity; // name of city to look up in array
const int NUM_CITIES = 10;
// Initialized array of cities
string citiesInMichigan[] = {"Acme", "Albion", "Detroit", "Watervliet", "Coloma", "Saginaw", "Richland", "Glenn", "Midland", "Brooklyn"};
bool foundIt = false; // Flag variable
int x; // Loop control variable
// Get user input
cout << "Enter name of city: ";
cin >> inCity;
// Write your loop here
// Write your test statement here to see if there is
// a match. Set the flag to true if city is found.
// Test to see if city was not found to determine if
// "Not a city in Michigan" message should be printed.
return 0;
} // End of main()

Answers

Answer:

Replace the comments with:

for(x = 0; x < NUM_CITIES; x++){

      if(inCity == citiesInMichigan[x]){           foundIt = true;}

  }

  if(foundIt){ cout<<"Exists";}

  else{cout<<"Does not exists";}  

 

Explanation:

This iterates through the cities

[tex]for(x = 0; x < NUM\_CITIES; x++)\{[/tex]

This checks if current city in the array matches the city input by the user

[tex]if(inCity == citie sIn Michigan[x])\{[/tex]           foundIt = true; If yes, foundIt is set to true}

  }

If foundIt is true, print "Exists"

if(foundIt){ cout<<"Exists";}

If foundIt is false, print "Does not Exists"

  else{cout<<"Does not exists";}  

See attachment for complete program

A sql-6-5.sql file has been opened for you. Write each of the following tasks as a SQL statement in a new line (remember that you can source the file to compare the output reference): Use the e_store database Select the total stock of all products in the products table. Alias the column name as total_stock. The resulting table should look like this:

Answers

Answer:

The query is as follows:

select sum(stock) as total_stock from products

Explanation:

Required

Return total stock using the alias total_stock from the product table.

The explanation of the query is as follows:

select ----> This implies that data is to be selected from the table

sum(stock) ----> This adds up entries in stock column

as total_stock ---> This represents the alias used for sum(stock)column where

from products  ----> The table being queried

Take for instance, the content of the table is:

SN  Product Stock

1      Apple     5

2     Orange   3

3      Banana   8

The query will return the following table:

total_stock

16

Other Questions
Are there any ways to compare life on Animal Farm for the animals to real life? Why or why not? l saw _little boy run across _car hit _boy _car stopped and - man came out of _car _man phoned for _ambulance immediately _arrived in no time, I need vowels sounds like this (a, an, or the) appropriately A survey is conducted at two junior highschools asking students about the number ofsodas they consume each day.Sodas Consumed Per DayHEJunior HighJunior High B1Based on the data shown in the graphs,which statement is true? During times of emergency in a public place, people act differently when there are several people than when there are just a few. If you had fallen and badly injured yourself, the surrounding masses of people are less likely to help you than if just one or two people were present. This is called the bystander effect.Which type of psychologist would be most interested in studying why people in crowds are less likely to help a bloody, injured person needing help?forensic psychologistorganizational psychologistsocial psychologistcounseling psychologist what is the nature of salt which is formed by the combination of weak acid and strong base And have a great day Discuss the changes World War II brought about in domestic economic development. Ser She skySOURCE:1. Name the THREE processes responsible for the loss of the sun's heat in the atmosphere you planted sunflower seeds in your backyard and everyday the number of flowers doubles if it takes 42 days for the flowers to fill the garden how many days would it take for them to fill half of the gardenPlz HELPPP]PPPPPPPPPPPPPPPP Does anyone know the book Of Mice and Men? Light waves travel at 3 10 8 m/s. If the light wave has a particular wavelength of 400 nm (400 10 9 m), calculate its frequency. The phenomenon that causes air masses and water to bend or curve is the ______________.PLZ I NEED HELP ILL GIVE BRAINLIEST Read the excerpt from Act III of Julius Caesar.Antony: (To dead Caesar, with grief) 0, pardon me, thou bleeding piece of earth, that I am meek and gentle with these butchers. Thou art the ruins of the noblest man that ever lived in the tide of times.(Looking after the murderers, he shakes his fist at them in fury.) Woe to the hand that shed this costly blood! A curse shall light upon the limbs of men. (He points to Caesar, whose ghost will rise.) And Caesar's spirit, ranging for revenge, come hot from Hell, shall in these confines with a monarch's voice cry, "Havoc!" and let slip the dogs of war that this foul deed shall smell above the earth with carrion men, groaning for burial.What makes this excerpt from Act III of Julius Cesar an example of a monologue?Antony is alone on stage and shares his inner conflict aloud. Antony discusses his grief with other characters.Antony calls Caesar's murderers back on stage and threatens his revenge.Antony reveals Brutus's betrayal of Caesar to the citizen's of Rome. Cynthia rounds a number, x, to one decimal point.The result is 6.3Write down the error interval for x. I'LL GIVE BRAINLIEST PLEASE ANSWER ALL FOUR PLEASE Discriminant 9v^2+v+5=0 Maureen went on a 3 day, 50 mile biking trip. The first day she biked 6 miles. The second day shebiked 19 miles. How many miles did she bike on the 3rd day? Read the sentence from the section "FDA-Approved Cattle Feed." The byproducts are mixed with other ingredients to achieve a particular nutritional profile, Cribbs said. The author uses the phrase "nutritional profile" to mean: Question 2 options: cattle byproduct processed ingredient planned-out animal diet specific food regulation SELECT THE OPTION THAT BEST ANALYZES THE AUTHOR'S SYNTAX: "Ive had successes and Ive had setbacks." *A)By utilizing juxtaposition, Clinton emphasizes the unpredictable and yet realistic outcome of one's hard work, which encourages her audience to continue fighting for what they believe in.b) By explaining her good times and bad times, Clinton shows that she is human too, which helps her audience relate to her.c) By making a short- direct statement, Clinton illustrates how unpredictable life can be, which provides a valuable life lesson for her audience.d) By using a short- compound sentence, Clinton accentuates the successes and setbacks in her life, which adds to the depressing mood of her speech. Generational accounting: Select one: a. is a method of assessing the impact of fiscal policy lags from one generation to another. b. measures the number of generations it takes to pay off the national debt at a given point in time. c. evaluates the impact of current fiscal policies on different generations in the economy, including future generations. d. is an accounting method that defers to the future, the cost of any government policy the rewards of which will be reaped in the future. Read the passage from "One of These Days" by Gabriel GarciaMarquez:"Monday dawned warm and rainless. Aurelio Escovar, a dentist withouta degree, and a very early riser, opened his office at six. He took somefalse teeth, still mounted in their plaster mold, out of the glass case andput on the table a fistful of instruments which he arranged in size order,as if they were on display. He wore a collarless striped shirt, closed atthe neck with a golden stud, and pants held up by suspenders. He waserect and skinny, with a look that rarely corresponded to the situation,the way deaf people have of looking."All of the following excerpts are used as appositive phrases except...Select one:- "still mounted in their plastic mold"- "With a look that rarely corresponded to the situation"- "He wore a collarless striped shirt- a dentist without a degree