Write a program which will enter information relating to a speeding violation and then compute the amount of the speeding ticket. The program will need to enter the posted speed limit, actual speed the car was going, and whether or not the car was in a school zone and the date of the violation. Additionally, you will collect information about the driver (see output for specifics). The way speeding tickets are computed differs from city to city. For this assignment, we will use these rules, which need to be applied in this order:

Answers

Answer 1

Answer:

In Java:

import java.util.*;

public class Main{

public static void main(String[] args) {

 Scanner input = new Scanner(System.in);

 float speedlimit, actualspeed;

 String ddate;

 int schoolzone;

 System.out.print("Speed Limit: ");

 speedlimit = input.nextFloat();

 System.out.print("Actual Speed: ");

 actualspeed = input.nextFloat();

 System.out.print("Date: ");

 ddate = input.nextLine();

 System.out.print("School Zone (1-Yes): ");

 schoolzone = input.nextInt();

 float ticket = 75;

 ticket += 6 * (actualspeed - speedlimit);

 

 if(actualspeed - speedlimit > 30){

     ticket+=160;

 }

 if(schoolzone == 1){

     ticket*=2;

 }  

 System.out.print("Date: "+ddate);

 System.out.print("Speed Limit: "+speedlimit);

 System.out.print("Actual Speed: "+actualspeed);

 System.out.print("Ticket: "+ticket);

}

}

Explanation:

See attachment for complete program requirements

This declares speedlimit and actualspeed as floats

float speedlimit, actualspeed;

This declares ddate as string

 String ddate;

This declares schoolzone as integer

 int schoolzone;

This prompts the user for speed limit

 System.out.print("Speed Limit: ");

This gets the speed limit

 speedlimit = input.nextFloat();

This prompts the user for actual speed

 System.out.print("Actual Speed: ");

This gets the actual speed

 actualspeed = input.nextFloat();

This prompts the user for date

 System.out.print("Date: ");

This gets the date

 ddate = input.nextLine();

This prompts the user for school zone (1 means Yes, other inputs means No)

 System.out.print("School Zone (1-Yes): ");

This gets the input for schoolzone

schoolzone = input.nextInt();

This initializes ticket to $75

 float ticket = 75;

This calculates the additional cost based on difference between speed limits and the actual speed

 ticket += 6 * (actualspeed - speedlimit);

If the difference between the speeds is greater than 30, this adds 160 to the ticket  

 if(actualspeed - speedlimit > 30){

     ticket+=160;

 }

If it is in a school zone, this doubles the ticket

 if(schoolzone == 1){

     ticket*=2;

 }  

The following print the ticket information

 System.out.print("Date: "+ddate);

 System.out.print("Speed Limit: "+speedlimit);

 System.out.print("Actual Speed: "+actualspeed);

 System.out.print("Ticket: "+ticket);

Write A Program Which Will Enter Information Relating To A Speeding Violation And Then Compute The Amount

Related Questions

The ABC box company makes square puzzle cubes that measure 4 inches along each edge. They shipped the cubes in a box 8 in x 12 in x 16 in. How many cubes can they ship in the box?

Answers

Answer: They can ship 32 puzzle cubes in the box.

Explanation: So the volume of each puzzle cubes = side³

=(4)³ cubic inches.

Then the volume of the box is= (8×12×16) cubic inches.

(8×12×16)/4^3= 32

Write a program with the total change amount as an integer input, and output the change using the fewest coins, one coin type per line. The coin types are Dollars, Quarters, Dimes, Nickels, and Pennies. Use singular and plural coin names as appropriate, like 1 Penny vs. 2 Pennies. The input should be an integer, with the unit as "cents". For example, the input of 126 refers to 126 cents. 1 Dollar = 100 cents 1 Quarter = 25 cents 1 Dime = 10 cents 1 Nickel = 5 cents 1 Penny = 1 cent Ex: If the input is:

Answers

Answer:

In Python:

