Answers

Answer 1

Answer:

Explanation:

What is pseudocode?

answer: In computer science, pseudocode is a plain language description of the steps in an algorithm or another system. Pseudocode often uses structural conventions of a normal programming language, but is intended for human reading rather than machine reading.

or

a notation resembling a simplified programming language, used in program

Answer 2

i'm not way to sure but i'm very sure it's B the most possible answers are B and C.


Related Questions

6. create a new query in query design view using the properties and stateabbreviations tables. join the properties and stateabbreviations tables using the state field from

Answers

the properties and stateabbreviations tables using the state field we have to create a database.

What is Database?

A database is a set of data that has been arranged for easy access and management.

To make it simpler to access important information, you can organize data into tables, rows, and columns and index it.

Database administrators build a database such that all users can access the data through a single set of tools.

By storing, retrieving, and managing data, the database's primary function is to manage a significant volume of information.

These days, the World Wide Web has a large number of dynamic websites that use databases to manage their content. As an illustration, consider a hotel room availability checking model. It serves as an illustration of a dynamic website utilizing a database.

Numerous databases, including MySQL, Sybase, Oracle, MongoDB, Informix, PostgreSQL, and SQL Server, are available.

The database management system oversees contemporary databases (DBMS).

A database's data is manipulated using SQL, or Structured Query Language. Relational algebra and tuple relational calculus are prerequisites for SQL.

The representation of a database is displayed on a cylinder.

To create a database we should follow these steps:

1. Click Create

2. Click the Query Design Button

3. Click add in the Show Table box

4. Click Close

5. Drag the ClientName field from the Clients field list to the first column of the query grid.

6. Drag the City field to the second column of the query grid.

7. Drag the State field to the third column.

8. On the top tab, click Run (!)

9. Click SAVE

10. Type ClientLocations in the text box.

11. Click OK.

To learn more about database click here:

https://brainly.com/question/24027204

#SPJ4

katie is giving her team a tour of an offset print shop. she uses this as an opportunity to discuss a number of complex topics about printing and setting up indesign documents to separate and print correctly. as a final lesson to her team, katie shows them a job that has already been preflighted and is now getting ready to be sent to the printer. now it just needs to be .

Answers

Katie says she placed her number in the slug area and used the registration swatch as a fill color. The correct option is D.

Who is a designer?

A designer is a person who designs things and places. They are a very innovative person, and they always use many things which seems to waste into useful things and unique things.

The output portion alludes to the printing itself, hence this printer possesses these two characteristics. Because you cannot touch an operating system, it cannot be an operating system, and because you cannot put anything in a printer, it cannot be a data storage device.

Therefore, the correct option is D. Slug/Registration.

To learn more about designers, refer to the link:

https://brainly.com/question/14035075

#SPJ1

The question is incomplete. Your most probably complete question is given below:

Katie tells her designers that her personal phone number is in the layout so that the printer can call her if there is a problem. Katie says she placed her number in the _____ area and used the _____ swatch as a fill color.

A. Bleed/Four-color tint

B. Pasteboard/Magenta

C. Footer/Black

D. Slug/Registration

r packages include sample datasets. they also include reusable r functions and documentation about how to use the functions. True or False

Answers

r packages include sample datasets. they also include reusable r functions and documentation about how to use the functions.

The above statement is True.

What are R packages?

The statistical programming language R has extensions known as R packages. Users of R can install R packages by accessing a centralized software repository like CRAN, which often contains code, data, and documentation in a common collection format.

The "library" directory is where R packages are kept in the R environment. During installation, R automatically install a number of packages. Later, when additional packages are required for a particular task, they are added.

To learn more about R packages, use the link given
https://brainly.com/question/26125959
#SPJ4

A model for a computer that splits the processing between clients and servers on a network, assigning functions to the machine most able to perform the function is called __________.

Answers

A model for a computer that splits the processing between clients and servers on a network, assigning functions to the machine most able to perform the function is called client/server computing.

What is Server?

A server in computing is a piece of hardware or software that offers functionality to other applications or gadgets, also referred to as "clients." The client-server model is the name of this architecture.

