Our goal is to develop a very simple English grammar checker in the form of a boolean function, isGrammatical(wordList). To begin, we will define a sentence to be grammatical if it contains three words of form: determiner noun verb. Thus
[“the”, “sheep”, “run”] is grammatical but [“run”, “the”, “sheep”] is not grammatical nor is
[“sheep”, “run”]. By tagging convention, determiners are tagged as DT, nouns as NN, verbs as VB, and adjectives (which we discuss later) as JJ. The tagSentence function from the tagger module will help you convert your wordlist to tags; a challenge is that some words (such as swing) have multiple definitions and thus multiple parts of speech (as swing is a noun and swing is a verb). Carefully examine the results returned by tagSentence when defining the logic of isGrammatical.

Note that by our current definition, we are not concerned with other aspects of grammar such as agreement of word forms, thus “an sheep run” would be considered as grammatical for now. (We will revisit this concern later.)


[3 points]
Add the words “thief”, “crisis”, “foot”, and “calf” to the lexicon.txt file, and modify wordforms.py so that it generates their plural forms correctly (“thieves”, “crises”, “feet”, “calves”). In terms of categories for the lexicon.txt, thief is a person, crisis and feet are inanimates. Interestingly, ‘calf’ might be an animal (the young cow) but might be an inanimate (the part of the body).

We are not yet using plurals in our sentences, but you should be able to add additional tests within the wordforms.py file to validate that these new words and forms are handled properly.


[3 points]
The original lexicon includes singular nouns such as cat but not plural forms of those nouns such as cats, and thus a sentence such as “the cats run” is not yet deemed as grammatical. However, the wordforms module does include functionality for taking a singular noun and constructing its plural form.

Modify the code in tagger.py so that it recognizes plural forms of nouns and tags them with NNS. We recommend the following approach:


update the loadLexicon function as follows. Every time you encounter a word that is a noun from the original lexicon.txt file, in addition to appending the usual (word,label), add an extra entry that includes the plural form of that noun, as well as a label that adds an ‘s’ to the original label. For example, when encountering ‘cat’ you should not only add (‘cat’,’animal’) to the lexicon but also (‘cats’,’animals’).


Then update the the labelToTag function to return the new tag NNS when encountering one of those plural labels such as ‘animals’.


Test your new functionality on sentences such as “the cats run” as well as with your new plurals such as “thieves”.

[2 points]
The original lexicon includes verbs such as run but not 3rd person singular forms of those verbs that end in -s such as runs, and thus a sentence such as “the cat runs” is not yet deemed as grammatical. As you did with nouns in the previous step, modify the software so that 3rd person singular verbs are added to the lexicon and tagged as VBZ. Test this new functionality on sentences such as “the cat runs” and
“the sheep runs”.


[2 points]
Now we have both plural nouns and 3rd person singular verbs, however the grammar checker currently doesn’t match them and thus accepts sentences like
“the cat run” and “the cats runs”, neither of which is truly grammatical. Update the rules so that it requires the tag VBZ on the verb if the noun has the singular tag NN, and requires the tag VB on the verb if the noun has the plural tag NNS. Add some test cases to ensure the program is working as intended. Include tests with unusual forms such as the noun “sheep” that can be singular or plural; thus “the sheep runs” and “the sheep run” are grammatical. Make sure to update any previous tests to conform to these new expectations.


[2 points]
Update your grammar to allow any number of optional adjectives between the determiner and noun in a sentence, thereby allowing sentences such as
“the big sheep run” and “the big white sheep run”, though disallowing sentences such as “the cat sheep run”.

Answers

Answer 1

Using the knowledge in computational language in python it is possible to write a code that form of a boolean function, isGrammatical(wordList). To begin, we will define a sentence to be grammatical if it contains three words of form: determiner noun verb.

Writting the code:

# importing the library  

import language_tool_python  

 

# creating the tool  

my_tool = language_tool_python.LanguageTool('en-US')  

 

# given text  

my_text = 'A quick broun fox jumpps over a a little lazy dog.'  

 

# correction  

correct_text = my_tool.correct(my_text)  

 

# printing some texts  

print("Original Text:", my_text)  

print("Text after correction:", correct_text)  

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

#SPJ1