cents = int(input("Cents: "))

dollars = int(cents/100)

quarters = int((cents - 100*dollars)/25)

dimes = int((cents - 100*dollars- 25*quarters)/10)

nickels = int((cents - 100*dollars- 25*quarters-10*dimes)/5)

pennies = cents - 100*dollars- 25*quarters-10*dimes-5*nickels

if not(dollars == 0):

   if dollars > 1:

       print(str(dollars)+" dollars")

   else:

       print(str(dollars)+" dollar")

if not(quarters == 0):

   if quarters > 1:

       print(str(quarters)+" quarters")

   else:

       print(str(quarters)+" quarter")

if not(dimes == 0):

   if dimes > 1:

       print(str(dimes)+" dimes")

   else:

       print(str(dimes)+" dime")

if not(nickels == 0):

   if nickels > 1:

       print(str(nickels)+" nickels")

   else:

       print(str(nickels)+" nickel")

if not(pennies == 0):

   if pennies > 1:

       print(str(pennies)+" pennies")

   else:

       print(str(pennies)+" penny")

   

Explanation:

A prompt to input amount in cents

cents = int(input("Cents: "))

Convert cents to dollars

dollars = int(cents/100)

Convert the remaining cents to quarters

quarters = int((cents - 100*dollars)/25)

Convert the remaining cents to dimes

dimes = int((cents - 100*dollars- 25*quarters)/10)

Convert the remaining cents to nickels

nickels = int((cents - 100*dollars- 25*quarters-10*dimes)/5)

Convert the remaining cents to pennies

pennies = cents - 100*dollars- 25*quarters-10*dimes-5*nickels

This checks if dollars is not 0

if not(dollars == 0):

If greater than 1, it prints dollars (plural)

   if dollars > 1:

       print(str(dollars)+" dollars")

Otherwise, prints dollar (singular)

   else:

       print(str(dollars)+" dollar")

This checks if quarters is not 0

if not(quarters == 0):

If greater than 1, it prints quarters (plural)

   if quarters > 1:

       print(str(quarters)+" quarters")

Otherwise, prints quarter (singular)

   else:

       print(str(quarters)+" quarter")

This checks if dimes is not 0

if not(dimes == 0):

If greater than 1, it prints dimes (plural)

   if dimes > 1:

       print(str(dimes)+" dimes")

Otherwise, prints dime (singular)

   else:

       print(str(dimes)+" dime")

This checks if nickels is not 0

if not(nickels == 0):

If greater than 1, it prints nickels (plural)

   if nickels > 1:

       print(str(nickels)+" nickels")

Otherwise, prints nickel (singular)

   else:

       print(str(nickels)+" nickel")

This checks if pennies is not 0

if not(pennies == 0):

If greater than 1, it prints pennies (plural)

   if pennies > 1:

       print(str(pennies)+" pennies")

Otherwise, prints penny (singular)

   else:

       print(str(pennies)+" penny")

   

A study found that 9% of dog owners brush their dog's teeth. Of 578 dog owners, about how many would be expected to brush their dog's teeth?

Answers

Answer:

do 578/9 to get a awnser then multiply it by 100 for a awnser then devide it by 578

Explanation:

there you go

answer : 526
1% = 5.78
9% = 5.78 x 9 which is 52
578-52 = 526

Prompt the user to enter the time of the day. The user should enter d for daytime and n for nighttime. Configure a boolean variable to store if it is daytime (true) or nighttime (false). Use the boolean variable to store if it is daytime or nighttime and print if the temperature is ideal if it needs to be raised if it needs to be lowered, and by how much.

Answers

Answer:

Check the photos for the answers

Explanation:

On Earth, the pattern of daytime and nighttime repeat every day. This phenomenon takes place because of the rotation of the earth on its own axis. The rotation of the earth causes day and night on earth. The length of day and night varies on the seasons and it also varies according to the part of the earth.

What are rotation and the revolution of the earth?

