in the shop class, complete the function definition for setnumemployees() that takes in the integer parameter newnumemployees. ex: if the input is 232 42 9, then the output is: items in stock: 232 years open: 42 number of employees: 9

Answers

Answer 1

The function setnumemployees() in the shop class is responsible for setting the number of employees in the shop object.

It takes an integer parameter newnumemployees, which represents the new number of employees to be set for the shop object.

The function simply sets the value of the private member variable numemployees to the value of the parameter newnumemployees.

In the given example, if the input is "232 42 9", the function call will set the number of employees of the shop to 9. The function does not return any value, but it modifies the state of the shop object by updating the value of its numemployees member variable.

Overall, this function allows for the number of employees of a shop object to be easily updated and modified as needed.

To know more about function click here:

brainly.com/question/29911729

#SPJ4


Related Questions

Claire still has trouble locating the home row on a keyboard without looking. What fundamental is she struggling with

Answers

Answer: Understanding finger placement.

Explanation: Its clear to see that she MOST LIKELY knows where all the keys are, she just might have trouble remembering where to press and where to keep her hands. It can be confusing sometimes, with all these other keys in the way.

this is confusing as everrrr

Answers

In AP Pseudo code, the call to sub string("forever", 3, 3) would return the string "eve".

Why is this so?

This is because the sub string() function takes three arguments: the original string, the starting index (inclusive), and the length of the sub string to extract.

In this case, the starting index is 3, which corresponds to the letter "e" in the original string "forever". The length of the sub string is also 3, so the function will extract three characters starting from the "e" and return "eve".

With this in mind, the correct answer is option A

Read more about sub strings here:

https://brainly.com/question/28290531

#SPJ1

You would like to completely shut down a system 10 minutes after notifying all users of your intent.

Which of the following commands should you enter at the shell prompt?

A) shutdown -h +10 message
B) shutdown 10 -h message
C) shutdown -p 10 message
D) shutdown -r +10 message

Answers

The correct answer is A) shutdown -h +10 message.

Explanation:

The 'shutdown' command is used to shut down or reboot a system. The '-h' option tells the system to shut down and power off (halt) after shutting down, while the '-r' option tells the system to shut down and reboot (restart) after shutting down. The '-p' option tells the system to power off immediately without performing a graceful shutdown.

In this case, we want to shut down the system 10 minutes after notifying all users of our intent, so we should use the '+10' option to specify a delay of 10 minutes before shutting down. We should also include a message to notify users of the impending shutdown. Therefore, the correct command is:

shutdown -h +10 message

Option B is incorrect because it specifies the delay before shutting down as a number of seconds rather than a time interval. Option C is incorrect because it tells the system to power off immediately without waiting 10 minutes after notifying users. Option D is incorrect because it tells the system to restart after shutting down rather than power off.

Math Machine Code:
Convert strings to numbers.
Initialize and use the Random number generator.
Perform several Math class operations.
Display a value in hexadecimal format.

Answers

Answer:

import random

# Convert strings to numbers

string_num1 = "123"

string_num2 = "456"

num1 = int(string_num1)

num2 = int(string_num2)

# Initialize and use the Random number generator

random_num = random.randint(1, 100)

print("Random Number:", random_num)

# Perform several Math class operations

sum = num1 + num2

product = num1 * num2

power = num1 ** num2

sqrt = num1 ** 0.5

# Display a value in hexadecimal format

hex_value = hex(random_num)

# Display the results

print("Num1:", num1)

print("Num2:", num2)

print("Sum:", sum)

print("Product:", product)

print("Power:", power)

print("Square Root of Num1:", sqrt)

print("Hexadecimal Value of Random Number:", hex_value)

Explanation:

In this code, we first convert two string numbers (string_num1 and string_num2) to integers using the int() function. Then, we use the random module to generate a random number and perform various Math class operations such as addition, multiplication, exponentiation, and square root. Finally, we use the hex() function to convert the random number to hexadecimal format.

Select all statement that are true there may be more than one answer

a mouse button can be changed from right to left the volume of speakers can be made louder or quieter

icons can be made larger than normal

The desktop contrast cannot be changed
It is not possible to change the double click speed of the mouse

Kindly assist me with this problem please and thank you :)

Answers

