Write a program Ticket.py that will allow the user to enter actual speed
limit, the speed limit at which the offender was travelling, and the number
of previous tickets that person has received. The application should
calculate and display how many miles over the speed limit the offender
was travelling, the cost of the speeding ticket, and court cost. Use $10.00
as the amount to be charged for each mile per hour over the speed limit.
The court cost should be $50.00

Write A Program Ticket.py That Will Allow The User To Enter Actual Speedlimit, The Speed Limit At Which

Answers

Answer 1

Answer:

Following are the code to the given question:

def speedlimit():#defining a method speedlimit

a= int(input("Enter the offender's speed in mph: "))#defining a variable for input value

lim = int(input("Enter the speed limit in mph: "))#defining a variable for input value

n = int(input("The number of previous tickets that person has received: "))#defining a variable for input value

if (lim >= 20) and (lim < 70):#defining if block to check speed is between 20 to 70

if a > lim:#use if to check lim value greater than a

print("Driver was going", a-lim, "mph over the limit.")#print calculated value with message

print("The cost of the speeding ticket $",10*(a-lim))#print calculated value with message

else:

print( "Driver was going at a legal speed.")#print message

else:

print('Invalid speed limit.')#print calculated value with message

print("Court cost $",(50 + n*20))#print calculated value with message

speedlimit()

Output:

Please find the attached file.

Explanation:

In this code, a method "speedlimit" is declared that defines three variables that are "a, lim, and n" in which we input value from the user-end.

Inside the method, a nested conditional statement is used that checks the speed value is between 20 to 70 if it is true it will go to the next condition in which it checks lim value greater than a. It will use a print message that will print the calculated value with the message.

Write A Program Ticket.py That Will Allow The User To Enter Actual Speedlimit, The Speed Limit At Which

Related Questions

4. Interaction between seller and buyer is called___.

A. Demanding
B. Marketing
C. Transactions
D. Oppurtunity​

Answers

Answer:

C. Transactions.

Explanation:

A transaction can be defined as a business process which typically involves the interchange of goods, financial assets, services and money between a seller and a buyer.

This ultimately implies that, any interaction between a seller and a buyer is called transactions.

For example, when a buyer (consumer) pays $5000 to purchase a brand new automobile from XYZ automobile and retail stores, this is referred to as a transaction.

Hence, a transaction is considered to have happened when it's measurable in terms of an amount of money (price) set by the seller.

Price can be defined as the amount of money that is required to be paid by a buyer (customer) to a seller (producer) in order to acquire goods and services. Thus, it refers to the amount of money a customer or consumer buying goods and services are willing to pay for the goods and services being offered. Also, the price of goods and services are primarily being set by the seller or service provider.

2. A data catalog identifies all of the following, except: a. Attribute data type b. Attribute range of values c. Attribute constraints d. Attribute value for Instructor ID

Answers

Answer:

c. Attribute constraints

Explanation:

A data catalog identifies all of the following, except: "Attribute constraints"

The above statement is TRUE because a Data Catalog, a metadata management service, operates by searching for key data, understand and manage data for usefulness.

Data Catalog checks on the BigQuery datasets, tables, and views and checks both technical and business metadata by identifying the following attributes:

1. Data type

2. Range of values

3. Value for Instructor ID

In cell B13, create a formula without a function using absolute references that subtracts the values of cells B5 and
B7 from cell B6 and then multiples the result by cell B8. please help with excel!! I'm so lost

Answers

Answer:

The formula in Excel is:

=($B$6 - $B$5 - $B$7)* $B$8

Explanation:

Required

Use of absolute reference

To reference a cell using absolute reference, we have to include that $ sign. i.e. cell B5 will be written as: $B$5; B6 as $B$6; B7 as $B$7; and B8 as $B$8;

Having explained that, the formula in cell B13 is:

=($B$6 - $B$5 - $B$7)* $B$8

01 Describe all the possible component of a chart​

Answers

Answer:

Explanation:

1) Chart area: This is the area where the chart is inserted. 2) Data series: This comprises of the various series which are present in a chart i.e., the row and column of numbers present. 3) Axes: There are two axes present in a chart. ... 4)Plot area: The main area of the chart is the plot area