The rotation of the earth is one of the major movements of the earth which causes the day and night over the by the movement of the earth on its own axis. The rotation of the earth takes place from west to east direction.

Revolution is also one of the movements of the earth where the earth revolves around the sun and causes changes in season and also the duration of day and night due to its tilt over its axis.

Therefore, On Earth, the pattern of daytime and nighttime repeat every day. This phenomenon takes place because of the rotation of the earth on its own axis. The rotation of the earth causes day and night on earth. The length of day and night varies on the seasons and it also varies according to the part of the earth.

Learn more about the “revolution of the earth” here:

brainly.com/question/17731832

#SPJ2

Find an overall minimum two-level circuit (corresponding to sum of products expressions) using multiple AND and one multi-input OR gate per function for the following set of functions. Show a K-map for each function, and draw the final two-level circuit. You will have to share terms between F and G to find the minimum circuit.
F(a, b, c, d) = m(0, 1, 2, 3, 6, 7, 8, 10, 12, 13)
G(a, b, c, d) = {m(0, 1, 2, 3, 8, 9, 10, 13)

Answers

Answer:

si la pusiera en español te pudiera responer

Question 1.
Write a function called ReadTextFile that accepts a string path to the provided file as an
argument, opens the file, splits the file on spaces, and then returns a list of those strings.
• Arguments: String - a path to the puppy.txt file
• Return: A list of strings

Answers

#python code

def ReadTextFile(string):

with open(string, "r", encoding="utf-8") as file:

return file.read().split(" ")

print(ReadTextFile("puppy.txt"))

cmd |> ['text', 'text']

By the way, you can look into the Russian community "brainly", I published a lot of similar code there.

znanija.com/app/profile/21571307

Do not use the scanner class or any other user input request. You application should be self-contained and run without user input.

Assignment Objectives

Practice on implementing inheritance in Java

FootballPlayer will extend a new class, Person

Overriding methods

toString( ) (Links to an external site.)Links to an external site. which is a method from the Object class, will be implemented in OffensiveLine, FootballPlayer, Person and Height

Keep working with more complex classes

in the same way that FootballPlayer had a class as an attribute (Height height), OffensiveLine will have FootballPlayer as an attribute

Deliverables

A zipped Java project according to the How to submit Labs and Assignments guide.

O.O. Requirements (these items will be part of your grade)

One class, one file. Don't create multiple classes in the same .java file

Don't use static variables and methods

Encapsulation: make sure you protect your class variables and provide access to them through get and set methods

all the classes are required to have a constructor that receives all the attributes as parameters and update the attributes accordingly

Follow Horstmann's Java Language Coding GuidelinesLinks to an external site.

Organized in packages (MVC - Model - View Controller)

Contents

Person int number app Creates a Model object * String name Height * String position Height height int feet int inches int weight Model . String hometown . String highSchool .String toString( ) Creates three FootballPlayer objects Creates an OffensiveLine object using the three FootballPlayer objects Displays OffensiveLine information Displays OffensiveLine average weight . String toString() extends FootballPlayer * String position . String toString() int number OffensiveLine .FootballPlayer center .FootballPlayer offensiveGuard .FootballPlayer offensiveTackle . String toString()

Create a Netbeans project (or keep developing from your previous lab) with

App.java

Model

Model.java

FootballPlayer.java

Height.java

Person.java

OffensiveLine.java

Functionality

The application App creates a Model object

The Model class

creates 3 FootballPlayer objects

creates an OffensiveLine object using the 3 FootballPlayer objects

displays information about the OffensiveLine object and its 3 players

it is a requirement that this should be done using the toString( ) method in OffensiveLine, which will use toString( ) in FootballPlayer

displays the average weight of the OffensiveLine

this will be done using the averageWeight in the OffensiveLine

The classes

App

it has the main method which is the method that Java looks for and runs to start any application

it creates an object (an instance) of the Model class

Model

this is the class where all the action is going to happen

it creates three football players

it creates an OffensiveLine object using the three players

displays information about the OffensiveLine

this has to be done using the OffensiveLine object

this is really information about its 3 players

the format is free as long as it contains all the information about each of the 3 players

displays the average weight of the OffensiveLine

this has to be done using the OffensiveLine object

this has to call the averageWeight method in OffensiveLine

Personhas the following attributes

String name;

Height height;

int weight;

String hometown;

String highSchool;

and a method

String toString( )

toString( ) overrides the superclass Object toString( ) method

toString( ) returns information about this class attributes as a String

encapsulation

if you want other classes in the same package yo have access to the attributes, you need to make them protected instead of private.

see more here.

FootballPlayerhas the following attributes

int number;

String position;

and a method

String toString( )

toString( ) overrides the superclass Object toString( ) method

toString( ) returns information about this class attributes as a String

Height

it is a class (or type) which is used in Person defining the type of the attribute height

it has two attributes

int feet;

int inches

and a method

String toString( )

toString( ) overrides the superclass Object toString( ) method

toString( ) returns information about this class attributes as a String

it returns a formatted string with feet and inches

for instance: 5'2"

OffensiveLinehas the following attributes

FootballPlayer center;

FootballPlayer offensiveGuard;

FootballPlayer offensiveTackle;

They might also be stored in an ArrayList

and two methodsString toString( )

toString( ) overrides the superclass Object toString( ) method

toString( ) returns information about the 3 players attributes as a String

int averageWeight()

calculates and returns the average weigh of the OffensiveLine.

it is calculated based on the weight of each of its players

Answers

يتريرينييننيخيوويميمسكيك

Robert has opened his own pet supply store so he can help himself to treats and toys whenever he wishes. In order to encourage customers to shop at his store more, he is implementing a customer loyalty program. For every $100 spent, the customer earns a 10% discount on a future purchase. If the customer has earned a discount, that discount will be automatically applied whenever they make a purchase. Only one discount can be applied per purchase. Implement a class Customer that represents a customer in Robert's store.

Answers

Answer:

Explanation:

The following code is written in Python and creates a class called customer which holds the customers name, purchase history amount, and current total. It also has 3 functions, a constructor that takes the customer name as a parameter. The add_to_cart function which increases the amount of the current total. And finally the checkout function which applies the available coupon and resets the variables if needed, as well as prints the info the to screen.

class Customer():

   customer = ""

   purchased_history = 0

   current_total = 0

   def __init__(self, name):

       self.customer = name

   def add_to_cart(self, amount):

       self.current_total += amount

   def checkout(self):

       if self.purchased_history >= 100:

           self.current_total *= 0.90

           self.purchased_history = 0

       else:

           self.purchased_history += self.current_total

       print(self.customer + " current total is: $" + str(self.current_total))

       self.current_total = 0

Use the drop-down menus to explain what happens when a manager assigns a task in Outlook.
1. Managers can assign tasks to other users within_______ .
2. Once the task is assigned, Outlook__________ the assignment to that user.
3. The user must_______ the task to have it placed in their_________ .

Answers

Answer:

1. an organization

2. emails

3. accept

4. to-do list

Explanation: edge

Answer:Use the drop-down menus to complete statements about assigning tasks in Outlook.

A Task Request form is an interactive way to assign tasks to

✔ Outlook users

and report updates on the status of an assigned task.

An assigned task sends

✔ an email

request for the user to accept or decline and sends

✔ an automated response message

to the assigner.

Explanation:

whats this oh _____
what is it
A) jane
B) juan.
C)juan
D) horse