Right and left mouse buttons are interchangeable. The speakers' loudness can be changed. You can enlarge icons. It is untrue to say that the desktop contrast cannot be altered.

How can I make my mouse just make one click?

Open Start > Settings > Devices > Mouse, then click Extra mouse options under Related settings to turn it on. Choose the checkbox for Turn on ClickLock. To change how long you want to wait for the choice to be made, click settings.

How can I switch the mouse's direction between my three monitors?

Choose Display Settings by doing a right-click on your desktop. Click Identify now. Every monitor you sell will have a number appear on it. You can drag your monitors in from that window.

To know more about desktop contrast visit:-

https://brainly.com/question/15089327

#SPJ1

Discuss Internet communications, including social networking, blogs, microblogs, webcasts, podcasts, wikis, client-based and web-based e-mail, and messaging.

Answers

Answer:

Internet communications-Internet communication refers to the sharing of information, data, ideas, or words over the internet. The internet comprises worldwide connected networks that transmit data thru packet switching using the standardized Internet Protocol Suite

social networking-involves the use of online social media platforms to connect with new and existing friends, family, colleagues, and businesses.

blogs- an informational website published on the World Wide Web consisting of discrete, often informal diary-style text entries (posts).

Explanation:

Can anyone figure this out?

Answers

In AP Pseudo code, the call to sub string("forever", 3, 3) would return the string "eve".

Why is this so?

This is because the sub string() function takes three arguments: the original string, the starting index (inclusive), and the length of the sub string to extract.

In this case, the starting index is 3, which corresponds to the letter "e" in the original string "forever". The length of the sub string is also 3, so the function will extract three characters starting from the "e" and return "eve".

With this in mind, the correct answer is option A

Read more about sub strings here:

https://brainly.com/question/28290531

#SPJ1

What are the advantages and disadvantages of each access control method? Which of these methods would you recommend for a highly secure system with several files and several users? Provide reasons for your answers.

Answers

There are several access control methods that can be used to secure a system, each with its own advantages and disadvantages. The most common access control methods are:

Role-Based Access Control (RBAC)Discretionary Access Control (DAC)Mandatory Access Control (MAC)

What is access control method?

Role-Based Access Control (RBAC): RBAC assigns permissions to users based on their role in the organization. This method is easy to administer, as it simplifies the process of adding or removing permissions for multiple users at once. However, RBAC can be inflexible, as it does not allow for granular control over individual permissions.

Discretionary Access Control (DAC): DAC allows users to control access to resources they own. This method is flexible, as it allows for fine-grained control over individual permissions. However, DAC can be difficult to administer, as it requires users to manage their own access control.

Mandatory Access Control (MAC): MAC assigns permissions based on a predefined set of rules, such as security clearances or job responsibilities. This method is highly secure, as it ensures that only authorized users can access resources. However, MAC can be difficult to administer, as it requires a high level of configuration and maintenance.

Read more about access control  here:

https://brainly.com/question/27961288

#SPJ1

a process makes a system call to read a packet from the network device, and blocks. the scheduler then context-switches this process out. this an example of an involuntary context switch.

Answers

Yes, this is an example of an involuntary context switch. When the process makes a system call to read a packet from the network device and blocks it, the scheduler takes over and context-switches the process out, allowing another process to run. This is involuntary as it's initiated by the operating system rather than the process itself.

A context switch happens when a computer's operating system interrupts one method and begins executing another, allowing several procedures to run concurrently within the same process. Switches of context can be voluntary or involuntary. A voluntary context switch happens when an operating system allows the running thread to pause running and allows another thread to start running. This occurs when a thread makes a system call to put itself to sleep or when it gives up its quantum to give another thread a chance to run. On the other hand, an involuntary context switch happens when an operating system halts a running thread to allow another thread to start running. This happens when a thread's quantum has expired, the thread blocks while waiting for input or output, or an interrupt occurs. A process makes a system call to read a packet from the network device and blocks it. The scheduler then context-switches this process out. This is an example of an involuntary context switch.

Find out more about context switch

brainly.com/question/13155235

#SPJ11

in java program code Writing a recursive math method. Write code to complete raiseToPower(). Sample output if userBase is 4 and userExponent is 2 is shown below. Note: This example is for practicing recursion; a non-recursive method, or using the built-in method pow(), would be more common. 4^2 = 16

