Pretend you have been hired as a developer for a company and you are required to create a program that assigns an employee’s user name to a default password for logging into the company’s system. the user will input their first name, last name. the system will assign a default password "welcome" plus a count based on each first and last name entered into the system. the program should be terminated when a sentinel character (*) is entered. the employee’s user name and password should be stored in parallel arrays.



declare firstname (xx) as string (example of an erray)

declare lastname (xx) as string (example of an erray)

Answers

Answer 1

To create a program that assigns an employee's username and password based on their first name and last name, we can start by declaring two parallel arrays to store the first names and last names of the employees. We can initialize these arrays with a fixed size or use dynamic sizing to allow for flexibility in the number of employees.

Next, we can use a loop to prompt the user to enter the first name and last name of each employee. We can use a sentinel character such as * to terminate the loop and exit the program. For each input, we can concatenate the first and last name to create the username and assign a default password "welcome" followed by a count based on the number of times the name has been entered.

To store the usernames and passwords, we can use two additional parallel arrays that correspond to the first name and last name arrays. As each input is processed, we can add the username and password to their respective arrays.

Overall, the program should be designed to be user-friendly and efficient, with appropriate error handling and input validation to prevent unexpected behaviors or incorrect data entry. By using parallel arrays to store employee information, we can easily manage and manipulate the data to perform various operations, such as searching or sorting based on specific criteria. With proper testing and quality assurance, we can ensure that the program meets the requirements and specifications of the company and effectively serves its intended purpose.

To learn more about Programming, visit:

https://brainly.com/question/28338824

#SPJ11


Related Questions

you have mapped a drive letter to a share named hrdocs on a server named hr. after mapping the drive, you need to access a file named hiring.pdf in a subfolder named employment. what is the correct syntax for accessing this file using the drive mapping?

Answers

Answer:

Explanation:

Hope that helps

What network is carrying the masters golf tournament.

Answers

The Master's golf tournament is being carried by CBS and ESPN networks in the United States.

In the United States, the Masters is broadcasted on CBS and ESPN. CBS has been the exclusive broadcaster of the tournament since 1956 and airs the weekend rounds of the event. ESPN, on the other hand, covers the first and second rounds of the tournament.

The Master's golf tournament is one of the most prestigious golf events in the world and is eagerly awaited by golf fans each year. The tournament is held at the Augusta National Golf Club in Augusta.

Internationally, the Masters is broadcasted in various countries by different broadcasters. For example, in the United Kingdom, the tournament is broadcasted on the BBC, while in Canada, it is broadcasted on TSN.

Read more about Golf tournaments at https://brainly.com/question/30803264

#SPJ11

which of the following statements about browser security settings are true

Answers

The options that are true regarding browser security settings are options:

A. You can choose which sites run pop-ups.

C. You can deny cookies and

D. Sites can be allowed or blocked from running scripts

How can you check browser security settings?

To inspect your security settings, pull down the notification bar and press the gear symbol. Scroll down to the security and location section. The screen lock setting may be found under device security.

Option B is incorrect. Web history is not always saved indefinitely and can be erased manually or automatically depending on the browser settings.

Never submit your password or credit card information on sites that display this warning. If you must use the site, contact its owner or administrator and inform them that it is not secure.

Learn more about browser security settings  at:

https://brainly.com/question/25014794

#SPJ1

Full Question:

Which of the following statements about browser security settings are true? Select all that apply. A. You can choose which sites run pop-ups. B. Your accumulated web history is stored forever. C. You can deny cookies. D. Sites can-- be allowed or blocked from running scripts

Ben is determined to win the next race he enters. He imagines himself
crossing the finish line, and that mental picture helps him put in more effort
when he trains. What type of self-awareness is Ben using here?
OA. Well-being
OB. Motivation
OC. Imposter syndrome
OD. Fixed mindset

Answers

Since Ben is determined to win the next race he enters. Ben using  option B. Motivation.

What is the awareness?

Motivation is a psychological state that drives us to take action towards achieving our goals. It involves being aware of our own desires and goals and using that awareness to take action.

Ben is using motivation as a form of self-awareness. By imagining himself crossing the finish line, he is creating a mental picture of success which motivates him to put in more effort while training.

This motivation is a form of self-awareness because it involves being aware of his own goals and desires, and using that awareness to take action towards achieving them. In this case, Ben is using his mental picture of success to motivate himself towards winning the next race he enters.

Learn more about awareness from

https://brainly.com/question/28039248

#SPJ1

Which concept is related to increasing a game's virality? O balanced difficulty online high score tables O limited lives O realistic physics​

Answers

The concept related to increasing a game's virality is online high-score tables. This is because online high-score tables encourage players to compete with one another to achieve the highest score possible.

By seeing the scores of other players, players are motivated to continue playing and improving their scores, which increases the game's engagement and longevity. Online high score tables also have the potential to attract new players to the game, as players may share their scores on social media or other platforms, thereby increasing the game's exposure.