Answers

Answer:

juan duhhhhh hehehe

Explanation:

A company database needs to store information about employees (identified by ssn, with salary and phone as attributes), departments (identified by dno, with dname and budget as attributes), and children of employees (with name and age as attributes). Employees work in departments; each department is managed by an employee; a child must be identified uniquely by name when the parent (who is an employee; assume that only one parent works for the company) is known. We are not interested in information about a child once the parent leaves the company.Draw an ER diagram that captures this information.

Answers

I’m confused what are you asking

Please help ASAP!
A career can include classes, experiences, jobs, and:

A. fields.

B. training.

C. regions.

D. laws.

Answers

b. training is the correct answer

Given a HashMap pre-filled with student names as keys and grades as values, complete main() by reading in the name of a student, outputting their original grade, and then reading in and outputting their new grade.Ex: If the input is:Quincy Wraight73.1the output is:Quincy Wraight's original grade: 65.4Quincy Wraight's new grade: 73.1GIVEN TEMPLATES StudentGrades.javaimport java.util.Scanner;import java.util.HashMap;public class StudentGrades {public static void main (String[] args) {Scanner scnr = new Scanner(System.in);String studentName;double studentGrade; HashMap studentGrades = new HashMap(); // Students's grades (pre-entered)studentGrades.put("Harry Rawlins", 84.3);studentGrades.put("Stephanie Kong", 91.0);studentGrades.put("Shailen Tennyson", 78.6);studentGrades.put("Quincy Wraight", 65.4);studentGrades.put("Janine Antinori", 98.2); // TODO: Read in new grade for a student, output initial// grade, replace with new grade in HashMap,// output new grade }}

Answers

wait I’m confused what are you asking?

Answer:

import java.util.Scanner;

import java.util.HashMap;

public class StudentGrades {

     

  public static void main (String[] args) {

     Scanner scnr = new Scanner(System.in);

     String studentName;

     double studentGrade;

     

     HashMap<String, Double> studentGrades = new HashMap<String, Double>();

     

     // Students's grades (pre-entered)

     studentGrades.put("Harry Rawlins", 84.3);

     studentGrades.put("Stephanie Kong", 91.0);

     studentGrades.put("Shailen Tennyson", 78.6);

     studentGrades.put("Quincy Wraight", 65.4);

     studentGrades.put("Janine Antinori", 98.2);

     

     // TODO: Read in new grade for a student, output initial

     //       grade, replace with new grade in HashMap,

     //       output new grade

     studentName = scnr.nextLine();

     studentGrade = scnr.nextDouble();

     System.out.println(studentName + "'s original grade: " + studentGrades.get(studentName));

     

     for (int i = 0; i < studentGrades.size(); i++) {

        studentGrades.put(studentName, studentGrade);

     }

     

     System.out.println(studentName + "'s new grade: " + studentGrades.get(studentName));

     

  }

}

Explanation:

The program first reads in the entire name (scnr.nextLine()) and the next double it sees (scnr.nextDouble()). In the HashMap, it is formatted as (key, value). studentName is the key, while studentGrade is the value. To get the name when printed, use studentName. To get the grade, use studentGrades.get(studentName).

After, use a For loop that replaces the studentGrade with the scanned Double by using studentName as a key. Use the same print statement format but with different wording to finally print the new grade. Got a 10/10 on ZyBooks, if you have any questions please ask!

what would be the result of running these two lines of code? symptoms = ["cough" "fever", "sore throat", "aches"] print (symtoms[3])

Answers

"aches"

an array starts at 0 so spot the 3 is spot 4

[1,2,3,4]

arr[3] = 4 in this case

You plan on using cost based pricing. The cost of your product is 10, and you are planning a 30% mark up. What should the price of your product be?

Answers

Answer:

Selling price= $13

Explanation:

Giving the following information:

The cost of your product is $10, and you are planning a 30% mark-up.

The price of the product is calculated by adding to the manufacturing costs a predetermined percentage.

Selling price= 10*1.3

Selling price= $13

Hope this helps :)

What’s the difference packet switching and message switching??

Answers

Im not sure but the person above is right x :)))