In cell B13, create a formula without a function using absolute references that subtracts the values of cells B5 and
B7 from cell B6 and then multiples the result by cell B8. please help with excel!! I'm so lost

Answers

Answer:

The formula in Excel is:

=($B$6 - $B$5 - $B$7)* $B$8

Explanation:

Required

Use of absolute reference

To reference a cell using absolute reference, we have to include that $ sign. i.e. cell B5 will be written as: $B$5; B6 as $B$6; B7 as $B$7; and B8 as $B$8;

Having explained that, the formula in cell B13 is:

=($B$6 - $B$5 - $B$7)* $B$8

Write a C class, Flower, that has three member variables of type string, int, and float, which respectively represent the name of the flower, its number of pedals, and price. Your class must include a constructor method that initializes each variable to an appropriate value, and your class should include functions for setting the value of each type, and getting the value of each type.

Answers

Answer and Explanation:

C is a low level language and does not have classes. The language isn't based on object oriented programming(OOP) but is actually a foundation for higher level languages that adopt OOP like c++. Using c++ programming language we can implement the class, flower, with its three variables/properties and functions/methods since it is an object oriented programming language.

Interpersonal skills during discussion with the boss

Answers

Answer:

Interpersonal skills are used to communicate with people. Such skills can be individually and in groups measured. Some interpersonal abilities include verbal communication, nonverbal communication, listening ability, ability to decide, etc. Facilitators and observers, therefore, monitor if participants have unqualified abilities.

Explanation:

— thinking about your boss's communication can be sufficient to cause anxiety and stress. You can nevertheless be confident and effective in communication with a little preparation and practice.

1. Write down all the topics you want to talk to and communicate before you talk to your boss.

2) Make sure you know what your boss wants or needs.

3) Rehearse in privacy what your boss is going to say.

4) Use qualifying words like "maybe" or "maybe" instead of absolute words, like "always," "everyone," "every time" or "never." 4) When you talk to your boss. Absolute speech can increase the defense and resistance of a person.

5) Make "I" statements, like "You" statements, like "you did not give me guidance," in the place of "You."

6) If you're emotional, avoid going to your boss. Give yourself time to refresh your thoughts and calm.

7) Talk to your boss before problems get hot and emotional involvement if possible.

8) Be a listener active. Learn what your boss says and really listen. Ask your boss to repeat or clarify an issue if you missed or were unaware.

9) Try to repeat and rephrase your boss's points to show that you listen to him and understand him or her during a convergence.

10) Practice a fine linguistic body. Look at your boss, lean in, and avoid fidgeting.

11) Be confident, not aggressive.

12) Maintain an open mind and compromise open.

13) Avoid spreading or gossiping about your boss's rumors.

14) Have good behavior.

15) Make sure you give love and recognition to your boss when it should.

16) Contact your boss regularly for a convenient relationship to develop and maintain.

In the tiger exhibit at the zoo each of 24 tigers eat 26 lb of food each day how much pounds of food do tigers consume in a week?? answer this as fast as you can!!

Answers

Answer:

182 pounds of food

Explanation:

In a non-price rationing system, consumers receive goods and services first-come, first served. Give me an example of a time when a consumer may experience this.

Answers

When someone may be giving away something for free.

Consider the following class definitions.
public class Apple

{
public void printColor()
{
System.out.print("Red");
}
}
public class GrannySmith extends Apple
{
public void printColor()
{
System.out.print("Green");
}
}
public class Jonagold extends Apple
{
// no methods defined
}

The following statement appears in a method in another class.
someApple.printColor();
Under which of the following conditions will the statement print "Red" ?
I. When someApple is an object of type Apple
II. When someApple is an object of type GrannySmith
III. When someApple is an object of type Jonagold


a. I only
b. II only
c. I and III only
d. II and III only
e. I, II, and III

Answers

i pretty sure it’s d tell me if I’m wrong