It is important to note that in order for online high score tables to be effective in increasing a game's virality, the difficulty level of the game should be balanced. This means that the game should not be too easy or too difficult, as players are more likely to become frustrated and lose interest in the game.

Overall, online high-score tables are a powerful tool for increasing a game's virality, as they encourage competition, engagement, and social sharing.

You can learn more about tables at: brainly.com/question/10670417

#SPJ11

Using a Web search tool, identify cases in which private information was disclosed when computer equipment was discarded. Recent examples have included smartphones (like BlackBerry) that were sold without proper data cleansing and hard drives that were sold without data cleansing after the computers they were originally used in were upgraded

Answers

There have been several cases where private information was disclosed when computer equipment was discarded. One example is the sale of smartphones like BlackBerry without proper data cleansing, which has resulted in personal and sensitive information being accessible to the new owner.

In another case, hard drives were sold without data cleansing after the computers they were originally used in were upgraded. This led to confidential information such as financial records, medical information, and personal photos being exposed to the new owner. Such incidents highlight the importance of data security and proper data cleansing practices before discarding computer equipment. Companies and individuals must ensure that all data is erased from their devices before disposing of them to prevent the risk of sensitive information falling into the wrong hands.

To learn more about hard drives; https://brainly.com/question/29608399

#SPJ11

A business is having trouble keeping up with the competition. They cannot
respond to their customers like the competition. Which type of system will
likely be able to help them solve this issue?
A. Transaction processing system
B. Management communication system
C. Management information system
D. Decision support system
SUBMIT

Answers

Answer:

B.

Explanation:

Answer:

d is the answer

Explanation:

we know that the business cannot keep on with the competition ( for whatever reason )

Since the cannot respond to them let us figure out what option is:

A transaction processing system is a software system that supports transaction processing.

A management communication system is by which information is passed between the managers and employees within a business, or between the business itself and outsiders.

A management information system is a system that provides managers with the necessary information to make decisions about an organization's operations

A decision support system is a, computer program application used to improve a company's decision-making capabilities

Making a descision support system accurate to the problem

D being the answer

Objects of the Window class require a width (integer) and a height (integer) be specified (in that order) upon definition. Define an object named window, of type Window, corresponding to a 80 x 20 window

Answers

Below is an example of the way to define an object named "window" of type Window that has a width of 80 and a height of 20:

What is the Objects about?

In the given code , we define a class named "Window" with an initializer design that takes two arguments: "breadth" and "height". The initializer assigns these debates to instance variables accompanying the same names.

Then, we need to establish an instance of the Window class and assign it to the changing "window". We appear the values 80 and 20 as debates to the initializer to specify the breadth and height, individually. The resulting "bow" object will have a breadth of 80 and a height of 20.

Learn more about Objects from

https://brainly.com/question/27210407

#SPJ4

1.do you agree with this design? justify your answer. if you disagree with the design, provide an alternate sequence diagram that you consider to be an improvement. 2. is there any need to provide mutual exclusion to the server code? explain. if your answer is yes, explain how you would provide that in your code. 3. use java socket to implement the server/client software. (datagram socket or stream mode socket. but have to support concurrency. complete code submitted in blackboard.)

Answers

In the case that I do disagree with the design, I would need to understand the specific issues and inefficiencies with it in order to provide an alternate sequence diagram. Without that information, it is impossible for me to give you a valid and helpful alternative.


1. Regarding the design, I cannot provide an answer without further information on the specific design in question. Without knowing the details, it would be difficult for me to make an informed decision about whether or not I agree with it. If you could provide more context or specific details about the design, I would be happy to give you my thoughts and justification on whether or not I agree with it.

2. It is possible that mutual exclusion may be necessary for the server code. This is dependent on the specific requirements and characteristics of the code being developed. If multiple clients are accessing the server at the same time, it may be necessary to ensure that they do not interfere with each other.

To provide mutual exclusion in the code, I would suggest implementing a locking mechanism such as semaphores or mutexes. These would allow the server to control access to resources that multiple clients may need to access at the same time. By locking the resource while one client is accessing it, the server can ensure that other clients do not interfere with that client's operation.

3. To implement the server/client software using Java sockets, I would suggest using stream mode sockets. This would allow for reliable communication between the server and clients, as it provides a continuous stream of data. Additionally, it supports concurrency, which is necessary for multiple clients to access the server at the same time.

In terms of code, I would suggest creating a separate thread for each client that connects to the server. This would allow the server to handle multiple clients simultaneously. The server would listen for incoming client connections and create a new thread for each client that connects. This thread would then handle communication between the client and server, using stream mode sockets to transmit data back and forth.

Overall, the implementation of a server/client software using Java sockets would require careful consideration and planning to ensure reliable and efficient communication between clients and the server.

For such more question on implementing

https://brainly.com/question/29439008

#SPJ11