Explanation dudjdb

Define the _make method, which takes one iterable argument (and no self argument: the purpose of _make is to make a new object; see how it is called below); it returns a new object whose fields (in the order they were specified) are bound to the values in the interable (in that same order). For example, if we called Point._make((0,1)) the result returned is a new Point object whose x attribute is bound to 0 and whose y attribute is bound to 1.

Answers

This picture will show you the answer and guide the way to victory

We can actually see that the _make method is known to be a function that creates named tuple type.

What is _make method?

_make method is seen in Python programming which is used to create a named tuple type instantly. It can be used for conversion of objects e.gtuple, list, etc. to named tuple.

Thus, we see the definition of _make method.

Learn more about Python on https://brainly.com/question/26497128

#SPJ2

do you know that the 80s was not one of Disney's best decades? what was a reason?

Answers

Answer:

They produced a movie called the black couldren that nearly killed them.

g Write a program that reads a list of words, and a character. The output of the program is every word in the list of words that contains the character at least once. For coding simplicity, follow each output word by a comma, even the last one. Assume at least one word in the list will contain the given character. The number of input words is always less than and equal to 10. If the user enters more than 10 words before the character, the program will output Too many words and exit.

Answers

Answer:

Here you go, alter this as you see fit :)

Explanation:

array = []