What is Computer?

A computer is a digital electrical device that may be configured to automatically perform a series of logical or mathematical operations. Programs are generic sets of operations that can be carried out by modern computers. These programs give computers the ability to carry out a variety of tasks.

Client: The term "client" refers to a person or an organization that uses a specific service. The same is true in the digital world, where a client is a computer (host) that can request information from service providers or use a certain service (Servers).

Similar to that, the term "servers" refers to a person or medium that provides a service. In the same way, a server in the digital world is a remote computer that offers information (data) or access to specific services.

In essence, the Client requests something, and the Server fulfills it if it is in the database.

Learn more about client-server computing click here:

https://brainly.com/question/24137718

#SPJ4

What do HTML documents consist of? Three things

Answers

Answer:

Explanation:

An HTML 4 document is composed of three parts: a line containing HTML version information, a declarative header section (delimited by the HEAD element), a body, which contains the document's actual content

Eric is working on its website which sells products from his farm. He is thinking of different ways to improve his website so that it appears on more search engine results and gets more traffic. Which of these ideas will help improve his search visibility?.

Answers

He should open a page with his business advertising it

as you browse the internet, you notice that when you go to some sites, multiple additional windows are opened automatically. many of these windows contain advertisements for products that are inappropriate for your family to view. which tool can you implement to prevent these windows from showing?

Answers

AS you browse the internet, you notice that when you go to some sites, the tool that can you implement to prevent these windows from showing is called Pop-up blocker.

What does a pop Blocker do?

Any program that occasionally forbids a pop-up is referred to as a pop-up blocker. This could take the form of several online windows or real pop-ups brought on by coding on a website. Pop-up blockers are typically installed to prevent pop-up advertisements from websites.

Any program that occasionally forbids a pop-up is referred to as a pop-up blocker. This could take the form of several online windows or real pop-ups brought on by coding on a website. Pop-up blockers are typically installed to prevent pop-up advertisements from websites.

Therefore, Most people would prefer not to see pop-ups because they are typically ads and may contain malware. In order to prevent seeing these pop-ups, you should typically keep your browser's pop-up blocker turned on.

Learn more about Pop-up blocker from

https://brainly.com/question/14855239
#SPJ1

backlinks that are considered pure endorsements that will improve a webpage's ranking on any search engine is a(n) link.

Answers

Backlinks that are considered pure endorsements that will improve a webpage's ranking on any search engine is an editorial links. The correct option is a.

What is backlinks?

An anchor text link from one website to another is referred to as a backlink. Any article you come across with a link to another source or website is an example of a backlink.

Examples of website backlinks can be found all over the internet, particularly on well-known blog sites that link to pertinent content. A webpage is a page that is online, created with codes in a computer.

Therefore, the correct option is a. editorial.

To learn more about backlinks, refer to the link:

https://brainly.com/question/28390891

#SPJ1

The question is incomplete. Your most probably complete question is given below:

a. editorial

b. manual

c. neighborhood

d. manufactured

The style of text used in word document is called
A. font
B. font size
C. font style
D. font size and style​

Answers

Answer:

OPTION C) FONT STYLE

Explanation:

IS THE CORRECT OPTION

Answer:

option c )) font style

Explanation:

hope it helps you

Now test yourself
1 The price of desktop computers is expected to rise. Draw two demand and supply diagrams to show
two ways in which this could occur and the resulting effects on price and quantity.

Answers

a. When the equilibrium quantity falls(uploaded in picture ):

b. The equilibrium price falls in each diagram(uploaded in picture b).

What is Equilibrium?

A situation where opposing forces or actions are evenly distributed and neither is stronger than the other. Both the supply and the demand were equal.

When the size of the decrease in demand is greater than the increase in supply, the quantity decreases.

According to the Graph (a), the leftward shift in the demand curve—caused by a greater demand for new chips—is greater than the forward shift in the supply curve. As a result, the amount decreases.