Question :-    Justify your answer. If you disagree with the design, provide an alternate sequence diagram that you consider to be an improvement.

Standard tools such as packagekit and ________ can obtain software packages and updates through a content distribution network provided by red hat.

Answers

Standard tools such as PackageKit and Yum can obtain software packages and updates through a content distribution network provided by Red Hat.

PackageKit and Yum are package management tools used in Red Hat-based Linux distributions. These tools help users install, update, and manage software packages on their systems. Red Hat provides a content distribution network (CDN) that allows these tools to access and retrieve software packages and updates efficiently from their repositories.

PackageKit and Yum are standard tools that work with Red Hat's content distribution network to obtain software packages and updates, making it easy for users to manage their Linux systems.

To know more about Linux systems visit:

https://brainly.com/question/28443923

#SPJ11

the computer which works on the principle of 0 and 1

Answers

Answer:

All of them.

Explanation:

Computers are based on binary (0, 1) and from my knowledge they still are. (I may be wrong)

All computers.
Computers all work on a programming called binary which is completely coded with zero’s and one’s

Which cloud deployment model lets users use multiple cloud models working together seamlessly? 1 point public broad network access private hybrid

Answers

The cloud deployment model that lets users use multiple cloud models working together seamlessly is called the hybrid cloud model.

What is the  hybrid cloud model.

Hybrid cloud deployment models combine the features and advantages of various cloud models - public, private, or community clouds - into an adaptable infrastructure that offers users all their best features at once.

Data and applications can easily be transferred between environments so users can reap maximum advantage from each model.

Read more on  cloud model. herehttps://brainly.com/question/13934016

#SPJ4

What is the main difference between goal seek and variable data tables?.

Answers

The main difference between Goal Seek and variable Data Tables lies in their purpose and approach to problem-solving in Excel.

Goal Seek is a what-if analysis tool that allows users to find the required input value for a specific desired output, by adjusting a single variable. It's particularly useful for determining the required value to reach a predefined target, such as a sales quota or a specific profit margin. Goal Seek operates iteratively, adjusting the input until the desired outcome is achieved.

On the other hand, variable Data Tables are designed to display a range of possible outcomes based on changing one or two variables. Data Tables enable users to analyze the impact of various scenarios by creating a table that shows how the output value changes as the input values are altered. This allows users to observe trends and make informed decisions based on multiple potential scenarios.

In summary, Goal Seek focuses on finding a specific input value to reach a desired output, while variable Data Tables provide a comprehensive view of various outcomes based on the changing input values. Both tools are valuable for decision-making but cater to different problem-solving approaches in Excel.

Learn more about Goal Seek here: https://brainly.com/question/30714959

#SPJ11

Help me to make a slogan. asap!

create your own slogan in defining what media, information and technology

literacy in your own words and plan.


example: "use media to create not to mimic."​

Answers

"Empower Minds, Harness Technology, Shape the Future: Media, Information, and Technology Literacy Unleashed." Media, information, and technology literacy involves the ability to critically understand, evaluate, and utilize various forms of media, information sources, and digital technology.

This slogan emphasizes the importance of empowering our minds by developing the necessary skills to navigate and make sense of the vast amount of information we encounter daily. By harnessing technology, we can effectively filter, analyze, and apply this knowledge to better our lives and society.

The slogan also encourages us to shape the future by promoting responsible media consumption and production. Instead of simply imitating what we see, we can use our media literacy skills to create original, meaningful content that reflects our values and fosters positive change. As we become proficient in using technology and understanding information, we can use these tools to advance our education, careers, and personal growth.

Overall, this slogan highlights the importance of media, information, and technology literacy in today's fast-paced digital world. By cultivating these skills, we can unlock our potential and contribute to a brighter, more informed, and creative future for all.

You can learn more about Media at: brainly.com/question/19587323

#SPJ11

GrIDS uses a hierarchy of directors to analyze data. Each director performs some checks, then creates a higher-level abstraction of the data to pass to the next director in the hierarchy. AAFID distributes the directors over multiple agents. Discuss how the distributed director architecture of AAFID could be combined with the hierarchical structure of the directors of GrIDS. What advantages would there be in distributing the hierarchical directors

Answers

The distributed director architecture of AAFID could be combined with the hierarchical structure of the directors of GrIDS by deploying multiple instances of GrIDS directors across multiple agents. This approach would allow each agent to process a subset of the data, using the hierarchical structure of GrIDS to analyze and abstract the data, and then pass the results to the next agent for further analysis.

The combination of the distributed director architecture of AAFID and the hierarchical structure of GrIDS could offer several advantages. By distributing the workload across multiple agents, the overall processing time for the data could be reduced, as each agent could analyze a subset of the data simultaneously. Additionally, the hierarchical structure of GrIDS could be leveraged to provide a more detailed and accurate analysis of the data, as each director in the hierarchy could perform specialized checks and create higher-level abstractions that build upon the results of previous directors.