Answers

The correct answer is Sure, here's a sample Java code for a recursive method called raiseToPower() that calculates the exponentiation of a given base number and exponent:

public class RecursiveMath {

 public static void main(String[] args) {

   int userBase = 4;

   int userExponent = 2;

   int result = raiseToPower(userBase, userExponent);

   System.out.println(userBase + "^" + userExponent + " = " + result);

 }

public static int raiseToPower(int base, int exponent) {

   if (exponent == 0) {

     return 1;

   } else if (exponent % 2 == 0) {

     int temp = raiseToPower(base, exponent / 2);

     return temp * temp;

   } else {

     return base * raiseToPower(base, exponent - 1);

   }

 }

}

The raiseToPower() method uses recursion to calculate the exponentiation of the base number and exponent. If the exponent is 0, the method returns 1. If the exponent is even, the method recursively calls itself with half the exponent and multiplies the result by itself. If the exponent is odd, the method multiplies the base by the result of recursively calling itself with the exponent minus 1. The method terminates when the exponent reaches 0. For example, if the user inputs 4 as the base and 2 as the exponent, the output of the program will be: [tex]4^2 = 16[/tex] Note that this implementation is for practicing recursion and is not the most efficient or common way to calculate exponentiation in Java.

To learn more about raiseToPower  click on the link below:

brainly.com/question/17151738

#SPJ1

How to make an console application in which the first version of a system that will allow users to post messages and photos that other users can view and like in C sharp

Answers

To make the console application in C#, open a new project, define the classes for the objects and images, implement the command-line interface and then use the output for the display

How to make a console application

To create a console application in C#, you can follow these steps:

Open Visual Studio and create a new Console Application project.Define classes to represent your message and photo objects.Implement a way to store the messages and photos, such as using a list or database.Implement a command-line interface that allows users to post messages and photos, view them, and like them.Handle user input and perform the appropriate actions based on the user's choice.Use console output to display messages and photos to the user.

Keep in mind that a console application may have limited capabilities in terms of user interface and interactivity, so you may want to consider developing a graphical user interface in the future.

Read more about console application at: https://brainly.com/question/27031409

#SPJ1

match each vocabulary word to its definition. 1. blacklist place where an item on the internet is located 2. ethics 1 e-mail addresses or domains suspected of spamming 3. thread text at the end of an e-mail message that identifies the sender 4. signature standards of right and wrong 5. web address one or more messages on the same topic

Answers

A blacklist is a list of banned items, ethics are moral principles that guide behavior, a thread is a sequence of related messages, a signature is a block of text or image appended to an email, and a web address is a unique identifier for a resource on the internet.

1. Blacklist: A list of people, companies, or items that are considered undesirable or unacceptable and are thus excluded from certain privileges or opportunities.

2. Ethics: A set of moral principles and values that guide individuals or organizations in their decision-making and behavior, and that are based on notions of right and wrong.

3. Thread: A sequence of messages or posts on a particular topic or subject that are connected and displayed in chronological order, often on an online discussion forum or social media platform.

4. Signature: A block of text, usually at the end of an email message, that contains the sender's name, contact information, and/or a personal message.

5. Web address: A unique identifier for a website or web page, consisting of a protocol (e.g. http or https), a domain name, and a path to the specific page or resource being requested.

To know more about Blacklist click here:

brainly.com/question/30360318

#SPJ4

Write a program that will read a file (data.txt). The file contains integer values. The
program will read the file and create a list. (Python)

Answers

Python program that reads in a file called "data.txt" and creates a list of integer values:

# Open the file for reading

with open("data.txt", "r") as file:

   # Read the file and split the lines into a list of strings

   lines = file.readlines()

   # Convert each string in the list to an integer and create a list of integers

   integers = [int(line.strip()) for line in lines]

   

   # Print the list of integers

   print(integers)

This program uses the built-in open() function to open the file for reading. It then reads in all the lines of the file using readlines() and splits them into a list of strings. It then uses a list comprehension to convert each string in the list to an integer using int() and creates a new list of integers. Finally, it prints the list of integers.

Note that this program assumes that each line in the file contains only a single integer. If your file has a different format (such as multiple integers per line or other types of data), you may need to modify the program accordingly.