The elements in a long array of integers are roughly sorted in decreasing order. No more than 5 percent of the elements are out of order. Which of the following is the best method to use to sort the array in descending order?
I. Insertion sort.
Il. Merge Sort.
III. Heap Sort.
a. Ill only.
b. I only.
c. II and III only.
d. I and II only.
e. Il only I and.
f. Ill only.

Answers

Question Completion with Options:

a. Ill only.

b. I only.

c. II and III only.

d. I and II only.

e. Il only

f. I and Ill only.

Answer:

The best method to use to sort the array in descending order is:

e. Il only

Explanation:

The Merge Sort is similar to the Insertion Sort but, it is better with its sorting versatility.  It repeatedly breaks down a list into several sub-lists until each sub-list consists of a single element and then, merging the sub-lists in a manner that results in a sorted list.  The Merge Sort has been described as a "divide and conquer" technique because of how it splits a list into equal halves before combining them into a sorted whole.

what is function of spacebar​

Answers

Answer:

The function of a spacebar is to enter a space between words/characters when you're typing

To input a space in between characters to create legible sentences

I Previous
C Reset
2/40 (ID: 34700)
E AA
Examine the following code:
Mark For Review
def area (width, height)
area = width * height
return area
boxlarea = area (5,2)
box2area = area (6)
What needs to change in order for the height in the area function to be 12 if a height is not specified when calling the function?
0 0 0 0
Add a height variable setting height =12 inside the function
Change the box2area line to box 2area = area (6,12)
Add a height variable setting height =12 before the function is declared
Change the def to def area (width, height = 12)

Answers

Answer:

D. Change the def to def area (width, height = 12)

Explanation:

Required

Update the function to set height to 12 when height is not passed

To do this, we simply update the def function to:

def area (width, height = 12)

So:

In boxlarea = area (5,2), the area will be calculated as:

[tex]area = 5 * 2 = 10[/tex]

In box2area = area (6), where height is not passed, the area will be calculated as:

[tex]area = 6 * 12 = 72[/tex]

As a basic user of SAP Business One, which feature of the application do you like most?

Answers

Answer:

I like the software most because it is completely for the sales department. I am very satisfied with what this software provides since I work as a sales specialist.

Explanation:

As an internal auditor, I first have to check and make sure the business is going through all reports and operations and that SAP Business One has helped me a lot with reporting features. I'm a huge fan of SAP Business One. And how this software is incredibly fully integrated when an accountancy provider creates a new customer name or adds a new item in every module, and the non-duplicate data feature secures the master data from any duplicate item.

Intuitive sales quotation and sales order functions help salespeople to develop deals that they can conclude. The mobile app adds to the software's usefulness fantastically.

In general, the system has a good monetary value. I would recommend it to everyone involved in the decision-making process and it is my favorite.

Modity your program Modify the program to include two-character .com names, where the second character can be a letter or a number, e.g., a2.com. Hint: Add a second while loop nested in the outer loop, but following the first inner loop, that iterates through the numbers 0-9 2 Program to print all 2-letter domain names Run 3 Note that ord) and chr) convert between text and ASCII/ Uni 4 ord (.a.) is 97, ord('b') IS 98, and so on. chr(99) is 'c", et Running done. domain Two-letter a. com ?? . com ac.com ad. com ae.com ai. com ag.com names: 6 print'Two-letter domain names:" 8 letter1 'a' 9 letter2 10 while letter! < 'z': # Outer loop letter2a" while letter2 <- "z': # Inner loop 12 13 14 print('%s %s.com" % (letteri, letter2)) letter2chr(ord (letter2) 1) 15 letterl chr(ord(letter1) + 1) 16 17 h.com ai.com j com ak.com Feedback?

Answers

Answer:

The addition to the program is as follows:    digit = 0

   while digit <= 9:

       print('%s%d.com' % (letter1, digit))

       digit+=1

Explanation:

This initializes digit to 0

   digit = 0

This loop is repeated from 0 to 9 (inclusive)

   while digit <= 9:

This prints the domain (letter and digit)

       print('%s%d.com' % (letter1, digit))

This increases the digit by 1 for another domain

       digit+=1

See attachment for complete program