Furthermore, distributing the hierarchical directors could enhance the fault tolerance and scalability of the system. If one of the agents or directors fails, the system could continue to operate with the remaining agents and directors, ensuring that the processing of data continues uninterrupted. Additionally, by adding more agents and directors to the system, it would be possible to scale the processing of data to handle larger datasets or increase processing requirements.

To learn more about Distributed Architecture, visit:

https://brainly.com/question/30759041

#SPJ11

In cell C4, enter a formula that will calculate the number of shares that could have been purchased with $5,000 using the Open price of the stock on 10/3/2011. After you enter the formula, the answer in the Microsoft sheet will be a little over 200. If your answer is not close to 200, then you need to redo the formula.

Answers

By using the Open price of a stock in cell B4 in Excel and dividing $5,000 by that value, one can determine the number of shares that could have been bought back on 10/3/2011.

Why is this so?

The formula to be utilized for this purpose is as follows: =5000/B4. For instance, if the stock's Open price was approximately $25, then the outcome from applying this equation would be about 200 shares.

Should your answer not be in proximity to the value of 200, it would be prudent to re-examine the formula and ensure that cell B4 contains the Open price of the stock.

Learn more about MS Excel at:

https://brainly.com/question/20395091

#SPJ1

Maryann is looking for the tolerances of the widget she is producing. what document should she reference

Answers

To find the tolerances of the widget she is producing, Maryann should reference the engineering drawings or specifications for the widget.

Engineering drawings typically include detailed information about the dimensions, materials, and tolerances required for the production of a part or component. These drawings may be created by an engineer or designer using computer-aided design (CAD) software, and they are often used as a blueprint or guide for manufacturing and quality control purposes.

In addition to the engineering drawings, specifications documents may also provide information about the tolerances required for a particular widget. These documents may be created by the manufacturer or customer, and they typically include information about the desired performance, quality, and characteristics of the widget.

When referencing the engineering drawings or specifications for a widget, it is important for Maryann to ensure that she is using the correct version of the document, as any changes or updates may affect the tolerances or other requirements for the part. Additionally, she should make sure that she understands the terminology and units of measurement used in the document, as these may vary depending on the industry or application.

To learn more about Designing, visit:

https://brainly.com/question/20038773

#SPJ11

What smartphone cameras are programmed to autofocus on?.

Answers

Smartphone cameras are programmed to autofocus on subjects within the frame to ensure clear, sharp images.

This is achieved using various methods, such as contrast detection, phase detection, and laser autofocus.

These techniques enable the camera to identify and lock onto areas of high contrast or specific patterns, adjusting the lens accordingly.

Additionally, modern smartphones often utilize artificial intelligence (AI) and machine learning to improve focus accuracy and speed, even recognizing faces and objects for optimal results.

In summary, smartphone cameras use a combination of technologies to automatically focus on subjects, resulting in high-quality, well-defined images.

Learn more about smartphone at

https://brainly.com/question/14774245

#SPJ11


[tex] \underline{ \large{ \sf{ \purple{Question:-}}}}[/tex]
Differentiate between executing the applet with appletviewer and HTML file.
[tex] \\ \\ \\ [/tex]
Thank You ! ​

Answers

Answer:

When you run an applet using the appletviewer tool, it does not need to be embedded within an HTML file; instead, it can be launched directly. HTML file: On the other hand, applets can also be embedded within HTML files. To run the applet, you would open the HTML file in a web browser that has a JVM.

Explanation:

THIS ANS WILL HELP U :D

When it comes to executing an applet, there are two common approaches: using the appletviewer command and embedding the applet in an HTML file. Let's differentiate between these two methods:

1. Appletviewer:

- The appletviewer is a tool provided by Java Development Kit (JDK) specifically designed for running Java applets. - It is a standalone application that allows you to view and test your applets without the need for a web browser. - You execute the appletviewer from the command line by specifying the HTML file that references the applet. - The appletviewer creates a window to display the applet and provides a separate environment for running the applet. - It provides a more isolated and controlled environment for applet execution, making it easier to debug and test applets.

2. HTML File:

- Applets can also be embedded in HTML files and run through web browsers that support Java applets. - In this approach, you write an HTML file that includes the necessary applet tags to specify the applet class and any required parameters. - When the HTML file is loaded in a Java-enabled web browser, it interprets the applet tags and invokes the Java Virtual Machine (JVM) to execute the applet. - The applet runs within the web browser's context and shares resources and functionalities with other web page elements. - The HTML file approach allows you to integrate applets seamlessly into web pages and leverage the full capabilities of HTML and JavaScript along with the applet.

In summary, the key differences between executing an applet with appletviewer and HTML file are:

- The appletviewer is a standalone application for running applets, while the HTML file approach relies on a web browser with Java support.- Appletviewer provides a controlled environment for applet execution, separate from the web browser, facilitating debugging and testing.- The HTML file approach allows applets to be seamlessly integrated into web pages, taking advantage of HTML and JavaScript features.- Appletviewer requires running a command from the command line and specifying the HTML file, whereas HTML files can be loaded directly in a web browser.