Convert (DAD)16 number to octal equivalent number

Answers

It is to be noted that the octal equivalent of (DAD)16 is (3265)8.

What is the explanation of the above response?

To convert a hexadecimal number to octal, we can first convert the hexadecimal number to binary and then convert the binary number to octal. Here are the steps to convert (DAD)16 to its octal equivalent:

Write down the hexadecimal number (DAD)16

Convert each hexadecimal digit to its 4-bit binary equivalent:

D = 1101

A = 1010

D = 1101

Group the binary digits into groups of 3, starting from the right:

011 010 110 101

Convert each group of 3 binary digits to its octal equivalent:

3 2 6 5

Write down the octal digits from left to right:

(DAD)16 = (3265)8

Therefore, the octal equivalent of (DAD)16 is (3265)8.

Learn more about octal equivalent number on:

https://brainly.com/question/17033977

#SPJ1

Complete the sentence.
Video content, audio content, and metadata can all be stored together in a single file.

Answers

The correct answer is Video content, audio content, and metadata can all be stored together in a single file, known as a container format. A container format is a type of file format that can store multiple types of data, such as video, audio, subtitles, and metadata, within a single file.

This allows for easier management and organization of multimedia content, as all the components of a particular media asset are stored together in one place. Examples of container formats include MP4, AVI, and MKV, which are widely used in the media and entertainment industries. These formats support a variety of video and audio codecs, which can affect the quality and compatibility of the content with different devices and platforms. By storing video content, audio content, and metadata together in a single file, users can easily manage and share multimedia assets without the need for separate files or folders for each component. This can simplify workflows and make it easier to store, transport, and distribute multimedia content across different devices and platforms.

To learn more about Video content, click on the link below:

brainly.com/question/14102171

#SPJ1

Answer:

single container file

Explanation:

got it right

Create a style rule for paragraphs within
the article element to set the minimum
size of widows and orphans to 4 lines.

Answers

To set the minimum size of widows and orphans to 4 lines within the article element, you can use the following CSS style rule for paragraphs:

The Program

article p {

 min-height: 4em; /* 4 lines */

 widows: 4;

 orphans: 4;

}

This rule sets the min-height property of paragraphs within the article element to 4em, which corresponds to approximately 4 lines of text. Additionally, it sets the widows and orphans properties to 4, which specifies the minimum number of lines that a paragraph can have at the beginning or end of a page before it is considered a widow or orphan.

Read more about CSS here:

https://brainly.com/question/28482926

#SPJ1

Given the snippet of codes, identify the passing mechanism used for x (in function) void func(int *x, int y) {
*x = *x + y; y = 2;
}
call-by-name call-by-value call-by-reference call-by-address

Answers

The passing mechanism used for x in the given snippet of codes is "call-by-address".

The passing mechanism used for x in the given function is call-by-address. What is a passing mechanism? A passing mechanism is a method for passing parameters to a function. It determines the technique used to provide values to a function call's formal parameters, which are its local variables. Depending on the programming language and compiler, different passing mechanisms may be used. Given the snippet of codes, the passing mechanism used for x (in function)void func(int *x, int y) {
*x = *x + y; y = 2;
}The code is utilizing a call-by-address method because the variable "x" is being passed as a pointer in the function. When a pointer is used, instead of the actual value, the function gets the address of the variable being passed. This means that the function will modify the value of the variable passed, and the changes will be permanent.

learn more about coding here:

https://brainly.com/question/17204194

#SPJ11

1. When you evaluate a website for authority, you are checking to see who
the author is and if this person is qualified to write about the topic you
are reading about. * (1 Point)
(a) True
(b) False

Answers

True. Verifying the author's credentials to write about the subject being covered is a necessary step in determining the authority of a website.

How can you assess a website's authority?

Engaging comments. The authority of a website is largely determined by metrics, rankings, and the quality of its material, as well as by audience involvement. Websites that receive a lot of audience participation are more authoritative than those that receive little user participation.

What factors should you take into account when assessing a website's author?

While assessing any website, the following six (6) factors should be used: authority, accuracy, objectivity, currency, coverage, and appearance.

To know more about website visit:-

https://brainly.com/question/19459381

#SPJ1