Our Goal Is To Develop A Very Simple English Grammar Checker In The Form Of A Boolean Function, IsGrammatical(wordList).

Related Questions

What is the easiest way to create a resume in Word with predefined content that can be replaced with your information?

Answers

The easiest way to create a resume in Word with predefined content that can be replaced with your information is to use a resume template.

What is resume?

A resume, often known as a curriculum vitae (CV) in English outside of North America, is a document written and utilised by an individual to present their background, abilities, and accomplishments. Resumes can be used for a variety of reasons, but they are most commonly utilised to find new job. A CV often includes a "summary" of relevant employment experience and education. The resume is frequently one of the first items a potential employer sees about the job seeker, along with a cover letter and sometimes an application for employment, and is typically used to screen applicants, often followed by an interview.

To learn more about resume

https://brainly.com/question/14178136

#SPJ13

many people are now using the web not simply to download content, but to build communities and upload and share content they have created. this trend has been given the name

Answers

The term "Web 1.0" describes the early development of the World Wide Web. In Web 1.0, the vast majority of users were content consumers and there were very few content creators.

Personal websites were widespread and mostly included static pages maintained on free web hosts or web servers controlled by ISPs.

Web 1.0 forbids the viewing of ads while browsing websites. Ofoto, another online digital photography websites from Web 1.0, allowed users to store, share, view, and print digital images. Web 1.0 is a content delivery network (CDN) that allows websites to present the information. One can use it as their own personal webpage.

The user is charged for each page they see. Users can access certain pieces of information from its directories. Web 1.0 was prevalent from around 1991 until 2004.

Four Web 1.0 design requirements are as follows:

1.static web pages

2.The server's file system is used to serve content.

3.Pages created with the Common Gateway Interface or Server Side Includes (CGI).

4.The items on a page are positioned and aligned using frames and tables.

To know more about Web 1.0 click on the link:

https://brainly.com/question/14411903

#SPJ4

I really need help with this what are 4 things that show you this email is a scam

Answers

Answer:

1. Grammar errors and misspelled words.

Example: if no action is "taking" we will be "force"

Correct words are supposed to be taken and forced.

2. Name of sender "Email_Service" The underscore brings a little suspicion and it doesn't match the name of the email its being sent from.

3. Urgency. In other words this is an "ACT NOW, ACTION REQUIRED" email, which normally come from scams.

4. Threats – LAST WARNING,  IF NO ACTION IS TAKEN YOUR EMAIL WILL BE BLACKLISTED.

Explanation:

What is the work of continue statement in c programming

Answers

Answer:

The continue statement breaks one iteration (in the loop), if a specified condition occurs, and continues with the next iteration in the loop.

Explanation:

Which of the following statements are true about validation in the validation and verification process? Each correct answer represents a complete solution. Choose all that apply.
A. Describes proper software construction
B. Answers the 'Are we building the product right?' question
C. Means that the software meets the specified user requirements
D. Answers the 'Are we building the right product?' question

Answers

The  statements that are true about validation in the validation and verification process is option C. Means that the software meets the specified user requirements.

What is the process for verification and validation?

Verification is the process of confirming that the software was created and developed in accordance with the given specifications. The process of validation involves determining whether the software's (the finished product's) genuine needs and expectations have been satisfied.

Therefore, Verification and validation, commonly known as V&V, are separate processes used in tandem to make sure that a system, service, or product complies with requirements and specifications and serves the intended purpose.

Learn more about validation  from

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

you receive an email from your organization notifying you that you need to click on a link and enter some personal information to verify your identity or else your account will be suspended. what should you do?

Answers

You should reach out to your organization to confirm that the email is legitimate before taking any action. If you are unsure, you can also try to look up the organization's contact information online to verify.

What is email?

Electronic mail (often known as e-mail) is a technique of transmitting messages ("mail") between persons via electronic equipment. Email was thus envisioned as the electronic (digital) alternative to mail at a period when "mail" solely referred to physical mail (thus e- + mail). Email later became a ubiquitous (extremely extensively used) communication channel, to the point where an email account is often viewed as a basic and necessary aspect of many procedures in most nations, including business, trade, government, education, entertainment, and other realms of daily life.

To learn more about email

https://brainly.com/question/24688558

#SPJ4

HELP!

What is a central processing unit? Select two options.