[tex]\huge{\mathfrak{\colorbox{black}{\textcolor{lime}{I\:hope\:this\:helps\:!\:\:}}}}[/tex]

♥️ [tex]\large{\textcolor{red}{\underline{\mathcal{SUMIT\:\:ROY\:\:(:\:\:}}}}[/tex]

Finite automaton (fa) accepts all strings without a double b.

Answers

A finite automaton (FA) that accepts all strings without a double "b" can be constructed using a set of states and transitions.

Here's a step-by-step explanation to create such an FA:

1. Define the alphabet: Since we are working with strings containing "a" and "b", our alphabet is Σ = {a, b}.

2. Define the states: We need three states to represent the different situations: q0 (initial state), q1 (seen one "b"), and q2 (seen two consecutive "b"s).

3. Define the initial state: The initial state is q0, where no characters have been processed yet.

4. Define the accepting states: The accepting states are q0 and q1, as they represent strings without a double "b".

5. Define the transitions: Set up the following transitions based on the input character and current state:
  - If the current state is q0 and the input is "a", stay in q0 (q0, a) → q0.
  - If the current state is q0 and the input is "b", move to q1 (q0, b) → q1.
  - If the current state is q1 and the input is "a", move back to q0 (q1, a) → q0.
  - If the current state is q1 and the input is "b", move to q2 (q1, b) → q2.
  - If the current state is q2 and the input is "a" or "b", stay in q2 (q2, a) → q2 and (q2, b) → q2.

6. Process the input string: Start in the initial state (q0) and apply the transitions based on the input characters. If the final state is an accepting state (q0 or q1), the string is accepted. Otherwise, if the final state is q2, the string is rejected.

By following these steps, you can create a finite automaton that accepts all strings without a double "b".

Know more about the finite automaton click here:

https://brainly.com/question/31039700

#SPJ11

ur windows system is a member of a domain. windows update settings are being controlled through group policy. how can you determine whether a specific security update from windows update is installed on the computer? answer run the netsh winhttp import proxy source command. go to programs and features in control panel. check the local security policy. run the wuauclt.exe /list updates command.

Answers

If your Windows system is a member of a domain and the Windows update settings are being controlled through group policy, it can be difficult to determine whether a specific security update from Windows update is installed on the computer. However, there are a few methods that can help you determine whether the update is installed.



One method is to run the netsh win http import proxy source command. This command imports proxy settings from a specified source, which can help to ensure that the system is using the correct proxy settings for Windows updates.

Another method is to go to Programs and Features in Control Panel. From there, you can view the installed updates on your system. If the specific security update is installed, it will appear in the list of installed updates.

You can also check the Local Security Policy on the system. This policy can provide information on the security settings that are applied to the system, including whether a specific security update has been installed.

Finally, you can run the wuauclt.exe /list updates command to list all the updates that are currently installed on the system. If the specific security update is listed, then it has been installed on the system.

In summary, there are several methods that can be used to determine whether a specific security update from Windows update is installed on a system that is a member of a domain and has its Windows update settings controlled through group policy. By using these methods, you can ensure that your system is up to date with the latest security updates and is protected against potential security threats.

For such more question on proxy

https://brainly.com/question/30785039

#SPJ11

18. Which of the following is not an advantage of the negative/positive system? A. Ease of viewing finished pictures B. Ability to rapidly produce multiple prints C. First-generation sharpness and contrast D. Widely available, fast processing​

Answers

The option that is not an advantage of the negative/positive system is B. Ability to rapidly produce multiple prints

What is the system?

The negative/positive system is a photographic process in which a negative image is first produced, and then a positive image is made from that negative. The advantages of this system include ease of viewing finished pictures, first-generation sharpness and contrast, and widely available, fast processing.

However, the ability to rapidly produce multiple prints is not unique to the negative/positive system, as other printing methods such as digital printing can also produce multiple prints quickly.

Read more about system here:

https://brainly.com/question/14688347

#SPJ1

CST 315 Network Security Group Project Due: 04-25-2020 (100 Points) This project is due on Sunday, April 25 at 11:59 p. M. Late submissions will be penalized by 10% per day. If you have a conflict due to travel, etc. , please plan accordingly and turn in your project early. In this project each group is to create a secure organization network. You are to implement a Local Area Network in CPT for the High-Tech Small Business Inc. The network should cover the two departments in the company (Marketing Department and Engineering Department). This project is to ensure that you can do the following: a. Deploy mobile devices securely b. Install and configure identity and access services c. Implement identity and access management controls Task to Perform Use at least 15 network devices including at least 5 IoT devices. Connect all devices and do the following for all devices: 1. Configure Usernames, Passwords (set minimum password length requirement) and Privilege Levels 2. Configure Service Password Encryption, Idle Time-Out, Login Blocking and a Banner 3. Configure Telnet Access and SSH Access 4. Configure a Switchport Port Security Deliverables: I. CPT File II. Screenshots of item 1-4 configurations

Answers

In this project, your goal is to create a secure organization network for High-Tech Small Business Inc., covering the Marketing and Engineering Departments.

Your task is to:

1. Deploy mobile devices securely
2. Install and configure identity and access services
3. Implement identity and access management controls

To accomplish this, you will use at least 15 network devices, including 5 IoT devices. For all devices, you need to configure:

1. Usernames, Passwords (with a minimum password length requirement), and Privilege Levels
2. Service Password Encryption, Idle Time-Out, Login Blocking, and a Banner
3. Telnet Access and SSH Access
4. Switchport Port Security

Your deliverables will include a CPT file and screenshots of the configurations for items 1-4. In 150 words, you will need to explain these configurations and how they contribute to a secure network. Remember to submit your project on time, as late submissions will be penalized by 10% per day.

You can learn more about the network at: brainly.com/question/1167985

#SPJ11

(24 points) a mattress store charges delivery fees based on mattress size and distance. the following table shows the fees for different sizes and distances. for example, the fee for a queen size mattress delivery with a 10km distance is 40. fee twin full size queen king 1-15 20 30 40 50 distance (in km) 16-40 25 35 45 55 41-80 30 40 50 60 a software program takes the size and distance as input, and calculates the fee as output. assume the size is a string and distance is an integer. 1) determine equivalence classes and boundary values for testing the software program. 2) design a set of test cases which will adequately test the software program using the equivalence classes and boundary values under the single fault assumption. variable valid ecs size representing values valid values boundary values na invalid ecs representing invalid values distance (1) twin (2) full (3) queen (u) king (d 1-15 (2) 16-40 (3) ul-80 1+15 16,40 u, 80 na na test case type test case size distance test case results

Answers

The equivalence classes for testing the software program are: valid ecs for size representing valid values (twin, full, queen, king), valid ecs for distance representing valid values (1-15, 16-40, 41-80), invalid ecs representing invalid values (na), and boundary values (1, 15, 16, 40, u, 80).

A set of test cases for the software program would include: a valid test case with a twin size and distance of 1, a valid test case with a queen size and distance of 16, a boundary test case with a full size and distance of 15, an invalid test case with a size of "na" and distance of 25, and a boundary test case with a king size and distance of 80.

These test cases cover all of the equivalence classes and boundary values for testing the software program.

In summary, the equivalence classes and boundary values for testing the software program have been determined, and a set of test cases has been designed to adequately test the program.

For more questions like Software click the link below:

https://brainly.com/question/985406

#SPJ11

For the following queries, determine the minimum cost of the query (in I/Os), if you can have any number of secondary (also known as alternative-2) indexes available. Each index has to be on a single key attribute; composite keys are not allowed. A) select count(*) from employees where name = ‘John Smith’; b) select avg(salary) from employees where name = ‘John Smith’; c) select count(*) from employees where birthdate < ‘1-1-1980 00:00’;