in java program code Modifying ArrayList using add() and remove(). Modify the existing ArrayLists's contents, by erasing the second element, then inserting 100 and 102 in the shown locations. Use ArrayList's remove() and add() only. Sample ArrayList content of below program: 100 101 102 103

Answers

Here's a Java program code that demonstrates how to modify an ArrayList using add() and remove() methods to erase the second element, and then insert 100 and 102 in the shown locations:

import java.util.ArrayList;

public class ModifyArrayListExample {

   public static void main(String[] args) {

       // Create an ArrayList with initial content

       ArrayList<Integer> list = new ArrayList<Integer>();

       list.add(100);

       list.add(101);

       list.add(102);

       list.add(103);

       // Erase the second element

       list.remove(1);

       // Insert 100 and 102 in the shown locations

       list.add(1, 100);

       list.add(3, 102);

       // Print the modified ArrayList

       System.out.println("Modified ArrayList: " + list);

   }

}

Output:

Modified ArrayList: [100, 100, 102, 103]

In the above code, we first create an ArrayList list with initial content. We then use the remove() method to erase the second element at index 1. Next, we use the add() method to insert 100 and 102 in the shown locations at index 1 and 3 respectively. Finally, we print the modified ArrayList using the println() method.

Systems study involves which of the following option ?

a.
Design of system

b.
Determination of system requirements

c.
System testing

d.
All of the options​

Answers

d. All of the options are involved in systems study:

a. Design of system: This involves creating a plan or blueprint for how the system will be constructed, including its components, processes, and interactions.

b. Determination of system requirements: This involves identifying the needs and constraints of the system, including the functional and non-functional requirements, as well as any legal or ethical considerations.

c. System testing: This involves evaluating the system to ensure that it meets the requirements and functions correctly, including performance testing, security testing, and usability testing.

All of these options are critical to a comprehensive systems study, as they help ensure that the system is designed, built, and tested to meet the needs and expectations of its users.

Which of the following statements about robots is true?

Answers

Answer:

that they have knowledge smarter than human knowledge

Answer: Inputs to robots is analog signal in the form of speech waveform or images

Explanation:

BMD
a positive and respecte corpose and share in this discussion forum Al students will share and have the opportunity to leam from each other. Everyone is expected to be positive and respectful, with comments that help at leamers write effectively. You are required to provide
comment on one of your classmate's posts
For your discussion assignment, follow this format
Tople Sentence: With growing online social media presence cyberbullying is at an all-dime high because
Concrete detail Cyberbullying has steadly been on the rise because
4
Commentary: Looking at some of my (or include the name of the famous person that you chose) most recent social media posts I can see how one could misinterpret my posting because
Concluding Sentence: To help lower the growth rate of cyberbullying, we can...
Respond to Classmate: Read other students' posts and respond to at least one other student. Your response needs to include a spects comment

Answers

This prompt is about the topic sentence  "With growing online social media presence, cyberbullying is at an all-time high because of the anonymity it provides"

What is the writeup?


Topic Sentence: With growing online social media presence, cyberbullying is at an all-time high because of the anonymity it provides.

Concrete Detail: Cyberbullying has steadily been on the rise because individuals can easily hide behind a screen and say things they would not normally say in person.

Commentary: Looking at some of my most recent social media posts, I can see how one could misinterpret my posting and leave hurtful comments. It is important to remember that social media is a public platform and everything posted can have an impact on someone's mental health. It is crucial that we are mindful of what we post and how it may affect others.

Concluding Sentence: To help lower the growth rate of cyberbullying, we can start by spreading awareness and educating individuals on the harmful effects of cyberbullying. We can also encourage social media platforms to implement stricter policies and consequences for cyberbullying behaviors.

Learn more about Cyberbullying;
https://brainly.com/question/28809465
#SPJ1


Your teacher has asked you to redesign a common board game to depict the historical periods of
technology. The board game should include instructions and questionis specific to the design problem. All
resources should include APA or MLA citations.

Answers

Answer:

APA include citations correct answer

**** Write in a Pseudocode form to compute sum of first ten prime numbers​

Answers

Here's one way to write pseudocode to compute the sum of the first ten prime numbers:

The Pseudocode

set count to 0

set sum to 0

set num to 2   // start with the first prime number