When the size of the demand decline is smaller than the supply growth, the quantity increases.According to the Graph (b), there is a greater forward shift in the supply curve than a greater backward shift in the demand curve, which causes the equilibrium quantity to increase.

Given that there is a rise in supply and a decline in demand, the price will decrease in both scenarios. The degree of change in supply and demand determines the change in quantity.

Learn more about Demand and Supply click here:

https://brainly.com/question/4804206

#SPJ1

One of the big components of UI design concerns where items are positioned on the screen. What is the term for this positioning?

A.
menu

B.
scale

C.
strategy

D.
layout

Answers

One of the big components of UI design concerns where items are positioned on the screen. The term for this positioning is "layout" (Option D)

What is UI Design?

User interface design, also known as user interface engineering, is the process of creating user interfaces for equipment and software such as laptops, household appliances, mobile devices, and other electronic devices with the goal of increasing usability and user experience.

Responsibilities of a UI/UX Designer include:

In coordination with product managers and engineers, gather and evaluate user needs. Using storyboards, process flows, and sitemaps to illustrate design concepts. Creating visual user interface components like menus, tabs, and widgets.

Learn more about UI Design:

https://brainly.com/question/15420719
#SPJ1

which best describes what is output? assume v is a large array of ints.
int i;
int s
S = V[0];
for (i = 0; i < N_SIZE: ++i) {
if (s >[0) {
S = V[i];
}
}
System.out.println(s);
a. a first value in v
b.max value in v
c. min value in v

Answers

Assuming v is a large array of ints. the output would be
c. min value in v

What are the uses of an array?

A linear data structure called an array is a grouping of related data types. An array is kept in areas of memory that are close together. It has a fixed size and is a static data structure. Similar data kinds are combined.

Here are a few uses for arrays.

Stacks, queues, and other data structures are implemented using array.Matrix computations and other mathematical implementations employ array.Computer lookup tables employ arrays.The CPU can be scheduled using arrays.

To learn more about an array, use the link given
https://brainly.com/question/28565733
#SPJ1

the component that usually appears in a group to allow the user to select one of several options and can be either selected or deselected is

Answers

A checkbox is typically used in a group of options to allow the user to select one or more of those options. The checkbox can be selected or deselected, and usually appears as a small square box.

What is a checkbox?

A checkbox is a type of input element that can be either selected or deselected. Checkboxes are typically used in groups of options, where the user can select one or more of those options. The checkbox appears as a small square box, and is usually accompanied by a label describing the option that it represents. When the checkbox is selected, a checkmark is displayed inside the box, indicating that the option is selected. Checkboxes can be used to allow the user to select multiple options, or to select a single option from a group of options.

Learn more about Questions: https://brainly.com/question/25257437

#SPJ4

although the internet offers a tremendous array of sources for our research, two problems of conducting inter-based research are that 1) there is so much to sift through and 2) there is unreliable, biased, and untrue information.

Answers

Possible solutions to the problems of conducting Internet-based research are that:

1) To sift through the vastness of the internet, it is important to be as specific as possible in your search terms. The more specific and accurate your search terms are, the more likely you are to find relevant information.2) When evaluating internet sources, it is important to consider the credibility of the source. Is the author an expert on the subject? Is the website reputable? Are there any bias?

The Internet-based research:

There are many benefits to conducting research on the internet. The internet provides a vast array of sources that can be accessed quickly and easily. Additionally, the internet allows for research to be conducted from anywhere in the world.

However, there are two main problems with conducting internet-based research. First, there is so much information available that it can be difficult to sift through and find relevant information. Second, there is no guarantee that the information available on the internet is accurate or reliable. It is important to carefully evaluate internet sources before using them for research.

Learn more about Internet:

https://brainly.com/question/25817628

#SPJ4

Suppose we’ve written a function drawcircle that we want to call every time the mouse is clicked. How can we do this?.

Answers

The way to to call every time the mouse is clicked use mouseClickMethod(drawCircle);

What is function click method?