cnt = 0

while cnt < 11:

   x = input("Enter a word: ")

   array.append(x)

   cnt += 1

   y = input("Add another word?(Y/n):  ")

   if y.lower() == "n":

       break

letter = input("\nChoose a letter: ")

if len(letter) != 1:

   print("Error: too many characters")

   quit()

for n in range(len(array)):

   if letter.lower() in array[n].lower():

       print(array[n], end= ",")

List the three ways Python can handle colors.

Answers

Answer:

Try using coloramapackage in python for text colour & has cross platform support across Windows & Linux. It can also be used in conjunction with existing ANSI libraries like Termcolor. This approach would be better than manually printing ASCII sequences for text colouring on terminals. from colorama import Fore, Back, Style

Explanation:

An entity can be said to have __ when it can be wronged or has feelings of some sort
PLEASE HELP!!!

Answers

moral status because moral status is your feelings

A(an)_______is built-in preset calculation.
formula
function
equation
AutoSum​

Answers

Answer:

Hello! The answer to your question is function I had the same question and got it right!

Explanation:

Hope this helped:)

What is the output of the following code snippet if the variable named cost contains 100? if cost < 70 or cost > 150 : discount = 0.8 * cost else : discount = cost print("Your cost is ", discount)

Answers

Answer:

The output is: Your cost is  100

Explanation:

Given

The above code snippet

and

[tex]cost = 100[/tex]

Required

Determine the output of the code

if cost < 70 or cost > 150

The above condition checks if cost is less than 70 or cost is greater than 150

This condition is false because 100 is neither less than 70 nor is it greater than 150

So, the else statement will be executed.

discount = cost

Which means

discount = 100

So, the print instruction will print: Your cost is  100

String[][] arr = {{"Hello,", "Hi,", "Hey,"}, {"it's", "it is", "it really is"}, {"nice", "great", "a pleasure"},

{"to", "to get to", "to finally"}, {"meet", "see", "catch up with"},
{"you", "you again", "you all"}};
for (int j = 0; j < arr.length; j++) {
for (int k = 0; k < arr[0].length; k++) {
if (k == 1) { System.out.print(arr[j][k] + " ");
}
}
}
What, if anything, is printed when the code segment is executed?

Answers

Answer:

Explanation:

The code that will be printed would be the following...

Hi, it is great to get to see you again

This is mainly due to the argument (k==1), this argument is basically stating that it will run the code to print out the value of second element in each array within the arr array. Therefore, it printed out the second element within each sub array to get the above sentence.

When the code segment is executed, the output is "Hi, it is great to get to see you again "

In the code segment, we have the following loop statements

