what type of error occurs when a programmer uses an incorrect calculation or leaves out a programming procedure?

Answers

Answer 1

When a programmer does an inaccurate calculation or omits a step in the programming process, a logic error occurs.

Explain about the logic error?

A flaw in the reasoning or framework of the problem results in a logic error. A programme often doesn't crash due to a logic fault. Yet a program's output could be unexpected due to a logical mistake.

When the instructions provided by the software do not achieve the desired result, the error is logical. When the person meant to request a cup of tea, saying "Get me a cup of coffee." is illogical. This error may appear in a variety of ways in computer applications.

Arguments that have flaws, are misleading, or are untrue are known as logical fallacies and can be refuted through logic.

To learn more about logic error refer to:

https://brainly.com/question/24658702

#SPJ4


Related Questions

Which unique feature of​ e-commerce is related to the ability to interact with web technology​ everywhere?.

Answers

Ubiquity is the unique feature of​ e-commerce is related to the ability to interact with web technology​ everywhere.

What is Ubiquity in E-commerce?

Why has e-commerce grown so quickly? The answer lies in the internet's and web technology's distinct features. Simply put, the internet and e-commerce technologies outperform previous technological revolutions such as television and radio. When compared to physical retail stores, services, and entertainment, e-commerce is also the fastest growing form of commerce.

The internet and web as a commercial medium have eight distinct characteristics that contribute to the rapid growth of e-commerce: ubiquity, global reach, universal standards, richness, interactivity, information density, personalization/customization, and social technology.

To know more about internet, visit: https://brainly.com/question/2780939

#SPJ4

Write a program that finds word differences between two sentences. The input begins with the first sentence and the following input line is the second sentence. Assume that the two sentences have the same number of words. The program displays word pairs that differ between the two sentences. One pair is displayed per line. Ex: if the input is: smaller cars get better gas mileage tiny cars get great fuel economy then the output is: smaller tiny better great gas fuel mileage economy hint: store each input line into a list of strings.

Answers

Below is the code of a program that that finds word differences between two sentences by using Python programming language.

Coding Part:

class Solution(object):  

   def findTheDifference(self, s, t):  

       ls_si = [si[i] for i in range(len(si))]  

       ls_ti = [ti[i] for i in range(len(ti))]  

       for elem in ls_s:  

           ls_t.remove(elem)  

       return(ls_t[0])  

obj = Solution()  

s = "zxyc"  

t = "zxyce"  