while count < 10:

   is_prime = true   // assume num is prime unless proven otherwise

   

   for i from 2 to num - 1:

       if num % i == 0:

           is_prime = false

           break   // num is not prime, so stop checking

   

   if is_prime:

       sum = sum + num

       count = count + 1

   

   num = num + 1   // check the next number

print sum

This pseudocode initializes a counter and a sum variable to zero, and then iterates through numbers until it finds 10 primes. For each number, it checks if it is prime by iterating through all the smaller numbers and checking if any divide it evenly. If the number is prime, it adds it to the sum and increments the counter. Finally, it prints the sum of the first 10 primes.

Read more about pseudocode here:

https://brainly.com/question/26905120

#SPJ1

Who is responsible for having Account/Relationship level Business Continuity Plan (BCP) in place?

Answers

The responsibility for having an Account/Relationship level Business Continuity Plan (BCP) in place usually lies with the company or organization providing the service or product. This is because they are responsible for ensuring the continuity of their operations and minimizing the impact of disruptions on their customers. However, it is also important for customers to have their own BCPs in place to ensure their own business continuity in case of a disruption. Ultimately, it is a shared responsibility between the service provider and the customer to have robust BCPs in place.

In a business or organizational context, the responsibility for having an Account/Relationship level Business Continuity Plan (BCP) in place typically falls on the account manager or relationship manager.

What is the Business

Account/relationship level BCP is a plan made specifically for a client or customer account or relationship to deal with their special needs and risks.

These plans are really important for businesses that have important clients or relationships to make sure that they can keep providing necessary services or products even if something unexpected happens like a natural disaster, cyberattack, or emergency.

Read more about Business  here:

https://brainly.com/question/18307610

#SPJ2

in java program code Basic inheritance.
Assign courseStudent's name with Smith, age with 20, and ID with 9999. Use the printAll() member method and a separate println() statement to output courseStudents's data. Sample output from the given program:
Name: Smith, Age: 20, ID: 9999

Answers

The correct answer is To implement basic inheritance in Java, we create a parent class and then create a child class that extends the parent class. The child class inherits all the properties and methods of the parent class, and can also have its own properties and methods.

Here is an example Java code that demonstrates basic inheritance:

class Student {

   private String name;

   private int age;

   private int ID;

     public Student(String name, int age, int ID) {

       this.name = name;

       this.age = age;

       this.ID = ID;

   }

    public void printAll() {

       System.out.println("Name: " + name + ", Age: " + age + ", ID: " + ID);

   }

}

class CourseStudent extends Student {

   public CourseStudent(String name, int age, int ID) {

       super(name, age, ID);

   }

}

public class Main {

   public static void main(String[] args) {

       CourseStudent courseStudent = new CourseStudent("Smith", 20, 9999);

       courseStudent.printAll();

       System.out.println("Name: " + courseStudent.getName() + ", Age: " + courseStudent.getAge() + ", ID: " + courseStudent.getID());

   }

}

In this example, we have created two classes: Student and CourseStudent. CourseStudent extends Student, which means it inherits all the properties and methods of the Student class. We have also created a constructor for the Student class that takes in the name, age, and ID of the student and sets them as instance variables. We have also created a printAll() method that prints out all the instance variables. In the CourseStudent class, we have created a constructor that calls the constructor of the parent class (Student) using the super() keyword. This constructor simply sets the name, age, and ID of the course student. In the main method, we have created an instance of the CourseStudent class with the name "Smith", age 20, and ID 9999. We have then called the printAll() method to output the course student's data, and also used a separate println() statement to output the data in a different format. When we run this code, we get the following output:

Name: Smith, Age: 20, ID: 9999

Name: Smith, Age: 20, ID: 9999

To learn more about Java, click on the link below:

brainly.com/question/16400403

#SPJ1

What the business rules that governs the relationship between egent and customer?

Answers

The relationship between agent and customer is typically governed by several business rules that dictate the expectations and responsibilities of both parties. Some of these rules may include:

Confidentiality: The agent must keep all information about the customer and their business confidential, unless authorized to share it.

Loyalty: The agent must act in the best interests of the customer at all times, putting their needs ahead of their own.

Communication: The agent must keep the customer informed of any relevant information or changes that may affect their business or relationship.