for macroscale distillations, or for microscale distillations using glassware with elastomeric connectors, compare the plot from your simple distillation with that from your fractional distillation. in which case do the changes in temperature occur more gradually

Answers

Answer:

Fractional Distillation

Explanation:

Fractional Distillation is more effective as compared to simple distillation. In simple distillation, the temperature changes more gradually as compared to the fractional distillation

design an if-then-else statement or a flowchart with a dual alternative decision structure that displays speed is normal if the speed variable is within the range of 24 to 56. if speed holds a value outside this range, display speed is normal

Answers

Answer:

The if statement is as follows:

if speed>=24 and speed <=56 then

      print "speed is normal"

else

    print "speed is abnormal"

See attachment for flowchart

Explanation:

The condition is straight forward and self-explanatory

This is executed if speed is between 24-56 (inclusive)

if speed>=24 and speed <=56 then

      print "speed is normal"

If otherwise, this is executed

else

    print "speed is abnormal"

Overview In this assignment, you will gain more practice with designing a program. Specifically, you will create pseudocode for a higher/lower game. This will give you practice designing a more complex program and allow you to see more of the benefits that designing before coding can offer. The higher/lower game will combine different programming constructs that you have been learning about, such as input and output, decision branching, and a loop. IT 140 Higher/Lower Game Sample Output Overview Maria has asked you to create a program that prompts the user to enter the lower bound and the upper hound. You have decided to write pseudocode to design the program before actually developing the code. When run, the program should ask the user to guess a number. If the number guessed is lower than the random number, the program should print out a message like "Nope, too low." if the number guessed is higher than the random number, print out a message like "Nope, too high." If the number guessed is the same as the random number, print out a message like "You got it!" Higher/Lower Game Description Your friend Maria has come to you and said that she has been playing the higher/lower game with her three-year-old daughter Bella. Maria tells Bella that she is thinking of a number between 1 and 10, and then Bella tries to guess the number. When Bella guesses a number, Maria tells her whether the number she is thinking of is higher or lower or if Bella guessed it. The game continues until Bella guesses the right number. As much as Maria likes playing the game with Bella, Bella is very excited to play the game all the time, Maria thought it would be great if you could create a program that allows Bella to play the game as much as she wants. Note: The output messages you include in your pseudocode may differ slightly from these samples. Sample Output Below is one sample output of the program, with the user input demonstrated by bold font. Prompt For this assignment, you will be designing pseudocode for a higher/lower game program. The higher/lower game program uses similar constructs to the game you will design and develop in Projects One and TWO. Welcome to the higher/lower game, Bella! Enter the lower bound: 10 Enter the upper bound: 30 Great, now guess a number between 10 and 30: 20 Nope, too low Guess another number: 25 Nope, too high Guess another number: 23 You got it! Below is another sample output of your program, with the user input demonstrated by bold font 1. Review the Higher/Lower Game Sample Output for more detailed examples of this game. As you read, consider the following questions: What are the different steps needed in this program? How can you break them down in a way that a computer can understand? What information would you need from the user at each point (inputs)? What information would you output to the user at each point? When might it be a good idea to use 'F' and "IF ELSE' statements? When might it be a good idea to use loop? 2. Create pseudocode that logically outlines each step of the game program so that it meets the following functionality: Prompts the user to input the lower bound and upper bound. Include input validation to ensure that the lower bound is less than the upper bound. - Generates a random number between the lower and upper bounds Prompts the user to input a guess between the lower and upper bounds. Include input validation to ensure that the user only enters values between the lower and upper bound. Prints an output statement based on the puessed number. Be sure to account for each of the following situations through the use of decision branching . What should the computer output if the user guesses a number that is too low? . What should the computer output if the user guesses a number that is too high? - What should the computer output if the user guesses the right number? Loops so that the game continues prompting the user for a new number until the user guesses the correct number. Welcome to the higher/lower game, Bella! Enter the lower bound: 10 Enter the upper bound: 5 The lower bound must be less than the upper bound. Enter the lower bound: 10 Enter the upper bound: 20 Great, now guess a number between 10 and 20: 25 Nope, too high Guess another number: 15 Nope, too low. Guess another number: 17 You got it! Sutrnil your completed pseudocode as a Word document of approximately 1 to 2 pages in length.