Definition and Use. The Click event is fired when an item is clicked. The click() method either dispatches a click event or attaches a function to be executed when a click event occurs. click() is a convenience mouse event listener that allows you to pass in an arbitrary function or callback to be executed when a click is detected. Please take the time to review the general events. Mouse and keyboard events are the most common, but you'll find that there are other common categories as well.

Learn more about function of programming: https://brainly.com/question/23275071

#SPJ4

we can more easily debug a program when the responsibilities are well encapsulated.
a. true
b. false

Answers

It is TRUE to state that we can more easily debug a program when the responsibilities are well encapsulated.

What does it mean to encapsulate responsibilities?

One of the cornerstones of OOP is encapsulation (object-oriented programming). It refers to the combination of data and procedures that operate on that data.

Encapsulation is a technique for hiding the values or state of a structured data object within a class, preventing unauthorized parties from accessing them directly.

To access the values, publically available methods (called getters and setters) are often given in the class, and other client classes call these functions to get and alter the values within the object.

Learn more about debugging:
https://brainly.com/question/13966274
#SPJ1

you are the administrator for a printing company. after you configure the password must meet complexity requirements policy, several users have problems when changing their passwords. which of the following passwords meet the minimum complexity requirements?

Answers

The passwords that meet the minimum complexity requirements criteria will be Abcde! and 1247445Np.

Since the password Abcde! it is at least six characters long as well as it contains a capital letter, a lowercase letter, as well as a symbol, this password is Abcde! satisfies the complexity criteria. Because it is at least six characters long and contains a capital letter, a lowercase letter, and numerals, the password 1247445Np satisfies the complexity criteria. Highly secure should have three of the four character types—uppercase characters, lowercase letters, digits, and symbols with also the inclusion of at least six characters in length.

Your question is incomplete, most probably the full question was:

You are the administrator of a printing company. After you configure the Password Must Meet Complexity Requirements policy, several users have problems when changing their passwords. Which of the following passwords meets the minimum complexity requirements? (Choose all that apply.)

aBc-1

Abcde!

1247445Np

Learn more about password complexity requirements here: https://brainly.com/question/29354399

#SPJ4

You can configure your wireless router to protect your devices in all of the following ways EXCEPT ____.
a. creating a strong password to access the router
b. turning off remote management to the device
c. naming your router something you’ll remember, like your street address
d. utilizing guest access when needed and turning it off when guests leave

Answers

Answer:

Explanation:a

You can configure your wireless router to protect your devices in all of the following ways EXCEPT creating a strong password to access the router. Thus, option A is correct.

 

What is a router?

One or more bandwidth circuits or subdomains can be connected using a router. By sending datagrams to their correct IP addresses, it manages traffic across various domains and permits several devices to have a Broadband connection.

The router can not be secured with a strong password that is to be made by the people. All of the methods listed below, WITH THE EXCEPTION of setting a secure login and password to the router, can be used to set up your new network to safeguard your devices. This was termed as one of the disadvantages of the router.

Therefore, option A is the correct option.

Learn more about router, here:

https://brainly.com/question/15851772

#SPJ2

Detail one way that employees may be abusing company computers, networks, or email.

Answers

One way that employees may be abusing company computers, networks, or email is when they use company wifi to be downloading movies or sending person emails.

What is online misconduct by employees?

Organizations struggle with workplace internet abuse. According to statistics, employers suffer significant productivity losses when employees use the Internet extensively for personal purposes while at work, and they also run a higher chance of being held legally liable.

Note that the term "computer abuse" describes a broad range of behaviors in which a computer is inappropriately or unlawfully utilized to hurt another person or their property. Computer abuse includes stealing identities, hacking, cyberbullying, and even using a work computer for personal purposes.

Learn more about company computers from

https://brainly.com/question/24540334


#SPJ1

which of the following groups hold all the computers that have not been assigned to a wsus custom group?

Answers

Unassigned Computers. One of two techniques, client-side targeting or server-side targeting, can be used to assign computers to computer groups.