Answers

a) Low cost, typically 1-2 I/Os. b) Variable cost based on index selectivity and matching records. c) Variable cost based on index selectivity and matching records.

Explanation:

To determine the minimum cost of each query with any number of secondary indexes available, we need to consider the access paths that can be used to retrieve the required data.

a) For the query "select count(*) from employees where name = ‘John Smith’", we can create a secondary index on the "name" attribute. With this index, we can perform a single index lookup to retrieve all the records with the name "John Smith" and count the number of records returned. The cost of this query would be equal to the cost of a single index lookup, which is typically around 1-2 I/Os.

b) For the query "select avg(salary) from employees where name = ‘John Smith’", we can create a secondary index on the "name" attribute and another index on the "salary" attribute. With these indexes, we can perform a multi-index lookup to retrieve all the records with the name "John Smith" and compute the average salary. The cost of this query would be equal to the cost of a multi-index lookup, which depends on the selectivity of the indexes and the number of matching records.

c) For the query "select count(*) from employees where birthdate < ‘1-1-1980 00:00’", we can create a secondary index on the "birthdate" attribute. With this index, we can perform a range scan to retrieve all the records with a birthdate before "1-1-1980 00:00" and count the number of records returned. The cost of this query would be equal to the cost of a range scan, which depends on the selectivity of the index and the number of matching records.

In general, the cost of a query with secondary indexes depends on the selectivity of the indexes, the number of matching records, and the complexity of the access path required to retrieve the required data. By carefully choosing the right indexes and optimizing the query execution plan, we can minimize the cost of each query and improve the overall performance of the database system.

Know more about the database system click here:

https://brainly.com/question/26732613

#SPJ11

Explain the history of computing device of mechanical era

Answers