for (int j = 0; j < arr.length; j++) {for (int k = 0; k < arr[0].length; k++) {

The first loop iterates through all elements in the array

The second loop also iterates through all the elements of the array.

However, the if statement ensures that only the elements in index 1 are printed, followed by a space

The elements at index 1 are:

"Hi," "it" "is" "great" "to" "get" "to" "see" "you" "again"

Hence, the output of the code segments is "Hi, it is great to get to see you again "

Read more about loops and conditional statements at:

https://brainly.com/question/26098908

Declare an array of 10 integers. Initialize the array with the following values: 000 101 202 303 404 505 606 707 808 909 Write a loop to search the array for a given number and tell the user if it was found. Do NOT write the entire program. Example: User input is 404 output is "found". User input is 246 output is "not found"

Answers

Answer:

In C++:

#include <iostream>

using namespace std;

int main(){

   int myArray[10] = {000, 101, 202, 303, 404, 505, 606, 707, 808, 909};

   int num;

   bool found = false;

   cout<<"Search for: ";

   cin>>num;

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

       if(myArray[i]==num){

           found = true;

           break;

       }

   }

   if(found){ cout<<"found"; }

   else { cout<<"not found"; }

   return 0;

}

Explanation:

This line initializes the array

int myArray[10] = {000, 101, 202, 303, 404, 505, 606, 707, 808, 909};

This line declares num as integer

   int num;

This initializes boolean variable found to false

   bool found = false;

This prompts user for input

   cout<<"Search for: ";

This gets user input

   cin>>num;

This iterates through the array

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

This checks if num is present in the array

       if(myArray[i]==num){

If yes, found is updated to true

           found = true;

And the loop is exited

           break;

       }

   }

If found is true, print "found"

   if(found){ cout<<"found"; }

If found is false, print "not found"

   else { cout<<"not found"; }

Which code segment results in "true" being returned if a number is even? Replace "MISSING CONDITION" with the correct code segment.

Answer Choices:
A. num % 2 == 0;
B. num % 0 == 2;
C. num % 1 == 0;
D. num % 1 == 2;

Answers

Answer:

num % 2 == 0

Explanation:

Functions are collection of code segments that are executed when called or evoked

The correct statement that can replace "MISSING CONDITION" is (a) num % 2 == 0

From the question, we understand that the condition is to return true if the number is an even number.

To do this, we simply take the modulus of the number and 2.

If the result of the modulus is 0, then the number is evenIf otherwise, then the number is odd

Hence, the correct statement that can replace "MISSING CONDITION" is (a) num % 2 == 0

Read more about missing code segments at:

https://brainly.com/question/18430675

Does modern technology make our lives better,worse ,or doesn’t really make a change in your life ?Whats your opinion ?

Answers

It makes life better. Easy to communicate, everything you need is at your disposal, from whether forecasts to a calculator on your phone

Which of the following is the best way to keep up with trends in your industry?
Read the newspaper
Watch the news
Conduct scholarly research
Use social media

Answers

Answer:

Use social media

Explanation:

Social media has significantly helped to bridge gaps in the communication as end users are able to send and receive messages in real-time without any form of delay. Also, social media platforms facilitate the connection of friends, families, co-workers and brands with one another by sharing memories, innovations, new technologies, knowledge and ideas without being physically present in the same location through the use of social network services such as Face-book, Insta-gram, Twitter, LinkedIn, Zoom, Sk-ype, Hangout, You-Tube, etc.

Hence, the best way to keep up with trends in your industry is to through the use of social media because you get to see and learn from trending ideas, methods of production, technologies, and innovations that are being posted from time to time.

Your task is to write and test a function which takes three arguments (a year, a month, and a day of the month) and returns the corresponding day of the year (for example the 225th day of the year), or returns None if any of the arguments is invalid.

Hint: You need to find the number of days in every month, including February in leap years.

Answers

Answer:

This is in python

Explanation:

Alter my code if you need anything changed. (You may need to create a new function to add a day to February if necessary)

months = [31,28,31,30,31,30,31,31,30,31,30,31]