the electronic circuitry that receives data and transforms it to human-readable form


the electronic circuitry that stores data and instructions so they can be processed


the electronic circuitry that handles all the instructions it receives from hardware


the electronic circuitry that stores information for immediate use by software


the electronic circuitry that handles all the instructions it receives from software

Answers

It is right to state that a central processing unit (CPU) is;

the electronic circuitry that handles all the instructions it receives from hardware; (Option C)the electronic circuitry that handles all the instructions it receives from software. (Option E)

What is a CPU?

A processor's four fundamental functions are retrieve, decode, execute, and write back. Fetch- is the operation that gets instructions from a system's RAM from program memory.

A CPU, or central processing unit, is the computer's brain. The CPU, like that of a human brain, regulates all computer processes. The CPU's role is to monitor input data from devices such as mice and other applications. Then it seeks up instructions for that data and executes them.

Learn more about central processing units:
https://brainly.com/question/28548014
#SPJ1

Answer:

C and E

Explanation:

What is output by following code?

C=c+2

Answers

The output of the C++ code is 21.

What is C++?
C++
has changed significantly over time, and modern C++ has object-oriented, generic, and functional features, as well as low-level memory manipulation capabilities. It is always implemented as a compiled language, and various manufacturers, including the Free Software Foundation, LLVM, Microsoft, Intel, Embarcadero, Oracle, and IBM, provide C++ compilers, allowing it to be used on a wide range of systems.

Let first write the question

C=1

sum = 0

while(C<10):

C=C+3

sum=sum + C

print(sum)

Now Focus on

while(C<10):

C=C+3

sum=sum + C

The value of C is initially 1

C=1+3

Sum= 0+4

In second loop the value of C will become 4

c=4+3

sum=4+7

In third loop the value of C will be 7

c=7+3

sum=11+10

so the answer is 11+10=21

To learn more about C ++
https://brainly.com/question/28185875
#SPJ13

Functions of a DVD in computer

Answers

DVD is a digital optical disc storage format that are commonly used to store large amounts of data, such as high-quality videos and movies. A DVD-ROM drive and DVD player software are required to read and play DVDs on a computer.

What exactly is a DVD?

DVD (digital video disc) is an optical data storage technology similar to compact disc (CD). Optical data storage is a technique that stores digital information (1's and 0's) by reading the information with light.

A DVD movie is depicted in the image of the Matrix DVD movie disc. It is also where the operating system is kept. In 1995, four companies named Philips, Sony, Toshiba, and Panasonic invented and developed it. The first DVD-ROM drives that used these discs were sold in 1997.

To learn more about DVD

https://brainly.com/question/26223221

#SPJ9

one image is 16384 pixels wide and 512 pixels high. He decides to save it as a 256 color bitmap image. Calculate the file size in Gib

Answers

The file size would be 0.268435456 gb

What is a File Size?

This refers to the capacity of a file to store information in it and is a function of memory in computers.

Calculations and Parameters

Given that:

There is a 256 color bitmap image.

The pixel dimensions are: 16384 pixels wide and 512 pixels high (16384 x 512)

To find the file size, this would be:

(16384 x 512 x 256)/8

= 268,435,456 bytes.

Then, to convert bytes to gigabytes and it would be 0.268435456 gb

Read more about digital imaging here:

https://brainly.com/question/26307469

#SPJ1

Question 2 (1 point)
In a worksheet, the vertical spaces with headings A, B, C, and so on.
columns
cells
rows
labels

Answers

In a worksheet, the vertical spaces with headings A, B, C, are columns.

What do you mean by worksheet?

Spreadsheet software in computing displays a user interface on a computer monitor that resembles one or more paper accounting worksheets. A single spreadsheet (more formally, a two-dimensional matrix or array) is referred to as a worksheet in Microsoft Excel, while a collection of worksheets is referred to as a workbook.

A column in a spreadsheet is defined as the vertical space that runs up and down the window. Each column's location is denoted by a letter.

So, A is the right answer.

To learn more about worksheet

https://brainly.com/question/25130975

#SPJ13

1.Create a new password
1-Develop an algorithm using pseudocode and a flowchart that asks the user to
create a new password.
The algorithm should:
• get the user to enter a password
● get the user to re-enter the password
• repeat the two bullet points above until both entered passwords are
identical
output "password created" when they are identical