How can I add a device to WSUS?To start, select Computers from the WSUS Administration Console. Select the computer group you want to add to the wsus group by clicking it. The computer or computers that you want to add to the wsus group can be found in the list of computers. Change Membership by selecting it with your right mouse button.One of two techniques, client-side targeting or server-side targeting, can be used to assign computers to computer groups.System administrators utilize WSUS, a straightforward program installed on Microsoft Windows Server, to manage Microsoft Windows updates. Windows Server 2008 R2, 2012, 2012 R2, 2016, 2019, and Server 2022 all support it. Windows 8.1, 10 and 11 are only a few of the Microsoft client OSes that are compatible with WSUS.  

To learn more about WSUS refer to:

https://brainly.com/question/28238579

#SPJ4

Heinrich Koch is a second-year college student. Last semester his best friend had his laptop stolen. The laptop was an old computer that he planned to replace soon, but the greatest loss was his data: he had not performed a backup and all his data was lost. Heinrich himself does not perform data backups but knows that he needs to do that on a regular basis. He has decided to use an online backup service that will automatically back up his data whenever it changes. Evaluate and compare reviews of online backup services. Consider iDrive, Carbonite, Acronis True Image, and BackBlaze, and others you might find in your research. What the best service for him?

Answers

Given that Heinrich is a college student, he should consider iDrive for his cloud storage requirement/needs. This is because iDrive offers the cheapest plan per 100 gigabytes per annum. iDrive is also reputed to be one of the best cloud backup services. Hence there is a balance of costs and benefits.

What is an online backup service?

A remote, online, or managed backup service, often known as cloud backup or backup-as-a-service, is a service that offers consumers a method for backing up, storing, and recovering computer information. Companies that provide this sort of service to end consumers are known as online backup providers.

It should be noted that cloud backup is a service that backs up and stores data and apps on a business's servers on a distant server. Businesses use cloud backup to preserve files and data accessible in the case of a system failure, outage, or natural catastrophe.

Learn more about backup services;
https://brainly.com/question/28269783
#SPJ1

The frequency at which a CPU operates, which determines how many instructions it can execute per second.​ What is it?

Answers

The number of cycles per second that a CPU can process is represented by its clock speed.

What does the frequency of a CPU determine?The speed and efficiency with which applications load and function greatly depend on the performance of your CPU, the "brain" of your computer. The performance of a CPU may be measured in a number different ways, though. The importance of clock speed, often known as "clock rate" or "frequency," cannot be overstated.If you're unsure how to verify your clock speed, just select "System Information" from the Start menu (or the Windows* key) and click. Under "Processor," information about your CPU's model and clock rate will be shown.In general, a faster CPU has a higher clock speed. However, there are a lot of other variables at play.Every second, your CPU executes several instructions (low-level operations like arithmetic) from various programs. Your CPU's clock speed, expressed in GHz, tracks how many cycles it completes per second (gigahertz).

Learn more about Clock speed refer to :

https://brainly.com/question/28902482

#SPJ9

what would you enter at the command prompt to change the group ownership for the devstyle.txt file to rand in the present working directory?

Answers

Note that what you should enter at the command prompt to change the group ownership for the devstyle.txt file to rand in the present working directory is: chgrp rand devstyle.txt

What is Command Prompt?

Command Prompt, often known as cmddotexe or cmd, is the operating system's primary command-line interpreter for OS/2, eComStation, ArcaOS, Microsoft Windows, and ReactOS. It is known as the Command Processor Shell in Windows CE.NET 4.2, Windows CE 5.0, and Windows Embedded CE 6.0.

To launch Command Prompt in Windows, type cmd.

Search for "Command Prompt" under the Start menu. You may alternatively open the command prompt by hitting Ctrl + r on your keyboard, typing "cmd," and then clicking OK.

Learn more about the directory:
https://brainly.com/question/17407323
#SPJ1

design a program using flowgorithm or any flowcharting software that asks the user to enter a store's sales for each day of the week. the amounts should be stored in an array. use a loop to calculate the total sales for the week and display the result.

Answers

Flowcharts are diagrams that describe workflows, steps, or certain processes using symbols and arrows.

Flowchart Explanation