Answers

Answer:

Pseudocode

lower = upper = 0

while lower > upper

   input lower

   input upper

   if lower > upper

       print "Lower bound is greater than upper bound"

randNum = generate_a_random_number

print "Guess a number between",lower,"and",upper

input num

while num <> randNum

   if num > randNum:

       print "Nope, too high"

   else:

       print "Nope, too low"

   input num

print "Great; you got it!"

Program in Python

import random

lower = upper = 0

while True:

   lower = int(input("Lower Bound: "))

   upper = int(input("Upper Bound: "))

   if lower < upper:

       break

   else:

       print("Lower bound is greater than upper bound")

randNum = random.randint(lower, upper)

print("Great; now guess a number between",lower,"and",upper)

num = int(input("Take a guess: "))

while num != randNum:

   if num > randNum:

       print("Nope, too high")

   else:

       print("Nope, too low")

   num = int(input("Take another guess: "))

print("Great; you got it!")

Explanation:

Required

Write a pseudocode and a program to design a higher/lower game

See answer section for the pseudocode and the program (written in Python)

The pseudocode and the program follow the same pattern; so, I will only explain the program.

See attachment for complete program file where comments are used to explain each line.

Express 0.000357 in standard form ​

Answers

Answer:

0.000357 this is standard form

hope this helps

have a good day :)

Explanation:

0.0003+0.00005+0.000007= expanded form

In C complete the following:

void printValues ( unsigned char *ptr, int count) // count is no of cells
{
print all values pointed by ptr. //complete this part
}
int main ( )
{

unsigned char data[ ] = { 9, 8, 7, 5, 3, 2, 1} ;
call the printValues function passing the array data //complete this part
}

Answers

Answer:

#include <stdio.h>

void printValues ( unsigned char *ptr, int count) // count is no of cells

{

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

   printf("%d ", ptr[i]);

 }

}

int main ( )

{

 unsigned char data[ ] = { 9, 8, 7, 5, 3, 2, 1} ;

 printValues( data, sizeof(data)/sizeof(data[0]) );

}

Explanation:

Remember that the sizeof() mechanism fails if a pointer to the data is passed to a function. That's why the count variable is needed in the first place.

Given the following: int funcOne(int n) { n *= 2; return n; } int funcTwo(int &n) { n *= 10; return n; } What will the following code output? int n = 30; n = funcOne(funcTwo(n)); cout << "num1 = " << n << endl; Group of answer choices Error num1 = 60 num 1 = 30 num1 = 600 num1 = 300

Answers

Answer:

num1 = 600

Explanation:

Given

The attached code snippet

Required

The output of n = funcOne(funcTwo(n));  when n = 30

The inner function is first executed, i.e.

funcTwo(n)

When n = 30, we have:

funcTwo(30)

This returns the product of n and 10 i.e. 30 * 10 = 300

So:

funcTwo(30) = 300

n = funcOne(funcTwo(n)); becomes: n = funcOne(300);

This passes 300 to funcOne; So, we have:

n = funcOne(300);

This returns the product of n and 2 i.e. 300 * 2 = 600

Hence, the output is 600

lolhejeksoxijxkskskxi

Answers

loobovuxuvoyuvoboh

Explanation:

onovyctvkhehehe

Answer:

jfhwvsudlanwisox

Explanation:

ummmmmm?

Given that n refers to a positive int use a while loop to compute the sum of the cubes of the first n counting numbers, and associate this value with total. Use no variables other than n, k, and total in python

Answers

Answer:

The program in Python is as follows:

n = int(input("n:"))

total = 0

for k in range(1,n+1):

   total+=k**3

print(total)

Explanation:

This gets input for n

n = int(input("n:"))

This initializes total to 0

total = 0

This iterates from 1 to n

for k in range(1,n+1):

This adds up the cube of each digit

   total+=k**3

This prints the calculated total

print(total)

Kirk wants to practice the timing of his presentation, so he decides to record a rehearsal to review it and make any needed changes. What steps should he take? Choose the correct answers from the drop-down menus.