Answers

The algorithm of the question will be:

1. Start

2. get the user to enter a password

3. get the user to re-enter the password

4. if the passwords are not identical, repeat steps 1 and 2

5. output "password created" when the passwords are identical.

6. End

Algorithm:

An algorithm in computer science is a finite sequence of strict instructions that is often used to solve a class of specialised problems or to execute a computation. Algorithms serve as specifications for calculating and processing data. Advanced algorithms can execute automated deductions and apply mathematical and logical tests to direct code execution through several paths.

To learn more about algorithm

https://brainly.com/question/24953880

#SPJ13

Create a program that will allow user to input arithmetic operator, first number and second number
then perform a result based on the condition.

and produce the output below.
• When arithmetic operator "+" or "addition" perform addition for first number and second number and
use (for loop) to display count down from result to 1.
• When arithmetic operator "x" or "multiplication" perform multiplication for first number and second
number and use (for loop) to display from 1 to result.
• When arithmetic operator "-" or "subtraction" perform subtraction for first number and second
number and use (while loop) to count down from result to 0.
• When arithmetic operator "/" or "division" perform division for first number and second number and
use (while loop) to display from 0 to result.
• When arithmetic operator "%" or "modulo" perform modulo for first number and second number and
use (do while loop) to display from 0 to result, Otherwise Access Denied

Answers

A program that will allow the user to input the arithmetic operator, the first number, and the second number and then perform a result based on the condition that when the arithmetic operator "+" or "addition" performs addition for the first number and second number and use (for loop) to display count down from result to 1 is given below:

The Program

a = int(input("Enter First Number: "))

b = int(input("Enter Second Number: "))

print("Enter which operation would you like to perform?")

ko = input("Enter any of these char for specific operation +,-,*,/: ")

result = 0

if ko == '+':

   result = a + b

elif ko == '-':

   result = a - b

elif ko == '*':

   result = a * b

elif ko == '/':

  result = a / b

else:

   print("Error")

print(a, ko, b, ":", result)

Read more about programming here:

https://brainly.com/question/23275071

#SPJ1

Which of the following statements are true about routers and routing on the Internet.

a. Protocols ensure that a single path between two computers is established before sending packets over it.
b. Routers are hierarchical and the ""root"" router is responsible for communicating to sub-routers the best paths for them to route internet traffic.
c. A packet traveling between two computers on the Internet may be rerouted many times along the way or even lost or ""dropped"".
d. Routers act independently and route packets as they see fit.

Answers

A packer traveling between two computers will always have two router’s. The original one that the information is sent from and the one that received it to be able to communicate with. Answer C.

A packet traveling between two computers on the Internet may be rerouted many times along the way or even lost or ""dropped"" is the statements are true about routers and routing on the Internet. Hence, option C is correct.

What is routers?

A router can connect one or more packet-switched networks or subnetworks. It controls traffic between several networks and enables multiple devices to share an Internet connection by transmitting data packets to their intended IP addresses.

In addition to VPN routers, wired, wireless, core, and edge routers are also included.

In order to transfer data between two or more packet-switched computer networks, a router—either real or virtual—is used. A router looks at the destination's Internet Protocol address and chooses the best route for the data packet to take in order to get there.

Thus, option C is correct.

For more information about routers, click here:

https://brainly.com/question/15851772

#SPJ12

Helppp pleaseee help pleaseee look at picture

Answers

Answer:

C & E

Explanation:

Brainlest, Please!

Answer:

C and E

Explanation:

Define a computer system, and describe its components.

Answers

Answer: The text file

Explanation: Brainly won't let me put in such a big answer.

A function's return data type must be the same as the function's
parameter(s).
True
False


// For c++

Answers

Answer:

False

Explanation:

Return data type has no relation with the function's parameter

this answer would be false.

Given the array, var a = [20, 40, 60, 80, 100], which line of code accesses the value 40?

Answers

Answer:

1

0 = 20

1=40

2=60

3=80

4=100

etc..


What type of function does a project management tool have that a task management
tool does not?
file sharing
Oprogress tracking
commenting
budgeting

Answers

The type of function does a project management tool have that a task management tool does not use  is option C; commenting.