Flowgorithm is a software that can be used to learn computer programming logic. Easy and free use makes this application widely used to study computer algorithms. The following are some tutorials on using flowgorithm that can help you understand computer programming logic.

Learn more about Flowcharts:

brainly.com/question/24735155

#SPJ4

when creating a work breakdown structure (wbs), a project manager should focus on_______ rather than actions. astakeholder needs b. timelines c. deliverables d. teammate strength

Answers

when creating a work breakdown structure (wbs), a project manager should focus on deliveries rather than actions

Notably, work breakdown structure places more emphasis on deliverables than on the tasks necessary to meet those milestones. All deliverables are broken down into smaller units by the work breakdown structure until they are small enough for one person to handle. In accordance with the third edition of the PMBOK Guide, a work breakdown structure (WBS) is "a deliverable-oriented hierarchical decomposition of the work to be completed by the project team to accomplish the project objectives and provide the requisite deliverables. It organizes and specifies the project's overall scope. By breaking it down into smaller pieces, work can be completed concurrently by various team members, improving team productivity and simplifying project administration.

Learn more about project here-

https://brainly.com/question/7953972

#SPJ4

a video-streaming web site keeps count of the number of times each video has been played since it was first added to the site. the count is updated each time a video is played and is displayed next to each video to show its popularity. at one time, the count for the most popular video was about two million. sometime later, the same video displayed a seven-digit negative number as its count, while the counts for the other videos displayed correctly. which of the following is the most likely explanation for the error? responses the count for the video became larger than the maximum value allowed by the data type used to store the count. the count for the video became larger than the maximum value allowed by the data type used to store the count. the mathematical operations used to calculate the count caused a rounding error to occur. the mathematical operations used to calculate the count caused a rounding error to occur. the software used to update the count failed when too many videos were played simultaneously by too many users. the software used to update the count failed when too many videos were played simultaneously by too many users. the software used to update the count contained a sampling error when using digital data to approximate the ana

Answers

The statement which is most likely the reason for the given error is

The software used to update the count contained a sampling error when using digital data to approximate the analog count.

What is a software error?

Any kind of difference or discrepancy between the output of a software product's actual usage and its desired or expected output is referred to as a software error in the field of software engineering. A software error is one that permits program execution to finish and provides outputs that may be inaccurate but are difficult to identify as such. Typically, a developer introduces these error unknowingly and unfavorably into the software product.

A computer program or system that produces an inaccurate or unexpected output, behaves in an unexpected manner, or has another error, flaw, failure, or fault is said to have a software bug.

To learn more about software error, use the link given
https://brainly.com/question/24254789
#SPJ1

program specifications write a program to play an automated game of rock, paper, scissors. two players make one of three hand signals at the same time. hand signals represent a rock, a piece of paper, or a pair of scissors. each combination results in a win for one of the players. rock crushes scissors, paper covers rock, and scissors cut paper. a tie occurs if both players make the same signal. use a random number generator of 0, 1, or 2 to represent the three signals. note: this program is designed for incremental development. complete each step and submit for grading before starting the next step. only a portion of tests pass after each step but confirm progress. step 0. read starter template and do not change the provided code. integer constants are defined for rock, paper, and scissors. a random object is created and a seed is read from input and passed to the random object. this supports automated testing and creates predictable results that would otherwise be random. step 1 (2 pts). read two player names from input (string). read number of rounds from input. continue reading number of rounds if value is below one and provide an error message. output player names and number of rounds. submit for grading to confirm 2 tests pass. ex: if input is:

Answers

python RockPaperScissor.py

82

Anna

Bert

3

Anna vs Bert for 3 rounds

Bert wins with paper!

What does Python Programming means?

Python is a popular computer programming language used to create software and websites, automate processes, and analyze data. Python is a general-purpose language, which means it may be used to make many various types of applications and isn't tailored for any particular issues.

Code for the given problem:

import random

user_action = input("Enter a choice (rock, paper, scissors): ")

possible_actions = ["rock", "paper", "scissors"]

computer_action = random.choice(possible_actions)