Performance: The agent must perform their duties competently and efficiently, meeting or exceeding the customer's expectations.

Conflict of Interest: The agent must avoid any conflicts of interest that could negatively impact the customer or their business.

Compliance: The agent must comply with all applicable laws, regulations, and industry standards related to their role and responsibilities.

These are just some examples of the business rules that may govern the relationship between agent and customer, and the specific rules may vary depending on the industry, type of business, and other factors.

(b). Describe any three (3) kinds of systems that support the decision makers and the types of
decisions they make. (10 Marks)

Answers

Executive Information Systems (EIS) for strategic decision-making, Business Intelligence (BI) systems for operational decision-making, and Expert Systems are three categories of decision support systems (ES).

What three categories of decision-making systems are there?

Decisions can also be categorised into three kinds based on the level at which they occur. Strategic choices determine an organization's path. The way that activities are done depends on tactical decisions. Not to mention, operational decisions are the ones that employees make on a regular basis to run the business.

What are the various decision-making systems?

A reflective system or a reactive (or reflexive) system are the two ways the human brain processes information for decision-making.

To know more about EIS visit:-

https://brainly.com/question/28249454

#SPJ1

find the sum of odd number from 1 to 100 .with flowchart, pseudo code and program code​

Answers

Answer:

Flowchart:

START

Set sum = 0

Set i = 1

WHILE i <= 100

IF i % 2 == 1

Set sum = sum + i

END IF

Set i = i + 1

END WHILE

Display sum

STOP

Pseudo code:

sum = 0

for i = 1 to 100

if i % 2 == 1

sum = sum + i

end if

end for

display sum

Program code in Python:

python

sum = 0

for i in range(1, 101):

if i % 2 == 1:

sum += i

print(sum)

Output: 2500

Explanation:

The program initializes the sum variable to 0 and uses a for loop to iterate through the numbers 1 to 100. The if statement checks if the current number is odd (i % 2 == 1) and if so, adds it to the sum variable. Finally, the program displays the sum of all odd numbers from 1 to 100, which is 2500.

in java program code Insertion sort The program has four steps: Read the size of an integer array, followed by the elements of the array (no duplicates). Output the array. Perform an insertion sort on the array. Output the number of comparisons and swaps performed. main() performs steps 1 and 2. Implement step 3 based on the insertion sort algorithm in the book. Modify insertionSort() to: Count the number of comparisons performed. Count the number of swaps performed. Output the array during each iteration of the outside loop. Complete main() to perform step 4, according to the format shown in the example below. Hints: In order to count comparisons and swaps, modify the while loop in insertionSort(). Use static variables for comparisons and swaps. The program provides three helper methods: // Read and return an array of integers. // The first integer read is number of integers that follow. int[] readNums() // Print the numbers in the array, separated by spaces // (No space or newline before the first number or after the last.) void printNums(int[] nums) // Exchange nums[j] and nums[k]. void swap(int[] nums, int j, int k) Ex: When the input is: 6 3 2 1 5 9 8 the output is: 3 2 1 5 9 8 2 3 1 5 9 8 1 2 3 5 9 8 1 2 3 5 9 8 1 2 3 5 9 8 1 2 3 5 8 9 comparisons: 7 swaps: 4

Answers

Here's a sample Java program that implements the insertion sort algorithm and counts the number of comparisons and swaps performed:

import java.util.Scanner;

public class InsertionSort {

   // Static variables to count the number of comparisons and swaps

   static int numComparisons = 0;

   static int numSwaps = 0;

   public static void main(String[] args) {

       // Step 1: Read the size of the array and the elements

       int[] nums = readNums();

       // Step 2: Print the input array

       printNums(nums);

       // Step 3: Perform insertion sort

       insertionSort(nums);

       // Step 4: Print the sorted array and the number of comparisons and swaps

       printNums(nums);

       System.out.printf("comparisons: %d\n", numComparisons);

       System.out.printf("swaps: %d\n", numSwaps);

   }

   // Read and return an array of integers

   // The first integer read is the number of integers that follow

   static int[] readNums() {

       Scanner input = new Scanner(System.in);

       int n = input.nextInt();

       int[] nums = new int[n];

       for (int i = 0; i < n; i++) {

           nums[i] = input.nextInt();

       }

       return nums;

   }