print(obj.findTheDifference(s, t)

What is Python Programming?

Python is a well-known all-purpose programming language. It's used in machine learning, web development, desktop applications, and a variety of other applications. Python, fortunately, has a simple, easy-to-use syntax for beginners. Python is therefore an excellent language for beginners to learn.

To know more about Python Programming, visit: https://brainly.com/question/26497128

#SPJ4

Hispaniola is an island in the West Indies Caribbean Sea that contains two separate countries name these two c

Answers

The two countries on Hispaniola island are Haiti and the Dominican Republic make up Hispaniola. This is the second-largest in land area in the Caribbean Sea.

What is Hispaniola island?

There are numerous islands in the Caribbean, sometimes referred to as the West Indies. the Caribbean islands mentioned There are three primary island groupings scattered across a sea that covers an area of 91,000 square miles between Venezuela and Florida:

The Bahamas, the Lesser and Greater Antilles. Following the island of Cuba in terms of area, Hispaniola is the most populated island in the West Indies.

Therefore, the two countries are Haiti and the Dominican Republic.

To learn more about Hispaniola island, refer to the link:

https://brainly.com/question/8159442

#SPJ1

a. what is a device register? b. what is a device data register? c. what is a device status register?

Answers

Device registration can be described as a device that permits a user to flag the computer, PDA, mobile phone, or other devices.A device data register is commonly a storage space for aparts of memory that are used to deliver data for immediate use by the CPU (Central Processing Unit) for data processing.A device status register refers to a hardware register that include information about the state of the processor.

Register is a kind of computer memory that is used for rapidly accepting, storing, and transfering data and instructions that are being used immediately by the CPU. There are three kinds of register, namely:

MDR (Memory data registers). IR (index registers).MBR (Memory buffer registers).

Learn more about register, here https://brainly.com/question/25760471

#SPJ4

pille runs a small business. she wants to create and send invoices to her customers. which productivity software should pille use?

Answers

To prepare and send invoices to her clients, Pille should utilise accounting software like QuickBooks, FreshBooks, Xero, or Zoho Books.

Describe software.

Software is a collection of instructions, data, or computer programmes that are employed to run machines and carry out particular activities. It is hardware, which refers to a computer's external components. A device's running programmes, scripting, and algorithms are collectively referred to as "software" in this context. It can be compared to a variable component of a computer, whereas the invariable component is the hardware. Application software system software are the mainly two categories of software. Implementations are pieces of software that perform tasks or meet certain needs.

To know more about software
https://brainly.com/question/21687169
#SPJ4

Navigate to the following Snhu resources and summarize specifically how each will or may assist you in achieving your personal mission statement and short-term goals. a. Snhu academic support- written feedback section b. Shapiro library c. Snhu career
d. One additional Snhu resource of your choosing

Answers

The summary of  how each will or may assist you in achieving your personal mission statement and short-term goals, the right option is given below.

What is the summary of Snhu resources?

a. SNHU Academic Support - Written Feedback Section: This resource may assist you in achieving your personal mission statement and short-term goals by providing you with feedback on your written work. This feedback can help you identify areas for improvement in your writing, which can help you develop your skills and achieve your goals.

b. Shapiro Library: The Shapiro Library can assist you in achieving your personal mission statement and short-term goals by providing access to a wide range of resources, including books, articles, and online databases. These resources can help you learn new information, develop new skills, and expand your knowledge, which can all contribute to achieving your goals.

c. SNHU Career: SNHU Career is a resource that can help you achieve your personal mission statement and short-term goals by providing career guidance and support. This may include help with resume writing, job searching, and networking, as well as access to job listings and career fairs.

d. One Additional SNHU Resource of Your Choosing: One additional SNHU resource that may be helpful in achieving your personal mission statement and short-term goals is the SNHU Student Success Center. The Student Success Center provides a range of resources and support services to help students succeed in their academic and personal lives. This may include tutoring, academic coaching, and access to study materials and resources.

Learn more about feedback from

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

let us consider a simple 20. m2 rooftop installation of crystalline-silicon (c-si) pv modules. remember that pv modules are rated to receive 1.0 kw/m2 of solar radiation. assuming peak solar irradiance of 1.0 kw/m2, what would the peak output of this system be (in kw) if the modules are 18% efficient? [2 points]

Answers

The peak output of the system would be 18% * 20 kW = <<18*.01*20=3.6>>3.6 kW. Thus, the peak output of this system be \boxed{3.6} (in kw) if the modules are 18% efficient.

PV modules are photovoltaic modules, which are units made up of multiple photovoltaic cells. These modules are used to convert sunlight into electricity. They are a key component in solar power systems, and are often used to power homes and businesses. The electricity generated by PV modules can be used immediately, or it can be stored in a battery for later use.

If a 20 square meter rooftop installation receives 1.0 kW/m^2 of solar radiation, the total amount of solar radiation it receives is 20 * 1.0 = <<20*1.0=20>>20 kW.

Since the modules are 18% efficient, the peak output of the system would be 18% * 20 kW = <<18*.01*20=3.6>>3.6 kW. Answer: \boxed{3.6}.

Learn more about peak output, here https://brainly.com/question/13937812

#SPJ4

YOu are configuring the local security policy of a windows system. You wnat to prevent users from reusing old passwords. YOu also want to force them to use a new password for at least 5 days before changing it again. Which policies should you configure? (select two)enforce password historyPassword complexityMaximum password ageMinimum password age

Answers

Since You are configuring the local security policy of a windows system. You wnat to prevent users from reusing old passwords. The policies that you should configure are options A and D:

Enforce password history.Minimum password age.Why is a minimum age required for passwords?

The Minimum Password Age policy is known to be one that establishes how long users must keep a password before changing it. The minimum password age will stop users from using a new password, changing it to their old one, and then bypassing the password system.

Therefore, one can say that Users can repeatedly use a small number of passwords by setting the Enforce password history option to a low number. If you don't also set a Minimum password age, users can change their password as often as necessary in order to reuse their original password.

Learn more about password history from

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

The open source movement makes _____ available to everyone in an effort to continue to build and improve the functionality of open source software.

Answers

Answer:

programs

Explanation:

Lane received a phone call from a client. The client claimed that a file they were working on the day before had disappeared from their computer along with several other files. Lane went to the client's desk to see if she could rebuild the files from the backup done the night before. Lane found and rebuilt the files from the backed-up data. When lane called the next morning to see if everything was working, the client said that two of their files were gone again. They also noticed new files in a folder. When lane arrived, she checked to see how much free space the computer had available and found that it had 250gb less than the day before. What is the issue with the client's computer?.

Answers

Since lane arrived, she checked to see how much free space the computer had available and found that it had 250gb less than the day before. The issue with the client's computer is d. Computer virus

What causes computer viruses?

The clicking links in emails, messaging applications, or social network posts that lead to fraudulent websites. By hiding in the HTML of hijacked websites, sometimes known as drive-by downloads, viruses can be downloaded as soon as the page loads in your browser. using network drives or external hard drives that are infected with your device.

A computer virus is a form of malware that accompanies another program (such as a document) and has the ability to multiply and propagate once it has been run on a machine. For instance, you can accidentally open a harmful email attachment after receiving it, allowing the computer virus to infect your system.

Therefore, one can say that certain kind of computer program called a virus multiplies itself after being run by altering other programs and adding its own code.

Learn more about Computer virus from

https://brainly.com/question/27282045

#SPJ1

See full option below

What is the issue with the client’s computer?

a. Spam

b. Corrupt hard drive

c. Bad hard drive driver

d. Computer virus

Assume the name of your dataframe is flavors_df. What code chunk lets you get a glimpse of the contents of the data frame?.

Answers

Assume the name of your dataframe is flavors_df. The code chunk that lets you get a glimpse of the contents of the data frame is option D: colnames(flavors_df)

What is a DataFrame?

It ia a term that is similar to a spreadsheet, a data structure called a dataframe arranges data into a 2-dimensional table of rows and columns. Because they provide a flexible and user-friendly method of storing and interacting with data, DataFrames are one of the most popular data structures used in contemporary data analytics.

Note that in regards to the question, the code block colnames(flavors df) is written by you. In this section of code:

Hence, you can examine the column names in the data frame with the function colnames().

So, the data frame that the colnames() function accepts as an argument is called flavors df.

Learn more about dataframe  from

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

See full question below

Assume the name of your data frame is flavors_df. What code chunk lets you review the column names in the data frame?

Single Choice Question. Please Choose The Correct Option &#x2714;

A

rename(flavors_df)

B

col(flavors_df)

C

arrange(flavors_df)

D

colnames(flavors_df)

use prim's algorithm to find a minimal spanning tree for the times whose vertices are the hotels given in the distance chart. what is the total time for this spanning tree?

Answers

The greedy approach is the foundation of the Prim's algorithm. We choose the edge with the least weight at each step, assuming that the final node hasn't been reached yet.

The spanning tree would appear like this. All the names are written in shorthand. Kindly corelate.

What is spanning tree?

A spanning tree is a sub-graph of an undirected connected graph that contains all of the graph's vertices and the fewest number of edges possible between them. It is not a spanning tree if a vertex is missed. Weights may or may not be applied to the edges.

What is minimum spanning tree?

A minimum spanning tree is one in which the weight of the edges added together is as small as it can be.

To know more about spanning tree, check out:

https://brainly.com/question/13148966

#SPJ1

You recently installed several applications on Windows system. After doing so, you notice the system takes much longer to boot up. You suspect that the new applications include one or more helper applications that are automatically loaded when the system boots. To improve performance, you want to identify any such helper applications and disable them.Startup

Answers

Startup

Click on the Startup tab in Task Manager that you would use to to stop applications that are automatically loaded when the system boots.

What is Task Manager?

The Task Manager is a component of the Microsoft Windows operating system that has been present since Windows NT 4.0 and Windows 2000. It allows you to view each task (process) as well as the overall performance of the computer. You can view how much memory a program is using, stop a frozen program, and view available system resources using the Task Manager.

Ctrl+Shift+Esc on the keyboard brings up the Task Manager. By right-clicking the taskbar and selecting Task Manager, you can also access the Task Manager.

To know more about Task Manager, visit: https://brainly.com/question/29110813

#SPJ4

Which options allow users to modify the existing data in a report?

a. Report or Create
b. Create or Design View
c. Design view or Layout view
d. Print Preview or Report

Answers

The options that allow users to modify the existing data in a report are:

Report or Create (Option A)Create or Design View (Option B).

What is a report in computer science?

A report is a published result of a table or query. It is used to analyze The data supplied in specified techniques.

A report is a succinct summary extracted from a broader set of facts, intended for a specific audience.

In certain circumstances, a report is a database item that comes in useful when you wish to display the data in your database for any of the following uses:

Display or share a summary of data. Preserve snapshots of the data. Provide details about specific records. Create labels.

Learn more about reports:
https://brainly.com/question/15068287
#SPJ1

Which term describes a piece of code that is distributed to allow additional functionality to be added to an existing program?

Answers

The term describing a piece of code that is distributed to allow additional functionality to be added to an existing program, is Plug-in.

This additional functionality is usually provided by an external developer and is intended to extend the capabilities of the existing program.

What is the Plug-in?

Is a type of software that adds extra features to a program or application. It is used to extend the functionality of a program or application by providing additional features.

Plug-ins can range from simple tweaks to complex add-ons that drastically change the way a program or application works. Examples of plug-ins include:

Browser extensionsAudio effectsVideo filtersMore

Learn more about Plug-in:

https://brainly.com/question/7143308

#SPJ4

what is an advantage of using electronic databases for research? they provide only the most up-to-date information. they provide smaller, more manageable amounts of information. they provide bibliographic information, abstracts, and full-text documents.

Answers

The ability to rapidly and easily search the information is one of the main benefits of using electronic databases.

What is the advantage of using databases for research?They enable you to perform searches across a range of sources. They frequently offer access to books and journal papers in their entirety. The knowledge you discover there is of a very high academic calibre.Databases provide advantages.Little redundancy of data.Enhanced data securityHigher consistency.Minimised upgrading errorsLess expensive data entry, storage, and retrieval.Enhanced data accessibility through host and query languages.Higher application programme integrity for data.These databases provide scholarly, peer-reviewed articles authored by reputable authors, including journalists, scholars, and subject-matter authorities. Users can discover the information they need more quickly because databases offer robust search options for limiting results.

To Learn more About electronic databases refer to:

https://brainly.com/question/4499788

#SPJ4

if you omit both null and not null from the list of column attributes in a create table statement, which is the default setting?

Answers

Answer:

NULL

Explanation:

which of the following is a benefit to integrating crm software into an existing erp? more than one answer may be correct.

Answers

improved customer service, enhanced data analysis, streamlined proccess are several benefits of CRM softwares

what are the benefits?

There are several potential benefits to integrating customer relationship management (CRM) software into an existing enterprise resource planning (ERP) system:

Improved customer service: By integrating CRM and ERP systems, companies can provide more personalized and efficient customer service. For example, customer service representatives can access customer information and order history from the ERP system, which can help them resolve issues more quickly and accurately.                                   Enhanced data analysis: Integrating CRM and ERP systems allows companies to access a wider range of data, which can be used for more sophisticated analysis and decision-making. For example, combining sales data from the CRM system with production and inventory data from the ERP system can help companies better understand customer demand and optimize their operations.Streamlined processes: Integrating CRM and ERP systems can help companies streamline their business processes by eliminating data silos and reducing manual data entry. For example, sales data entered into the CRM system can be automatically transferred to the ERP system, which can help prevent errors and reduce the need for manual data entry.Increased visibility: By integrating CRM and ERP systems, companies can gain greater visibility into their operations and customer interactions. For example, the CRM system can provide insight into customer preferences and trends, while the ERP system can provide information on production and inventory levels. This increased visibility can help companies make more informed business decisions.

To Know More About CRM, Check Out

https://brainly.com/question/29577176

#SPJ1

how does cloud computing improve the performance and user experience of an online version of office productivity tools?

Answers

The user experience of an online version of office productivity tools is by providing a application code as needed .

What is meant by Cloud computing ?

Utility computing and on-demand computing are other terms for cloud computing. The cloud symbol, which is frequently used to symbolize the internet in flowcharts and diagrams, served as the inspiration for the name cloud computing.

Businesses utilize many different use cases, such as data backup, disaster recovery, email, virtual desktops, software development and testing, big data analytics, and customer-facing web apps of every size, type, and sector.

Cloud services relate to infrastructure, platforms, or software that are hosted by outside providers and made available to users online. IaaS, PaaS, and SaaS are the three main categories of as-a-Service solutions.

To learn more about Cloud computing refer to :

https://brainly.com/question/28300750

#SPJ1

Consider the following code segment, which is intended to assign to num a random integer value between min and max, inclusive. Assume that min and max are integer variables and that the value of max is greater than the value of min.
double rn = Math.random();
int num = / missing code /;
Which of the following could be used to replace / missing code / so that the code segment works as intended?
A (int) (rn * max) + min
B (int) (rn * max) + min - 1
C (int) (rn * (max - min)) + min
D (int) (rn * (max - min)) + 1
E (int) (rn * (max - min + 1)) + min

Answers

E (int) (rn * (max - min + 1)) + min

This is "E (int) (rn * (max - min + 1)) + min" the code that can be used to replace / missing code / so that the code segment works as intended.

double rn = Math.random();

int num = E (int) (rn * (max - min + 1)) + min;

What exactly is Math.random() function?

The Math.random() function returns a floating-point, pseudo-random number between 0 and 1, with a roughly uniform distribution over that range — which you can then scale to your desired range. The implementation chooses the initial seed for the random number generation algorithm; the user cannot choose or reset it.

To know more about Math.random() function, visit: https://brainly.com/question/28900796

#SPJ4

Which task would be best completed by using the Find Unmatched Queries Wizard for two tables named “Products Offered” and “Customers”?

a. finding customers who have bought a minimum number of products
b. finding customers who have bought more than one of the same product
c. finding a company’s products that have never been sold
d. finding a company’s products that have sold for more than a certain amount

Answers

The task that will be best completed by using the Find Unmatched Queries Wizard for two tables named “Products Offered” and “Customers” is option b. finding customers who have bought more than one of the same product

What is unmatched query wizard?

With the help of this query wizard, you can build a query that lists any orphaned or widowed records present in two Microsoft Access tables. When a record in a relationship between two tables has many sides (child or related) but only one side (parent or primary), it is said to have orphaned records.

Note that The Find Unmatched Query, as its name suggests, shows records in one table or query that don't match any records in another table or query.

Therefore, On the Create tab, select Query Wizard from the Queries group. Click the Find Unmatched Query Wizard button twice in the New Query dialog box. Click Next after selecting the table with the mismatched records on the wizard's first page.

Learn more about Unmatched Queries Wizard from

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

Which of the following are tasks you perform when creating tables? Select all the options that apply.a. Define the fields in the table.b. Arrange the controls for easy data entry.c. Select a data type for each field.d. Name the table.

Answers

The option that are tasks you perform when creating tables is option A , C and D:

Define the fields in the table. Select a data type for each field.

How do you create a table?

To create a simple table, select Insert > Table and drag the cursor over the grid until the desired number of columns and rows is highlighted. Choose Insert > Table > Insert Table to create a larger table or to edit an existing table.

So, in the excel or microsoft window, Click Insert>Table to create a table. A small menu will appear with a grid of what appear to be table cells. Choose the number of rows and columns for your table by hovering the mouse over them. Additionally, you can select the Insert Table option.

Therefore,  as a person, You can create a table by creating a new database, inserting a table into an existing database, or importing or linking to a table from another data source, such as a Microsoft Excel workbook, that of a Microsoft Word document, a text file, or the use of database. Hence the options selected above are correct.

Learn more about creating tables fromhttps://brainly.com/question/29371681
#SPJ1

You are working as a security admin in an enterprise and have been asked to choose an access control method so that all users can access multiple systems without crossing their limit of access. Which of the following access control methods is the best fit?
Rule-based access control

Answers

The best access control method that fits is Rule-based access control. The correct option is d.

What is a security admin?

A cybersecurity team's focal point is a security administrator. Installing, managing, and debugging security systems for a business are normally their duties.

The rule-based paradigm states that regardless of an employee's other permissions, a security expert or system administrator can allow or deny a user access to a specific area by creating access control rules.

Therefore, the correct option is d. Rule-based access control.

To learn more about security admin, refer to the link:

https://brainly.com/question/29645753

#SPJ1

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

Group of answer choices

Discretionary access control

Mandatory access control

Role-based access control

Rule-based access control

the post method is the default method that tells the browser to append the form data to the end of the url specified in the action attribute. group of answer choices true false

Answers

Answer:

False

Explanation:

Get method

Which of the following Windows registry keys is most useful for malware that aims at maintaining persistent presence on the infected system?
A.HKLM\Software\Microsoft\Windows\CurrentVersion\Run
B. HKLM\SECURITY
C. %UserProfile%\ntuser.dat
D.HKCU\System\CurrentControlSet\Control\MediaProperties

Answers

HKLM\Software\Microsoft\Windows\CurrentVersion\Run is the windows registry keys is most useful for malware that aims at maintaining persistent presence on the infected system.

What's a registry key?The Windows operating system and any apps that choose to use the registry store low-level settings in a hierarchical database called the Windows Registry. The registry can be used by the kernel, device drivers, services, Security Accounts Manager, and user interfaces.It Offers Security The Registry offers two sizes of access control. To start, you can configure each workstation or server to forbid connections to the distant Registry. This is safe, but it also prevents you from editing policies on that machine using the System Policy Editor.Press Windows key + R, type cmd, and hit Enter to open the command prompt's Windows registry. Regedit should be typed into the Command Prompt and entered.

To learn more about windows registry refer :

https://brainly.com/question/29490158

#SPJ4

When filtering records in a query, the expression must return what kind of value?


a. a maximum or minimum value

b. a single text value

c. a positive number value

d. a true or false value

Answers

When filtering records in a query, the expression must return this kind of value: a. a maximum or minimum value.

What is SQL?

SQL is an abbreviation for structured query language and it can be defined as a domain-specific programming language that is designed and developed for the management and communication of various data that are saved in a relational or structured database.

What is query?

In Computer technology, a query can be defined as a computational request for data that are stored in a database table, from existing queries, or even from a combination of both a database table and existing queries.

In database management system (DBMS), either a maximum or minimum value would be returned when the functions MIN() or MAX() are used in conjunction with a structured query language to filter records in a query, which corresponds to the values at the top or bottom values in a data field.

Read more on query here: brainly.com/question/27851066

#SPJ1

Python
Write a program that reads the student information from a tab separated values (tsv) file. The program then creates a text file that records the course grades of the students. Each row of the tsv file contains the Last Name, First Name, Midterm1 score, Midterm2 score, and the Final score of a student. A sample of the student information is provided in StudentInfo.tsv. Assume the number of students is at least 1 and at most 20.
The program performs the following tasks:
Read the file name of the tsv file from the user.
Open the tsv file and read the student information.
Compute the average score of each student.
Assign a letter grade to each student based on the average score in the following scale:
A: 90 =<>
B: 80 =< x=""><>
C: 70 =< x=""><>
D: 60 =< x=""><>
F: x <>
Compute the average of each exam.
Output the last names, first names, scores, and letter grades of the students into a text file named report.txt. Output one student per row and separate the values with a tab character.
Output the average of each , with two digits after the decimal point, at the end of report.txt. Hint: Use the format specification to set the precision of the output.
Ex: If the input of the program is:
StudentInfo.tsv
and the contents of StudentInfo.tsv are:
Barrett Edan 70 45 59
Bradshaw Reagan 96 97 88
Charlton Caius 73 94 80
Mayo Tyrese 88 61 36
Stern Brenda 90 86 45
the file report.txt should contain:
Barrett Edan 70 45 59 F
Bradshaw Reagan 96 97 88 A
Charlton Caius 73 94 80 B
Mayo Tyrese 88 61 36 D
Stern Brenda 90 86 45 C
Averages: midterm1 83.40, midterm2 76.60, final 61.60
Coding:
import csv
if __name__ == '__main__':
filename = input("")
tsv_file = open(filename)
read_tsv = csv.reader(tsv_file, delimiter="\t")
grade_list = []
ave1 = 0.0
ave2 = 0.0
ave3 = 0.0
tc = 0
for row in read_tsv:
a = float(row[2].strip("\n"))
b = float(row[3].strip("\n"))
c = float(row[4].strip("\n"))
ave1 += a
ave2 += b
ave3 += c
tc += 1
d = (a + b + c) / 3.0
if d >= 90:
grade_list.append('A')
elif 80 <= d=""><>
grade_list.append('B')
elif 70 <= d=""><>
grade_list.append('C')
elif 60 <= d=""><>
grade_list.append('D')
else:
grade_list.append('F')
count = 0
ave1 = ave1/tc
ave2 = ave2/tc
ave3 = ave3/tc
tsv_file = open("StudentInfo.tsv")
read_tsv = csv.reader(tsv_file, delimiter="\t")
with open("report.txt", "w") as f:
for row in read_tsv:
f.write("{0}\t{1}\t{2}\t{3}\t{4}\t{5}\n".format(row[0], row[1], row[2], row[3], row[4], grade_list[count]))
print("{0}\t{1}\t{2}\t{3}\t{4}\t{5}\n".format(row[0], row[1], row[2], row[3], row[4], grade_list[count]))
count += 1
f.write("\n")
print("\n")
f.write("Averages: midterm1 {:.2f}, midterm2 {:.2f}, final {:.2f}\n".format(ave1, ave2, ave3))
print("Averages: midterm1 {:.2f}, midterm2 {:.2f}, final {:.2f}\n".format(ave1, ave2, ave3))

Answers

The program that can read the student information will be:

opening file for reading fileread= open("StudentInfo.tsv")

# opening file for writing

filewrite = open("report.txt", "w")

# reading every line from file

for line in fileread: # removing unnecessary terminal spaces line-line.strip()

# splitting line on mark of tab 1st line.split("\t")

# adding data to list. sum = int(1st [2])+int (1st [3])+int(1st

# calculating average = sum/3

if average>= 90: grade= 'A'

elif average >=80: grade= 'B

elif average>=70: grade='C'

elif average>=60: grade= 'D'

else:

grade = 'F'

# writing data to file filewrite.write(line+"\t"+grade+"\n")

except FileNotFoundError: print("Error: File not found")

finally:

# closing file

fileread.close()

filewrite.close()

What is a program?

A computer program is the set of instructions that are in a programming language for a computer to execute.

The steps will be:

Identify the problem.

Find a solution.

Code it.

Test it.

The program is illustrated above.

Learn more about program on:

https://brainly.com/question/26642771

#SPJ1

assume planets is an arraylist of strings and it currently contains several elements. also assume a string variable named first has been declared. write a statement that will assign the first element of the arraylist to the first variable. planets[0]

Answers

Use the get (index) method to obtain the first element of an array list by specifying index = 0. Utilize the get (index) method to obtain the last element of an array list by passing index = size – 1.

What assign first element array list to the first variable?

The element of the current Array List object at the provided index is returned by the get() function of the Array List class, which accepts an integer indicating the index value. As a result, if you supply 0 or list to this method, you can obtain the first element of the current Array List.

Therefore, The first item in an array is indexed as 0 when using zero-based array indexing, while the first item in an array using one-based array indexing is indexed as 1.

Learn more about array list here:

https://brainly.com/question/29309602

#SPJ1

add a new built-in path command that allows users to show the current pathname list, append one pathname, or remove one pathname. in your shell implementation, you may keep a data structure to deal with the pathname list. if you do not use execle() or execve() that allows you to execute with your own environment variables, you will need to add it to the "real" path environment variable for executables in the path to work correctly. the initial value of path within your shell shall be the

Answers

Answer:

#include<stdio.h>

#include <stdlib.h>

#include <unistd.h>

void path() {

char path[100];

if (getcwd(path, sizeof(path)) != NULL) {

      printf("path: %s\n", path);

  } else {

      perror("getcwd() error");

  }

}

void addPath(char *a) {

char path[100];

if (getcwd(path, sizeof(path)) != NULL) {

      printf("path: %s  %s\n", path,a);

  } else {

      perror("getcwd() error");

  }

}

void removePath(char *a) {

char path[100];

if (getcwd(path, sizeof(path)) != NULL) {

 int len = (strlen(path)-strlen(a));

   printf("(%.*s)\n", len, path);

  } else {

      perror("getcwd() error");

  }

}

int main()

{

char userInput[100] =" ";

char userInput2[100 ]= " ";

printf("Current Path");

path();

printf("Enter Path to be added\n");

scanf("%s", &userInput);

addPath(userInput);

printf("Enter Path to be removed\n");

scanf("%s", &userInput2);

removePath(userInput2);

return 0;

}

discuss an example of an algorithm. in general, is there only one correct algorithm for a given problem? explain.

Answers

Algorithms are procedures for resolving issues or carrying out tasks. Algorithms include math equations and recipes.

What is an algorithm ?An algorithm is a process used to carry out a computation or solve a problem. In either hardware-based or software-based routines, algorithms function as a detailed sequence of instructions that carry out predetermined operations sequentially. All aspects of information technology employ algorithms extensively.Algorithms are procedures for resolving issues or carrying out tasks. Algorithms include math equations and recipes. Algorithms are used in programming. All online searching is done using algorithms, which power the internet.Based on data storage, sorting, and processing, algorithms are used to solve problems in the best way feasible. By doing this, they raise a program's effectiveness.

To learn more about algorithm  refer,

https://brainly.com/question/24953880

#SPJ4

Other Questions
Which is true about font use in presentation slides? bright font colors should always be used. only one font size should be used. font size should be at least 24 point. font and background color should contrast. taking a nutrition class during college has been shown to increase intake of fruits and vegetables. this is an example of which food-intake influence? arrange the following images of an aqueous base solution in order of decreasing base strength: rank images from strongest to weakest base. to rank items as equivalent, overlap them. Help Ill give brainliest how much would it cost to replace all the windows on all the building in the united states? in one experiment, 23.91 ml of the 0.1403-m ce4 solution is required to react completely with 20.00 ml of the fe2 solution. calculate the concentration of the fe2 solution. can someone answer this? I need help on my homework ASAP!! PLEASE HURRY I HAVE 20 MINUTES a nurse is administering morning medications to a client, when the client suddenly stiffens and starts to convulse uncontrollably. which actions will you take? select all that apply. why was slavery a thing a technician is using the security tab in the properties dialog box in an attempt to remove the inherited status from a file's permissions but cannot locate where to make the change. what step would the technician take to make the change? what does victor say was the reason why he could have a violent temper and vehement passions when he was young? for a two-phase mixture at equilibrium at a given temperature and pressure, if both species are present in the two phases, the activity of each species must be spatially uniform throughout the two phases, true or false? the aorta carries blood away from the heart and eventually branches into a large number of capillaries that distribute the blood to various body organs. if for an average person, the aorta has a radius of 1.2 cm and blood travels through it at a speed of 36 cm/s and the capillaries have an average radius of 5.0 10-4 cm and blood travels through them at a speed of 0.008 cm/s, determine the approximate number of capillaries in the human body. The odds in favor of Michael Jordan making a free throw were 21:4. Find the probability of Michael Jordan missing a free throw. Give answer as a decimal rounded to the nearest hundredth. there is no doubt that obesity rates have risen dramatically in the united states. complete each sentence with an appropriate term. What is the correct factorization of the following quadratic expression: x - 7x - 60a. (x-12) (x + 5)b. (x+12) (x - 5)c. (x-10) (x+6)d. (x+10) (x-6) in an exploration of the idea for rent the runway, which offers rentals of designer dresses, what part of the basic storyboarding framework would highlight the fact that the rental model gives many more women the opportunity to wear designer dresses, which they could have never afforded before? hy do creditors usually accept a plan for financial rehabilitation rather than demand liquidation of the business? On a print-out of these slope fields, sketch for each three solution curves to the differential equations that generated them. Then complete the following statements: For the slope field in figure 1. a solution passing through the point (0.-1) has slope. For the slope field in figure 1. a solution passing through the point (-2.2) has slope. For the slope field in figure 2. a solution passing through the point (1.-3) has slope For the slope field in figure 2. a solution passing through the point (0.4) has a slope.