print(f"\nYou chose {user_action}, computer chose {computer_action}.\n")

if user_action == computer_action:

   print(f"Both players selected {user_action}. It's a tie!")

elif user_action == "rock":

   if computer_action == "scissors":

       print("Rock smashes scissors! You win!")

   else:

       print("Paper covers rock! You lose.")

elif user_action == "paper":

   if computer_action == "rock":

       print("Paper covers rock! You win!")

   else:

       print("Scissors cuts paper! You lose.")

elif user_action == "scissors":

   if computer_action == "paper":

       print("Scissors cuts paper! You win!")

   else:

       print("Rock smashes scissors! You lose.")

Output:

Enter a choice (rock, paper, scissors): paper

You chose paper, computer chose rock.

Paper covers rock! You win!

Learn more about Python Programming click here:

https://brainly.com/question/28248633

#SPJ4

which of the following malware does not harm the system but only targets the data? ransomware worm logic bomb trojan

Answers

Of the following malware that only acts as data damage without compromising the system is the trojan

What is a computer trojan?

A type of malware that disguises itself to hide its true intentions, whose purpose is to cause a disaster, Trojans can read passwords, log keystrokes, or open access doors for more malware to enter. The only difference that Trojans have with computer viruses is that they do not have the ability to multiply, these actions include:

Data deletionData lockData modificationData copyDisruption of performance of computers or computer networks

To know more about computer viruses here https://brainly.com/question/26128220

#SPJ4

a barcode is valid if the digits satisfy a certain constraint. for example, take the 13-digit barcode 1877455846014 and split the first 12 digits into two groups: (1,7,4,5,4,0) and (8,7,5,8,6,1). the first group contains every other digit starting with the first, and the second group contains every other digit starting with the second. take the sum of the digits in the second group, and multiply it by 3. add to that the sum of the digits in the first group. subtract the last digit of that number from 10, and it should match the last digit of the barcode.

Answers

Using knowledge of computational language in python to write a code that valid if the digits satisfy a certain constraint.

Writting the code:

   first_group = 0

   # set sum of second group to 0

   second_group = 0

   # loop the string and find the sum of first group

   for i in range(0, len(str1)-1, 2):

       first_group = first_group + int(str1[i])

   # loop the string and find the sum of second group

   for i in range(1, len(str1)-1, 2):

       second_group = second_group + int(str1[i])

   # multiply second group by 3

   second_group = second_group * 3

   # add first group and second group

   new_num = first_group + second_group

   # get the last digit and subtract from 10

   last_digit = 10 - (new_num % 10)

   # if it is equal to last digit of input barcode, then it is valid otherwise it is invalid.

   if (last_digit == int(str1[-1])):

       return True

   else:

       return False

if __name__ == '__main__':

   # take file name as input

   filename = input("Enter the name of the file: ")

   # set an empty list to store valid barcode list

   valid_barcode_list = []

   # open the file

   with open(filename) as data:

       # read all barcodes and store in a list

       all_barcode = data.readlines()

       # loop through all barcode of the list

       for code in all_barcode:

           # remove any extra characters

           code = code.strip()

 

See more about python at brainly.com/question/18502436

#SPJ1

write a class named employee that holds the following data about an employee in attrib-utes: name, id number, department, and job title. once you have written the class, write a program that creates three employee objects to hold the following data

Answers

Writing the class called employees:

name: susan meyerid number: 47899department: accountingjob title: vice president

name: mark jonesid number: 39119department: itjob title: programmer

name: joy Rogersid number: 81774department: manufacturingjob title: engineer

class Employee:

   def __init__(self, name, id_number, department, job_title):

       self. name = name

       self. id_number = id_number

       self. department = department

       self. job_title = job_title

susan = Employee("Susan Meyer", 47899, "Accounting", "Vice President")

mark = Employee("Mark Jones", 39119, "IT", "Programmer")

joy = Employee("Joy Rogers", 81774, "Manufacturing", "Engineer")

Code Explanation:

class Employee:

defines the Employee class

def __init__(self, name, id_number, department, job_title):