   // Print the numbers in the array, separated by spaces

   // (No space or newline before the first number or after the last.)

   static void printNums(int[] nums) {

       for (int i = 0; i < nums.length; i++) {

           System.out.printf("%d", nums[i]);

           if (i < nums.length - 1) {

               System.out.print(" ");

           }

       }

       System.out.println();

   }

   // Exchange nums[j] and nums[k]

   static void swap(int[] nums, int j, int k) {

       int temp = nums[j];

       nums[j] = nums[k];

       nums[k] = temp;

   }

   // Perform an insertion sort on the array nums

   static void insertionSort(int[] nums) {

       for (int i = 1; i < nums.length; i++) {

           // Insert nums[i] into the sorted subarray nums[0:i-1]

           int j = i;

           while (j > 0 && nums[j] < nums[j-1]) {

               swap(nums, j, j-1);

               numComparisons++;

               numSwaps++;

               j--;

           }

           printNums(nums);  // Output the array during each iteration

           numComparisons++;  // Increment the number of comparisons

       }

   }

}

Other Questions
[Questions in the image] handy hardware store agrees to hire ilsa for one year at a salary of $500 per week. when handy cancels the contract, ilsa spends $100 to obtain a similar job that pays $450 per week for a year. ilsa is entitled to recover how much would you be willing to pay today for an investment that would return $800 each year at the end of each of the next 6 years? assume an annual interest rate of 5%. Anyone know how to do this Create multiple A line with a slope of 4 and y-intercept -6. a. representations of each line described below. b. A line with a slope of that passes through the point (5,7). 2 C. Any line parallel to the line in part (b). d. A line perpendicular to the line in part (b), passing through the origin. In a recrystallisation, why are the newly formed crystals washed with cold solvent? a company has two divisions, one in the united states and the other in china. one uses oracle and the other uses sap for its basic accounting system. what would we call this? During middle and late childhood, children gain about ______ pounds a year due to increases in the _________ and _________ systems as well as some body organs 1. This allows student religious groups to meet in high schools receiving federal funds. free exercise clauseEngle v. VitaleEqual Access Actestablishment clause2. In the Board of Education v. Allen, the Court upheld state programs to provide these to parochial schools.secular textbooksclass periods for prayerfree lunchesschool buses3. These cases illustrate how the Court can change its interpretation of the Constitution.access casesfederal lunch program casesaid to parochial schools casesflag salute cases how does a snak moove with no legs f the fed expects currency holdings to rise, it conducts open market to offset the expected in reserves. a. sales; decrease b. sales; increase c. purchases; increase d. purchases; decrease all the following could be considered mediums for communication by a project team member except? seleccione una: a. message b. email c. video conference d. staff meetings 50 POINTS!!!!!! PLEASE HELP ASAP!!!!!!Example of the law of contraposition?Premise:Premise:Conclusion: En una empresa fabricante de productos A, B ,C y D, cuyos costos de produccin, estn por el orden de 480, 650, 790 y 940 bolvares respectivamente. Dicha empresa obtiene un beneficio del resultado de su ingreso por la venta del 60% sobre el costo durante un cierto periodo estipulado de 85 productos A, 68 productos B, 43 productos C y 27 productos D. Si el beneficio es igual al ingreso menos el costo, entonces: Cul ser el beneficio de la empresa en ese periodo expresado en dlares y bolvares? (1 $ al cambio 25 Bs) A new virus test was recently developed by a pharmaceutical company. It returns apositive result for 99.5% of individuals who have the virus. However, it also returns apositive result for 0.5% of those who do not have the virus. To evaluate the test, a large number of people were tested at random. Overall, 1% of people tested positive. What percentage of those testing positive actually had the virus?"3.1" is the answer. Is the answer correct? If not, why? What's the right answer following a radical vulvectomy, the nurse is preparing the client for discharge to home. which care intervention would be considered the priority for this client? a spanner is dropped from a sixth floor window and take 2.2s to hit the ground. A)calculate the height from wich it was drop.b)its impact velocity who has been posting on social media about her court-mandated community service? at the resting membrane potential, the membrane is most permeable to ________, which moves ________ the cell due to its electrochemical gradient. The U-S-U range summary and text evidence