The history of computing devices in the mechanical era began with the invention of the abacus in ancient times, which was used for simple calculations. It was later followed by devices like the slide rule and mechanical calculators in the 17th and 18th centuries, which could perform more complex calculations using gears, levers, and other mechanical components. These early computing devices paved the way for the development of modern computers in the electronic era.

Explanation:

The mechanical era of computing devices refers to the time period between the mid-19th century and early 20th century when mechanical calculators and adding machines were developed.

During the mechanical era, computing devices were based on mechanical principles and were designed to perform specific tasks such as addition, subtraction, multiplication, and division. The first mechanical calculator was developed by French mathematician Blaise Pascal in 1642, but it was not until the mid-19th century that mechanical calculators and adding machines became more widespread and sophisticated.

One of the most significant developments during this era was the invention of the Analytical Engine by Charles Babbage in the mid-1800s. The Analytical Engine was an early form of computer that used punched cards to store information and was capable of performing complex mathematical calculations.

Other notable devices developed during this time included the Comptometer, invented by Dorr E. Felt in 1887, and the Millionaire calculator, developed by Otto Steiger in 1893. These machines were widely used in businesses and government offices, and helped to automate many repetitive tasks.

Overall, the mechanical era of computing devices laid the foundation for the development of more advanced and sophisticated computing technology in the 20th century.

To know more about the Analytical Engine click here:

https://brainly.com/question/31746586

#SPJ11

What does XML do with the data wrapped in the tags? XML is a hardware and software independent tool used to carry information and developed to describe (blank)

Answers

XML is used to describe and structure data by wrapping it in tags, which allows the data to be easily transported and processed by different systems. The tags provide a standardized format for the data, making it more interoperable and flexible.

Explanation:
XML (which stands for Extensible Markup Language) is a markup language that uses tags to define and structure data. These tags act as markers that identify the different parts of the data and provide a standardized way of organizing it. When data is wrapped in XML tags, it becomes self-describing and can be easily understood by different systems and applications.

One of the key benefits of XML is that it is hardware and software independent, meaning that it can be used on any platform or device and with any programming language. This makes it a very versatile tool for exchanging data between different systems, such as web applications, databases, and other software applications.

Overall, XML plays a crucial role in data integration and interoperability by providing a common format for structuring and describing data. By using XML, developers can ensure that their data is easily transportable and can be processed by different systems, which ultimately leads to more efficient and effective data management.

To know more about the XML(Extensible Markup Language) click here:

https://brainly.com/question/30035188

#SPJ11

What database objects can be secured by restricting
access with sql statements?

Answers

SQL statements can be used to restrict access to a variety of database objects, including tables, views, stored procedures, functions, and triggers.

Tables are the primary objects in a database that contain data, and SQL statements can be used to control access to specific tables or subsets of data within a table. For example, a SQL statement can be used to restrict access to sensitive data within a table, such as customer or employee information, by limiting the ability to view or modify that data.

Views are virtual tables that are based on the underlying data in one or more tables and can be used to simplify data access or provide an additional layer of security. SQL statements can be used to restrict access to specific views or limit the data that can be accessed through a view.

Stored procedures and functions are blocks of code that can be executed within the database to perform specific tasks or return data. SQL statements can be used to restrict access to stored procedures and functions or limit the ability to execute them based on specific conditions or parameters.

Triggers are database objects that are automatically executed in response to specific events, such as data changes or updates. SQL statements can be used to restrict access to triggers or control when they are executed.

To learn more about Databases, visit:

https://brainly.com/question/28033296

#SPJ11

Consider the following method, which implements a recursive binary search.



/** Returns an index in arr where the value x appears if x appears



* in arr between arr[left] and arr[right], inclusive;



* otherwise returns -1.



* Precondition: arr is sorted in ascending order.



* left >= 0, right < arr. Length, arr. Length > 0



*/



public static int bSearch(int[] arr, int left, int right, int x)



{



if (right >= left)



{



int mid = (left + right) / 2;



if (arr[mid] == x)



{



return mid;



}



else if (arr[mid] > x)



{



return bSearch(arr, left, mid - 1, x);



}



else



{



return bSearch(arr, mid + 1, right, x);



}



}



return -1;



}



The following code segment appears in a method in the same class as bSearch.



int[] nums = {10, 20, 30, 40, 50};



int result = bSearch(nums, 0, nums. Length - 1, 40);



How many times will the bSearch method be called as a result of executing the code segment, including the initial call?




1



1


A



2



2


B



3



3


C



4



4


D



5



5


E

Answers

The bSearch method will be called a total of 3 times, including the initial call.

Explanation:

The bSearch method is a recursive binary search algorithm that searches for a value x in a sorted array arr between indices left and right, inclusive. If x is found in the array, the method returns the index where x is found; otherwise, it returns -1.

The initial call is bSearch(nums, 0, 4, 40).The first recursive call is bSearch(nums, 0, 1, 40).The second recursive call is bSearch(nums, 2, 1, 40).Since right < left in the second recursive call, the function returns -1 without making another recursive call.