What is the project management tool from Microsoft?

To develop timetables, project plans, manage resources, and keep track of time, project managers utilize Microsoft Project. For project management experts, it contains features like Gantt charts, kanban boards, and others.

Therefore, This project management tool enables your engineering team to keep tabs on each undertaking. Every component of any project your engineering team is working on may be managed by a single system and commenting is not one of it.

Learn more about  project management tool  from

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

1_>circle 2_>retangle 3->triangle 4_>square 5_>trapezoid 6_>parallelogram enter the figure code 2 enter the breadth and length​

Answers

# define a function for calculating

# the area of a shapes

def calculate_area(name):

 

 # converting all characters

 # into lower cases

 name = name.lower()

 

 # check for the conditions

 if name == "rectangle":

   l = int(input("Enter rectangle's length: "))

   b = int(input("Enter rectangle's breadth: "))

   

   # calculate area of rectangle

   rec area = l * b

   print(f"The area of rectangle is: rec area")

 

 elif name == "square":

   s = int(input("Enter square's side length: "))

     

   #calculate area of square

   sqt_area = s * s

   print(f"The area of square is

         {sqt_area}.")

 elif name == "triangle":

   h = int(input("Enter triangle's height length: "))

   b = int(input("Enter triangle's breadth length: "))

     

   # calculate area of triangle

   tri_area = 0.5 * b * h

   print(f"The area of triangle is

         {tri_area}.")

 elif name == "circle":

   r = int(input("Enter circle's radius length: "))

   pi = 3.14

       

   # calculate area of circle

   circ_area = pi * r * r

   print(f"The area of circle is

         {circ_area}.")

       

 elif name == 'parallelogram':

   b = int(input("Enter parallelogram's base length: "))

   h = int(input("Enter parallelogram's height length: "))

   

   # calculate area of parallelogram

   para_area = b * h

   print(f"The area of parallelogram is

         {para_area}.")

   

 else:

   print("Sorry! This shape is not available")

# driver code

if __name__ == "__main__" :

 

 print("Calculate Shape Area")

 shape_name = input("Enter the name of shape whose area you want to find: ")

 

 # function calling

 calculate_area(shape_name)

Output:

Calculate Shape Area

Enter the name of shape whose area you want to find: rectangle

Enter rectangle's length: 20

Enter rectangle's breadth: 15

The area of rectangle is 300.

What is code?

In computing, source code, is any collection of code, with or without comments, written in a human-readable programming language. The source code of a programme is specially designed to aid the work of computer programmers, who write source code to specify the actions to be performed by a computer.

To learn more about code

https://brainly.com/question/26134656

#SPJ9

A function's return data type must be the same as the function's
parameter(s).
True
False



// For C++

Answers

The given statement of data type is false.

What is data type?

A data type is a set of possible values and operations that may be performed on it in computer science and programming. A data type specifies how the programmer intends to use the data to the compiler or interpreter. Most programming languages support integer numbers (of various sizes), floating-point numbers (which approximate real numbers), characters, and Booleans as basic data types. A data type limits the potential values of an expression, such as a variable or a function. This data type specifies the actions that may be performed on the data, its meaning, and how values of that kind can be stored.

To learn more about data types

https://brainly.com/question/179886

#SPJ13

Test if a number grade is an F (less than or equal to 65). If so, print "That’s not good.". (Python)


Hint: Grades may be decimals.


Sample Run

Enter a Number: 60


Sample Output

That's not good.

Answers

Answer:

grade = float(input(Enter a number grade: "))

if grade <= 65:

     print("That's not good")

Explanation:

Answer:

grade=float(input("Enter a number grade:"))

if grade<=65:

    print("That's not good.")

Explanation:

I got a 100% on the question. The first answer had a few mistakes in it.

Sincerely,

         Dangerous Gem

Which type of footwear should be worn while working on hybrid electric vehicles (HEVs) and electric vehicles (EVs)

Answers

Answer: Insulated safety footwear.

Explanation: While working on a hybrid electric vehicle (HEV) or an electric vehicle (EV) you should wear Insulated safety footwear.


A hotel chain is using AI to enhance its booking services. Its system can locate each of its users using their mobile GPS location.

Which AI application is used to perform this task?

A) prediction
B) profiling
C) tracking
D) voice or facial recognition

Answers

The AI application that is used to perform this task is tracking. The correct option is C.

What is AI technology?

In its most basic form, AI (artificial intelligence) refers to systems or machines that mimic human intelligence in order to perform tasks and can iteratively improve themselves based on the data they collect.

Tracking is used to increase or decrease the amount of text on a page by increasing or decreasing the amount of space between letters.

It differs from kerning in that it affects an entire font or range of text, whereas kerning only affects specific letter pairs.

Tracking is the AI application that is used to perform the task using their mobile GPS location.

Thus, the correct option is C.

For more details regarding artificial intelligence, visit:

https://brainly.com/question/22678576

#SPJ1

Write an outdoor temperature monitoring application that allows a user to keep entering daily high temperature readings (in Fahrenheit) until the user enters 888.
If the temperature entered is less than -20 or more than 120, display an appropriate message and do not use the temperature.

Answers

An outdoor temperature monitoring application  is given below:

package pack10;

import java.util.Scanner;

public class Main {

public static void main(String[] args) {

Scanner sc = new Scanner(System.in);

System.out.println("Enter daily high temperature readings (in Fahrenheit) ");

int input;

int numDays=0;

int highTemp=-999;

int lowTemp=999;

double average=0;

while(true) {

System.out.print("Enter temperature : ");

input = sc.nextInt();

if(input==555) {

break;

}

if(input<-20 || input>120) {

System.out.println("Error!!! Please enter temperatur in range -20 to 120 exclusive");

}else {

numDays++;

if(input>highTemp) {

highTemp = input;

}

if(input<lowTemp) {

lowTemp = input;

}

average += input;

}

}

System.out.println("Number of days the temperature entered : "+numDays);

System.out.println("The minimum temperature is : "+lowTemp);

System.out.println("The maximum temperature is : "+highTemp);

average/=numDays;

System.out.println("The average of the temperature is : "+average);

}

}

What is a program?

A computer program is a set of instructions written in a programming language that a computer can execute. Software includes computer programs as well as documentation and other intangible components. Source code refers to a computer program in its human-readable form.

The outdoor temperature monitoring application that allows a user to keep entering daily high temperature readings is illustrated above.

Read more about programming here:

https://brainly.com/question/23275071

#SPJ1`

Consider the following program segment:

//include statement(s)
//using namespace statement

int main()
{
//variable declaration
//executable statements
//return statement
}


Write C++ statements that include the header files iostream and string.

Write a C++ statement that allows you to use cin, cout, and endl without the prefix std::.

Write C++ statements that declare and initialize the following named constants: SECRET of type int initialized to 11 and RATE of type double initialized to 12.50.

Write C++ statements that declare the following variables: num1, num2, and newNum of type int; name of type string; and hoursWorked and wages of type double.

Write C++ statements that prompt the user to input two integers and store the first number in num1 and the second number in num2.

Write a C++ statement(s) that outputs the values of num1 and num2, indicating which is num1 and which is num2. For example, if num1 is 8 and num2 is 5, then the output is:

The value of num1 = 8 and the value of num2 = 5.
Write a C++ statement that multiplies the value of num1 by 2, adds the value of num2 to it, and then stores the result in newNum. Then, write a C++ statement that outputs the value of newNum.

Write a C++ statement that updates the value of newNum by adding the value of the named constant SECRET to it. Then, write a C++ statement that outputs the value of newNum with an appropriate message.

Write C++ statements that prompt the user to enter a person’s last name and then store the last name into the variable name.

Write C++ statements that prompt the user to enter a decimal number between 0 and 70 and then store the number entered into hoursWorked.

Write a C++ statement that multiplies the value of the named constant RATE with the value of hoursWorked and then stores the result into the variable wages.

Write C++ statements that produce the following output:

Name: //output the vlaue of the variable name
Pay Rate: $ //output the value of the Rate
Hours Worked: //output the value of the variable hoursWorked
Salary: $ //output the value of the variable wages
For example, if the value of name is "Rainbow" and hoursWorked is 45.50, then the output is:

Name: Rainbow
Pay Rate: $12.50
Hours Worked: 45.50
Salary: $568.75
Write a C++ program that tests each of the C++ statements that you wrote in parts a through l. Place the statements at the appropriate place in the C++ program segment given at the beginning of this problem. Test run your program (twice) on the following input data:

a.
num1 = 13, num2 = 28; name ="Jacobson"; hoursWorked = 48.30.


b.
num1 = 32, num2 = 15; name ="Crawford"; hoursWorked = 58.45.

Answers

The program will be illustrated thus:

c++ code:

#include <iostream>

using namespace std;

int main() {

string s;

cout<<"Enter your name : "<<endl;

cin>>s;

int num1,num2,num3,average;

num1=125;

num2=28;

num3=-25;

average=(num1+num2+num3)/3;

cout<<"num1 value is : "<<num1<<endl;

cout<<"num2 value is : "<<num2<<endl;

cout<<"num3 value is : "<<num3<<endl;

cout<<"average is : "<<average<<endl;

return 0;

What is a program?

A program is a precise set of ordered operations that a computer can undertake. The program in the modern computer described by John von Neumann in 1945 has a one-at-a-time series of instructions that the computer follows. Typically, the software is saved in a location accessible to the computer.

Computer programs include Microsoft Word, Microsoft Excel, Adobe Photoshop, Internet Explorer, Chrome, and others. In filmmaking, computer applications are utilized to create images and special effects.

Learn more about Program on:

https://brainly.com/question/23275071

#SPJ1

if you're connected to a switch and your nic is in promiscuous mode, what traffic would you be able to capture? check all that apply.

Answers

If one is connected to a switch and the NIC is in promiscuous mode, the traffic that one would be able to capture are:
"packets transmitted to your switch port, which means traffic to or from your computer or broadcast packets. This is because one is connected to a switch.

What is a promiscuous mode in Networking?

"Promiscuous mode" is a mode of operation as well as a security, monitoring, and management strategy in computer networking. In promiscuous mode, a network device, such as an adapter on a host system, can intercept and read each network packet that comes in its entirety.

Promiscuous mode on a network permits a network device to intercept and read each network packet that comes in its entirety. Promiscuous mode is a mode of operation in an Ethernet local area network (LAN) in which every data packet delivered can be received and read by a network device.

You can use any of the following commands to put an interface into idle mode, the latest way is to use the "ip" command. Use the ifconfig command to determine if the NIC is set to promiscuous mode.

Learn more about Switches:
https://brainly.com/question/1147908
#SPJ1

Question # 2 Multiple Choice Do you think it is acceptable to copy and paste material from a web page into a term paper?
Yes, because information on the internet is free for everyone to use.
Yes, because information on the internet is free for everyone to use.
Yes, if you paste of where you got it from but do not quote it.
Yes, if you paste of where you got it from but do not quote it.
No, because you should not pass other people’s work off as your own.
No, because you should not pass other people’s work off as your own.
No, because you can get sued by the owner of the material.

Answers

Do you think it is acceptable to copy and paste material from a web page into a term paper: No, because you should not pass other people’s work off as your own.

What is plagiarism?

Plagiarism simply refers to an act of representing or using an author's literary work, thoughts, ideas, language, or expressions without their consent, permission, acknowledgement or authorization.

This ultimately implies that, plagiarism is an illegal act that involves using another author's intellectual work or copyrighted items word for word without getting an authorization and permission from the original author.

In this context, we can reasonably infer and logically deduce that it is very wrong to copy and paste material from a web source into a term paper without an accurate citation or reference to the original author.

Read more on plagiarism here: brainly.com/question/397668

#SPJ1

Answer:

C. No, because you should not pass other people’s work off as your own.

Explanation:

Pregunta Shapes are located on the ______ Tab in PowerPoint.​

Answers

Answer: its located in the insert tab

you are working in the most recent version of excel provided by your company. why would you use the save as type pull-down menu?

Answers

Since  you are working in the most recent version of excel provided by your company, the reason why you would  use the save as type pull-down menu is because You are said to be saving the file for a person with an older  type/version of Excel.

What is the oldest version of Excel?

The Excel 97 Viewer was the first version issued by Microsoft. In Windows CE for Handheld PCs, the Excel 97 Viewer was also supported.

Note that Users can arrange, organize, and calculate data in a spreadsheet using Microsoft Excel.

Hence, Data analysts and other users can make information easier to examine as data is added or updated by arranging it using software such as Excel. Excel has many boxes called cells that are organized in rows and columns.

Learn more about Excel from

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

Other Questions
lol I'm crying i need help Identifying Variables and Writing Functions Practice . A function describes how a dependent variable changes with respect to one or more independent variables. When there are only two variables, they are often summarized as an ordered pair with the independent variable first: (independent variable, dependent variable) The dependent variable is a function of the independent variable. If x is the independent variable and y is the dependent variable, write the function as y = f(x) Related Quantities. Write a short statement that expresses a possible relationship between the variables. Example: (age, shoe size) Solution: As a child ages, shoe size increases. Once the child is full-grown, shoe size remains constant. 1. (volume of a gas tank, cost to fill the tank) 2. (time, price of a Ford sedan), where time represents years from 1975 to 2017 How do modern Democrats and Republicans view taxation?Group of answer choicesDemocrats tend to favor tax increases to support new social programs more than Republicans.Republicans tend to favor tax increases to support new social programs more than Democrats.Democrats tend to favor tax decreases, while Republicans tend to favor keeping tax rated the same.Republicans tend to favor tax increases, while Democrats tend to favor keeping tax rates the same. A 5.325-gram sample of methyl benzoate, a compound used in the manufacture of perfumes, is found to contain 3.758 g carbon, .316 g hydrogen, and 1.251 grams of oxygen. What is the empirical formula for this substance? If a volcano erupts and ejects 12.5 moles of sulfur into the atmosphere how many atoms of sulfur is this The Euclidean algorithm - The Euclidean algorithm provides a wonderful way to calculate the greatest common factor of 2 numbers. The greatest common factor, which is the largest number that divides evenly into 1 or more numbers, is useful for reducing fractions. The Euclidean algorithm works by dividing 1 number by the other and finding the remainder. The 2 numbers are redefined, and then the process is repeated. The process ends when the remainder is equal to 0. Following is the pseudo code for the algorithm. In c++ Use 145 and 87 to test your program. The program will find the largest common factor of the numbers (the answer should be 29). How did westward expansion lead to racial conflict? Find the tangent of each angle that is not the right angle. Drag and drop the numbers into the boxes to show the tangent of each angle. B 76 tan ZA tan ZB 2.45 0.38 0.93 Which of the following is a major advantage of in-depth interviews over focus group interviews? They eliminate the need for a trained interviewer. They allow researchers to observe the social influence process that affects consumer behavior and attitudes because group members interact with each other. They increase the likelihood of cross talk, thus creating synergy among participants and encouraging them to talk in detail about a topic. They decrease the likelihood of participants responding in a socially desirable manner because there are no other participants to impress. The money multiplier is equal to the _______________ in the economy divided by the original _________________. Any costs incurred to get the merchandise into a condition and location ready for sale should be debited to ______. The rectangular waiting area for a popular amusement park ride is covered by a large sun canopy. The total area of the canopy, in square feet, is 100 square feet more than twice the area where guests wait.Which equation could you use to find the area of the place where guests wait for the ride if the area of the canopy is 7,600 square feet? Please find the square root. Round your answer to the nearest tenth. [tex] \sqrt{58 } = [/tex] Pick an issue that you are interested in that is controversial. Climate change, wearing masks, space flight, lowering the voting age, whatever youd like! Read multiple sources that are reliable. Write a paragraph defending one side of the issue, and another paragraph defending the opposite side of the issue. Do not cut and paste information from the articles. Use your own words! Examples: benefits of millionaires funding space flights, drawbacks from millionaires funding space flights. Sum it up. This is where you can state your own opinion. List your sources in MLA form. is neurofibromatosis 1 a dominant or recessive trait? Find the value of each variable.All answers must be in simplest radical form The first 19 terms of the sequence 9, 2, -5, -12,... find the sum of the arithmetic sequence An economy size car can travel 32 miles for each gallon of gasoline. The function d(g) = 32g represents the distance traveled in miles, d(g), that the car can travel with g gallons of gasoline. Find d(30).*Type in your answer.d(30) = miles Florida online traffic school section 2 review test A machine worked for 4hours and used 6kilowatts of electricity.What is the rate ofenergy consumed inkilowatts per hour?*Enter your answer as a decimal