monthNames = ['january','february','march','april','may','june',

            'july','august','september','october','november','december']

array = []

def test(y,m,d): #Does not account for leap-year. Make a new function that adds a day to february and call it before this one

   if m.lower() not in monthNames or y < 1 or d > 31:

       if m.lower() == "april" or m.lower() == "june" or m.lower() == "september" or m.lower() == "november" and d > 30:

           return None

       elif m.lower() == "february" and d > months[1]:

           return None

       return None

   num = monthNames.index(m.lower()) #m should be the inputted month

   months[num] = d

   date = months[num]

   for n in range(num):

       array.append(months[n])

   tempTotal = sum(array)

   

   return tempTotal + date

x = int(input("Enter year: "))

y = input("Enter month: ")

z = int(input("Enter day: "))

print(f"{y.capitalize()} {z} is day {test(x,y,z)} in {x}")

Graphics consisting of text, that can be shaped and stretched in a variety of ways, are called
a.WordArt
b.SmartArt
c.Text Boxes
d. Clip Art​

Answers

Answer:

Word Art

Explanation:

Given your answer choices Word Art is the only one consisting of text that can be shaped and stretched in a variety of ways.

Other Questions
create a table of values for Jacksons situation described above (Non proportional relationships) In slope-intercept form, the equation of the line with a slope of 7 and a y-intercept of (0, -8) is ________. Do not include spaces in your answer. The following data about Atlantis Trading Inc. is available. What is Atlantiss cash flow from operating activities?Items Amount ($)Net income 45,000Increase in stock 5,000 Decrease in accounts receivables 2,000Increase in salaries payable 10,000A. $54,000B. $51,000C. $53,000D. $52,000 7. Although carbon's three isotopes are carbon-12, carbon-13, and carbon-14, itsaverage atomic mass is 12.01 becauseA. carbon-12 is the heaviest isotope.B. carbon-12 is most useful to humans.C. carbon-12 is the most common isotope. 1. How much taller is the average person today than the average person 100 years ago? A. 1 inch B. 2 inches C. 5 inches D. 10 inches Find the missing value pls help need an answer ASAP solve the triangle. round decimal answers to the nearest 10th. what is a 2 3/8 divided by 1 and 3/4 A recipe calls for 1 1/2 cups of flour for 1 dozen of cookies. How much flour is needed for 32 cookies? Given f(x) = (x + 5)2, find f(9).O A. 28O B. 196O C. - 196O D. 16 Question 5 Which of these expressions is equivalent to z+z+z+z? If a strand of DNA has 20% C, calculate the percentages ofG:T:A i need help with my math problems Find the amount of atoms from 128 grams of NaCl? Article 1 - The Negative Effects of Industrialization1. What was the Progressive Movement?2. What were some negative effects of the industrialization? 3. According to Neebe, what happened when a worker lost a finger or a hand?Article 2 - Labor Unions 1. What are labor unions?2. Why were labor unions effective?3. Describe the process of going on strike. Read the following sentence: "The sky began to grow dark, setting in for the night. It reminded me of the year I spent in Italy." What word is the allusion?1) sky2) night3) Italy4) Rome5) no allusion Which events led to the creation of a national identity in Spain? Check all that apply.The Reconquista took power from Muslim leaders.O The Age of Exploration helped expand Spain's influence.The marriage of Isabella I and Ferdinand II united territory.O The rise of the Franks unified most of the clans in the region.The Hundred Years' War encouraged a sense of nationalism.The Spanish Inquisition made Christianity the dominant religion. Why is marbury v. Madison considered a landmark Supreme Court case Which best describes the transformation that occurs from the graph of f(x) = x2 to g(x) = (x + 3)2 + 4?left 3, up 4right 3, down 4left 3, down 4right 3, up 4 If these teams are pulling with the same amount of force what will happen?The team with the green and orange shirts will win.boThe team with the yellow and red shirts will win.They will not move and neither team will win.