is the constructor for the Employee class. It takes four parameters: name, id_number, department, and job_title.

self. name = name

self. id_number = id_number

self. department = department

self. job_title = job_title

susan = Employee("Susan Meyer", 47899, "Accounting", "Vice President")

creates an Employee object named susan and initializes the object with the name "Susan Meyer", id number 47899, department "Accounting", and job title "Vice President"

mark = Employee("Mark Jones", 39119, "IT", "Programmer")

creates an Employee object named mark and initializes the object with the name "Mark Jones", id number 39119, department "IT", and job title "Programmer"

joy = Employee("Joy Rogers", 81774, "Manufacturing", "Engineer")

creates an Employee object named joy and initializes the object with the name "Joy Rogers", id number 81774, department "Manufacturing", and job title "Engineer"

Learn more about programming :

https://brainly.com/question/16397886

#SPJ4

Other Questions
consider functions f and g defined by the graph and table genetically modified foods: according to a 2016 pew research survey, a majority of the american general public (56%) says that genetically modified (gm) foods are generally unsafe to eat. this month, in a survey of 500 randomly selected american adults, 60% says that gm foods are generally unsafe to eat. we test the hypothesis that the percentage who says that gm foods are generally unsafe to eat is greater than 56% this year. the p -value is 0.084. which of the following interpretations of this p -value is valid? 4. A 55 kg sled is sliding down a hill. At the 7 m mark, it has a velocity of 1.8 m/s. What isthe mechanical energy of the system? the classification of student class designation (freshman, sophomore, junior, senior) is an example of... The dimensions of a rectangular gardenwere 5 m by 12 m. Each dimensionwas increased by the same amount.The garden then had an area of 120 m.Find the dimensions of the new garden. for each speaker they interact with, multilingual children have to learn which language to use and whether they can freely use both languages in the same conversation. this is part of: r-3s + t=43r-6s+9t=54r-9s +10t=9Find solution using substitution/ elimination do most answers revive on average less than 50 inches of rain less than 10 inches of rain or less 1 inch of rain each year what is the hard problem of consciousness and why does chalmers think it is particularly difficult to solve? in your opinion, should cognitive scientists be trying to solve the problem? why or why not? theory, the basis for management by objectives developed by peter drucker in the 1960s, proposes that setting ambitious, but attainable goals can motivate workers and improve performance. a boy ate three fifthof an icicle. he gave away one thirdof it. how much icicle was eaten write the equation of the line, in standard form, that passes through the point (4, -8) and is parallel to x - 4y=8 Brian pays 465. 98 a year on his car insurance. The insurance company reduces the price by 3. 6%. How much does the insurance cost now? give your answer rounded to 2 dp. -7+2i/3-6i Its operations with complex numbers is how to solve it. The answer is not -11-4/15 ok I need another answer How do you do it do the math m should abused girls who engage in status offenses fall under juvenile court jurisdiction, or would they better be handled within other treatment dispensing agencies? fully explain. 20 POINTSSSSSSSSSSSSSSSSSSSSS + BRAINLY IF RIGHT which term best describes the rhetorical device shown? Since were planning to cut teachers' pay let's just go ahead and stop paying for roads and bridges while we're at it A. irony B. rhetorical question C. figurative language D. direct address Suppose x has a distribution with = 64 and = 8. Which of the following is true ?a.None of theseb.Phosphorus has 3 electrons in its outermost shellc.Arsenic has 4 electrons in its outermost shelld.Boron has 5 electrons in its outermost shelle.Silicon has 5 electrons in its outermost shell the management of translation exposure is best described as multiple choice selecting a mechanical means for handling the consolidation process for mncs that treats inventory valuation as fifo on the income statement and lifo on the balance sheet. selecting a mechanical means for handling the consolidation process for mncs that logically deals with exchange rate changes. selecting a mechanical means for handling the consolidation process for mncs that makes this quarter's accounting numbers as attractive as possible. selecting a mechanical means for handling the consolidation process for mncs that treats inventory valuation as lifo on the income statement and fifo on the balance sheet.