Answers

Answer:

1. Slide Show

2. Record from Beginning

3. Red Button

4. Top Left

Explanation:

Just did the question and got them all right.

Answer:

✔ Slide Show

✔ Record from Current Slide

✔ red button

✔ top left

Explanation:

hope this helps :)

What happens to a message when it is deleted?

It goes to a deleted items area.
It goes to a restored items area.
It is removed permanently.
It is archived with older messages.ppens to a message when it is deleted?

Answers

Answer:

it goes to the deleted items area

Explanation:

but it also depends on where you deleted it on

Answer: The answer would A

outline 3 computer system problem that could harm people and propose the way avoid the problem​

Answers

Answer:

outline 3 computer system problem that could harm people and propose the way avoid the problem are :_

Computer Won't Start. A computer that suddenly shuts off or has difficulty starting up could have a failing power supply. Abnormally Functioning Operating System or Software. Slow Internet.

Someone help in test ASAP
1. What is your biggest concern about cybercrime and why?
(please answer in at least 3 complete sentences)

Answers

Answer:

While it may seem like we are already overwhelmed by the amount of cyberattacks occurring daily, this will not slow down in 2018. In fact, with a recent increase in cybercriminal tools and a lower threshold of knowledge required to carry out attacks, the pool of cybercriminals will only increase. This growth is a likely response to news media and pop culture publicizing the profitability and success that cybercrime has become. Ransomware alone was a $1 billion industry last year. Joining the world of cybercrime is no longer taboo, as the stigma of these activities diminishes in parts of the world. To many, it’s simply a “good” business decision. At the same time, those already established as “top-players” in cybercrime will increase their aggressive defense of their criminal territories, areas of operations and revenue streams. We may actually begin to see multinational cybercrime businesses undertake merger and acquisition strategies and real-world violence to further secure and grow their revenue pipeline.

Explanation:

When computer boots which I pont program starts first? O Operating System O Metaphor System O Basic System O Computer System​

Answers

The answer is Operating system

Sensors send out ............ signals​

Answers

Answer:

mhmm................... ok

You're expecting visitors who will be demanding Mamet access Before they arrive, you can activate a Guest network that has its own ________ and a different password from the one used with the network where you store all your files.

Answers

functions

is the correct answer of your question ^_^

Other Questions
Which line is perpendicular to a line that has a slope of 1 half Find the sum of the numbers. Express your answer in scientific notation.(6.94 x 10-7)+(2.7x10-)O 7.21x 10-O 9.64 x 10-O 7.21x10-2O 9.64 x 10-7 help me help help me please The man brought three buses for 9694820. One bus cost Rs352750another us cost Rs 3029870. Find the cost of third bus. A. 6B. 2C. 0.4D. -6 What is the domain of the function on the graph What is another name for North East trade winds? 35_5634help plsI need it Which is an internal factor that may influence ones decision to have sex? Evaluate given function. Pleas helpp What interest rate is implicit in a $1,000 par value zero-coupon bond that matures in 7 years if the current price is $500. Please specify your answer in decimal terms and round your answer to the nearest thousandth (e.g., enter 12.3 percent as 0.123). How much growth or decay is 50(1.05)^t find the volume of the prism please What are 15-20 negative effects and general facts about deforestation. (bullets) Enter the coordinates of the point on the unit circle at the given angle. 135 (-VII, VI Enter 6 of 10?What fraction of an hour is 51 minutes?Give your answer in its simplest form. The scale on this drawing is 2 in : 5 ft. Based on this, how many inches long and wide will the kitchen be? When an item is gray that means...A. The item only works with another applicationB. The item has been selectedC. The item is unavailableD. The item has been deletedA,B,C,orD, can anyone please help? Which of the following is an example of non Mendelian pattern of inheritance Pinetops Resorts, an American company, sells the rights to other hospitality companies globally to open resorts with the Pinetops name for a fee and a share of the profit, in return for using Pinetops' brand name and a package of materials and services. Pinetops is engaged in Group of answer choices importing. countertrading. exporting. franchising. offshoring.