Therefore, the bSearch method is called 3 times in total.

To know more about the bSearch method click here:

https://brainly.com/question/30708443

#SPJ11

the size of the logical memory address is 32 bits, and the size of the physical address is 30 bits. the page is 4 kb. the size of each page table entry is 32 bits. what is the maximum number of bits to store protection and other information in each page table entry?

Answers

In a virtual memory system, the size of the logical memory address is typically larger than the size of the physical memory address. This is because the logical address space is a virtual address space that is mapped onto the physical address space by the operating system using a page table.

In this scenario, the size of the logical memory address is 32 bits and the size of the physical address is 30 bits. This means that there are 2^32 possible logical addresses and 2^30 possible physical addresses.
The page size is given as 4 KB or 2^12 bytes. This means that each page contains 2^12 bytes of data. To map logical addresses to physical addresses, the operating system uses a page table. Each entry in the page table corresponds to a single page of memory and contains information about the page's physical address, protection and other attributes.
The size of each page table entry is given as 32 bits or 4 bytes. This means that each page table entry can store up to 32 bits of information.

To calculate the maximum number of bits to store protection and other information in each page table entry, we need to subtract the number of bits used to store the physical address from the total size of the page table entry. In this case, we have:
Maximum number of bits = Total size of page table entry - Size of physical address
Maximum number of bits = 32 bits - 30 bits
Maximum number of bits = 2 bits
Therefore, the maximum number of bits to store protection and other information in each page table entry is 2 bits. This means that the operating system can use up to 2 bits of each page table entry to store information about the page's protection and other attributes.

For such more question on bytes

https://brainly.com/question/14927057

#SPJ11

Other Questions
Choose two scenes that are similar within the Great Gatsby Film 2013 and the Great Gatsby book and write a paragraph for each on how theyre different. NO plagiarizing!!!Plagiarism will NOT be tolerated! The monthly income of a man is Rs 53000. He deposits 20% of his yearly income in civil investment fund and 10% in charity. If 1 % social security tax should be paid on First Rs 300000and 15% tax is imposed yearly ,how much tax should he pay? Explain why group 8 elements of the periodic table are referred to as group 0 4. What is the equation of the given graph?1A) y=-2x-3B) y = -1/2x +3C) y=1/2x-3D)y=1/2x-3 Ailani draws a map of her local town. she places the town hall at the origin of a coordinate plane and represents a lake with a circle drawn on the map. the center of the lake is 19 miles east and 3 miles south of the town hall, and the radius of the lake is 0. 5 miles. if the positive x-axis represents east and the positive y-axis represents north, which equation represents the lake? (x 19)2 (y 3)2 = 0. 5 (x 19)2 (y 3)2 = 0. 5 (x 19)2 (y 3)2 = 0. 25 (x 19)2 (y 3)2 = 0. 25. 2. what views about what's important do most of the stories and poems in this unit share? how do the selections differ in their views of what's important?(the hobbit) On average, a front desk operator receives 2 calls per 30 seconds. (1)Find the probability that at most 1 call is received in 10 seconds 2. PART B: Which TWO details from the text best supportthe answer to Part A? Think journalisms a tough field today? Try being a reporter in the gilded age different between microeconomics and macroeconomics. Improvements in harvesting systems include all of the following advances EXCEPTtrees are now cut closer to the ground. trees are lifted by machine instead of manually. trees can be transported using much smaller equipment. trees grow at faster rates than they did in previous decades The area of a circle increases at a rate of 2 cm2/s. a. How fast is the radius changing when the radius is 4 cm? b. How fast is the radius changing when the circumference is 3 cm? Cayden wanted to make some curd. He took some warm milk and added a spoonful of old curd into it. He then kept the milk in his fridge. After 8 hours he took it out. Will he succeed in making curd? Justify your answer. Is there anything you would have done differently or would you follow the same procedure? Can you help me with part C? Please Which cardboard box can hold the greatest number of 1 in x 2 in x 4 in sponges ASAP plis i need an answer and explanation The ___, ___ & ___ systems all excrete waste materials from the body.Whick 3 body systems fill in the blanks? A hand-made carton has the following dimensions:length of the base-7 incheswidth of the base-6 inchesheight of the carton-6 incheswhat change should be made to the dimensions to increase thevolume of the carton by 42 cubic inches? a. increase the height of the carton to 7 inches b. increase the height of the carton to 8 inches c. increase the width of the base to 8 inches d. increase the width of the base to 9 inches A glass slides across a bar and slows down due to a kinetic friction of 0.175n. if the glass weighs 0.500n, what is the coefficient of kinetic friction between the glass and the bar? Dickinson's use of short linesin "Heart! We Will Forget Him!" conveys a feeling ofA. urgency.B. contentment.C. satisfaction.D. warmth. In the terms used in the elaboration likelihood model, a person low in the need for cognition is more likely to be persuaded via the _________ route to persuasion.