random integer between 3 and 13 (inclusive)

Answers

Answer 1

Answer:

6

Explanation:

Answer 2

Answer:

4

Explanation:

It is between 3 and 13. Please answer some of my questions too! :)


Related Questions

IoT is an interaction between the physical and the digital world ? True or False​

Answers

Answer:

The given statement is true.

Explanation:

IoT stands for internet-of-things. When we talk about internet of things, we are talking about the physical devices and the software that is used. IoT can simply be defined as a connection between physical and digital world.

The physical world consists of sensors, actuators etc

While the digital consists of the algorithms and programs.

Hence,

The given statement is true.

. The electric company charges according to the following rate schedule: 9 cents per kilowatt-hour (kwh) for the first 300 kwh 8 cents per kwh for the next 300 kwh (up to 600 kwh) 6 cents per kwh for the next 400 kwh (up to 1,000 kwh) 5 cents per kwh for all electricity used over 1,000 kwh Write a function to compute the total charge for each customer. Write a main function to call the charge calculation function using the following data: Customer Number Kilowatt-hours Used 123 725 205 115 464 600 596 327 … … The program should print a three column chart listing the customer number, the kilowatt hours used, and the charge for each customer. The program should also compute and print the number of customers, the total kilowatt hours used, and the total charges.

Answers

Answer:

here, hope it helps.

Explanation:

#include<iostream>

using namespace std;

int calculate(int N)

{

int rate=0;

for(int count=1;count<N;count++)

{

if(count<=300)

rate=rate+9;

else if(count<=600)

rate=rate+8;

else if(count<=1000)

rate=rate+6;

else

rate=rate+5;

}

return rate;

}

void main()

{

int costumer[20];

int wats[20];

int rates[20];

int i=0;

cout<<"please enter the information for the costomers below 0 to stop"<<endl;

while (costumer[i-1]!= 0)

{

cout<<"please enter the number of the coustomer "<<endl;

cin>>costumer[i];

if(costumer[i]==0)

break;

cout<<"please enter Kilowatt-hours used for the costumer "<<endl;

cin>>wats[i];

i++;

}

for(int j=0;j<i;j++)

rates[j]=calculate(wats[j]);

for(int j=0;j<i;j++)

{

cout<<" Customer Number Kilowatt-hours used charge"<<endl;

cout<<" "<<costumer[j]<<" "<<wats[j]<<" "<<rates[j]<<endl;

}

}

30pts! PLEASE ANSWER FAST-BRAINLIEST WILL BE MARKED
the footer is a number and is used in checking to be sure the _____ has not changed​

Answers

the footer is a number and is used in checking to be sure the bottom margin of each page has not changed​

A small piece of data that some websites save which contains information such as websites that you visited and everything you clicked is called

Answers

A small piece of data that some websites save which contains information such as websites that you visited and everything you clicked is called  cookie.

What is a piece of data about a user from a website?Cookies are little data files that websites save on the user's device. Cookies are frequently used by websites to remember user preferences and provide a personalized experience, as well as to gather information for advertising purposes.Cookies, often known as "HTTP cookies," are little text files stored on your computer by websites to assist track your activities. The majority of cookies are used to keep track of the sites you're logged in to and your local settings on those sites.Cookies are text files that include small amounts of data, such as a login and password, and are used to identify your machine when you connect to a computer network. HTTP cookies are used to identify unique users and to improve your web browsing experience.

To learn more about  Cookies refer,

https://brainly.com/question/1308950

#SPJ1

Describe Technology class using at least 3 adjectives

Answers

Answer:

clearly alien

typically inept

deadly modern

Explanation:

Driving is expensive. Write a program with a car's miles/gallon and gas dollars/gallon (both doubles) as input, and output the gas cost for 20 miles, 75 miles, and 500 miles. Output each floating-point value with two digits after the decimal point, which can be achieved by executing cout << fixed << setprecision(2); once before all other cout statements.

Answers

Answer:

Explanation:

The following is written in C++ and asks the user for inputs in both miles/gallon and dollars/gallon and then calculates the gas cost for the requested mileages using the input values

#include <iostream>

#include <iomanip>

using namespace std;

int main () {

   // distance in miles

   float distance1 = 20.0, distance2 = 75.0, distance3 = 500.0;

   float miles_gallon, dollars_gallon;

   cout << "Enter cars miles/gallon: "; cin >> miles_gallon;

   cout << "Enter cars dollars/gallon: "; cin >> dollars_gallon;

   cout << "the gas cost for " << distance1 << " miles is " << fixed << setprecision(2) << (float) dollars_gallon * distance1 / miles_gallon << "$\n";

   cout << "the gas cost for " << distance2 << " miles is " << fixed << setprecision(2) << (float) dollars_gallon * distance2 / miles_gallon << "$\n";

   cout << "the gas cost for " << distance3 << " miles is " << fixed << setprecision(2) << (float) dollars_gallon * distance3 / miles_gallon << "$\n";

   return 0;

}

32. The broadcast address is a special address in which the host bits in the network address are all set to 1, and it can also be used as a host address.
A.True
B.False

Answers

Some host addresses are reserved for special uses. On all networks, host numbers 0 and 255 are reserved. An IP address with all host bits set to 1 is False.

How can I find a network's broadcast address?Any device connected to a multiple-access communications network can receive data from a broadcast address. Any host with a network connection could receive a message delivered to a broadcast address.All hosts on the local subnet are reached by using this address to send data. The Routing Information Protocol (RIP), among other protocols that must communicate data before they are aware of the local subnet mask, uses the broadcast address.The use of some host addresses is reserved. Host numbers 0 and 255 are set aside for use only on reserved networks. When all host bits are set to 1, an IP address is considered false.

To learn more about Broadcast address refer to:

https://brainly.com/question/28901647

#SPJ1

Draw a simple calculator


Answers

I can help you program a simple calculator using Python.

Here's some sample code:

# Define a function to perform addition

def add(num1, num2):

   return num1 + num2

# Define a function to perform subtraction

def subtract(num1, num2):

   return num1 - num2

# Define a function to perform multiplication

def multiply(num1, num2):

   return num1 * num2

# Define a function to perform division

def divide(num1, num2):

   return num1 / num2

# Ask the user to enter the numbers and the operation they want to perform

num1 = float(input("Enter the first number: "))

num2 = float(input("Enter the second number: "))

operation = input("Enter the operation (+, -, *, /): ")

# Perform the selected operation and display the result

if operation == '+':

   result = add(num1, num2)

   print(num1, "+", num2, "=", result)

elif operation == '-':

   result = subtract(num1, num2)

   print(num1, "-", num2, "=", result)

elif operation == '*':

   result = multiply(num1, num2)

   print(num1, "*", num2, "=", result)

elif operation == '/':

   result = divide(num1, num2)

  print(num1, "/", num2, "=", result)

else:

   print("Invalid operation selected")

This program defines four functions to perform addition, subtraction, multiplication, and division.

It then asks the user to enter the two numbers they want to calculate and the operation they want to perform. Finally, it uses a series of if statements to perform the selected operation and display the result.

Note that this code assumes that the user will enter valid input (i.e., two numbers and one of the four valid operations). In a real-world application, you would want to include more error handling and validation to ensure that the program doesn't crash or produce unexpected results.

Read more about programs here:

https://brainly.com/question/26134656

#SPJ1

Which statement is NOT related to computational thinking?

Answers

The statement that is not related to computational thinking are option A, B and D:

The result of computational thinking is a problem broken down into its parts to create a generalized model and possible solutions.  

Computational thinking involves the techniques of decomposition, pattern recognition, abstraction, and algorithm development.

Computational thinking is a set of techniques used to help solve complex problems or understand complex systems.

What exactly is computational thought?

That difficult challenge is broken down into a succession of smaller, more manageable problems using computational thinking (decomposition).

Note that the ability to apply core ideas and logic from computer science and computing to address issues across all domains is known as computational thinking. CT is a set of problem-solving techniques used in education that entails describing issues and potential answers in a way that a computer might also carry out.

Therefore, The ability to solve problems in the actual world is computational thinking's greatest advantage.

Learn more about computational thinking  from

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

See choices of this question below:

The result of computational thinking is a problem broken down into its parts to create a generalized model and possible solutions,

Computational thinking involves the techniques of decomposition, pattern recognition, abstraction, and algorithm development.

Computational thinking is basically synonymous with programming.

Computational thinking is a set of techniques used to help solve complex problems or understand complex systems

Understanding all of the minor details about a problem is critical in computational thinking

is god real???????????????

Answers

Answer:

It depend in your religion, but I think so.

The concept of God and the existence of a divine being are complex topics that have been debated by philosophers, theologians, and scientists for centuries. While it is impossible to definitively prove or disprove the existence of God, some arguments and perspectives suggest that a belief in God may not be supported by empirical evidence or logical reasoning.

One argument against the existence of God is rooted in the understanding of the natural world and the principles of science. The theory of the Big Bang, supported by extensive scientific evidence, proposes that the universe originated from a singularity and has been expanding ever since. According to this view, the universe's existence and development can be explained through the laws of physics and cosmology, without the need for a divine creator. Advocates of this perspective assert that the complexity and diversity of the universe can be attributed to natural processes rather than the actions of a deity.

Moreover, many aspects of the natural world, such as the origins of life on Earth, can be explained through scientific theories and naturalistic explanations. For example, the theory of evolution offers a comprehensive understanding of how life has diversified and adapted over billions of years. It suggests that the diversity of species arose through natural selection and genetic variation, rather than through the direct intervention of a higher power. From this perspective, the existence and diversity of life can be explained by the inherent properties of matter and the processes of biological evolution, without invoking the necessity of a creator God.

Critics of the concept of God also argue that the existence of suffering and evil in the world is inconsistent with the notion of an all-powerful, all-knowing, and benevolent deity. They question how a loving and just God could permit natural disasters, diseases, and human suffering on such a large scale. This argument, known as the problem of evil, posits that the existence of suffering is more easily explained by the random and natural workings of the universe, rather than the actions or intentions of a divine being.

However, it is important to note that many people find personal meaning, comfort, and purpose in their belief in God. For them, the existence of God is not contingent upon empirical evidence or scientific explanations. Faith and religious experiences can be deeply personal and subjective, and they may provide individuals with a sense of guidance, moral values, and a connection to something greater than themselves.

Ultimately, whether or not God exists is a question that lies beyond the realm of scientific inquiry and falls within the domain of personal belief and philosophical contemplation. While some arguments may suggest that a belief in God is not supported by empirical evidence or logical reasoning, others find solace and purpose in their spiritual convictions. The question of God's existence remains a matter of personal interpretation, faith, and individual introspection.

Data entered in a cell will appear in the bar, found about the worksheet
a.status Bar
b.Equation Bar
c.Formula Bar
d.Data Entry Bar

Answers

Answer:

formula bar

Explanation:

The formula bar in Excel is located next to the name box

and above the worksheet area. It displays the data stored in

the active cell. The formula bar is used to view, enter, and

edit values and formulas in cells.

How to use the screen mirroring Samsung TV app

Answers

If you want to show what's on your phone or computer screen on a Samsung TV, you can do it by these steps:

Make sure both your Samsung TV and the thing you want to copy are using the same Wi-Fi.

What is  screen mirroring

The step also includes: To get to the main menu on your Samsung TV, just press the "Home" button on your remote.

The  screen mirroring is Copying or making a duplicate of something. They are repeating each other's words to try to fix the problem between them. This is the way to show what is on your computer or phone screen on another screen by using wireless connection.

Learn more about  screen mirroring from

https://brainly.com/question/31663009

#SPJ1

9. Discuss the pros and cons of human-computer interaction technology?​

Answers

The cons of human-computer interaction technology is that there tends to be a poor form  of user interfaces as well as experiences that tend to  change technology from been useful tool to been a frustrating waste of time.

Productivity  tends to  suffers if workers have to spend their time working in the designs unit.

What are the pros of human-computer interaction technology?

The biggest gains one or a company can get is one that arises from the use of HCI.

Thus is known to be good because it is one that tends to be  more user friendly products.

A person is able to make computers and systems to be very much receptive to the needs of the user, making a better user experience

Therefore, The cons of human-computer interaction technology is that there tends to be a poor form  of user interfaces as well as experiences that tend to  change technology from been useful tool to been a frustrating waste of time.

Learn more about human-computer interaction from

https://brainly.com/question/17238363

#SPJ1

Andre is finding working in an online group challenging because there are people in the group from many different cultural backgrounds. Which are the three major areas that present challenges to students in such situations?​

Answers

Answer:

Different Communication Styles

Different Attitudes Toward Conflict

Different Approaches to Completing Tasks

Different Decision-Making Styles

Different Attitudes Toward Disclosure

Different Approaches to Knowing

Explanation:

Answer:

When working in multicultural groups, students may find challenges in the areas of language barriers, social behavior expectations, and communication style differences.

Explanation:

In this test you are expected to code a Sales
Management System that saves sold Products to a
MySQL Database using a JDBC connection. Problem
Domain and Data Access classes are used. DA
methods to be coded are specified in the test.
The GUI for the application:
Product Details
Barcode No:
Product name:
Unit Price:
Product weight:
Manufacturer:
View Sales
Product Category
Item Based Product
Weight Based Product
Sale
View Item Based Products

Answers

To build a Sales Management System, it is essential to design a user-friendly graphical interface that features sections for entering details pertaining to products, including barcodes, names, prices per unit, weights and manufacturers.

How to use this dB?

Using a JDBC connection, it is imperative for the system to store the sold products in a MySQL database. The classes responsible for accessing data should be equipped with functions that facilitate the retrieval and storage of information from and to the database.

The graphical user interface must include features allowing the user to examine sales figures, distinguish between product types based on quantity or weight, and browse item-based products. The design of the system should prioritize efficient management of product data and sales, while also ensuring user-friendliness.

Read more about database here:

https://brainly.com/question/518894

#SPJ1

For a business to run smoothly the employers and employees should follow an appropriate code of

Answers

Answer:

conduct

Explanation:

they should follow code of conduct

Perfrom traceroute of an ip address in Australia

Answers

How to perform a typical traceroute on an IP address using CMD command is given below:

The Steps

In case you're striving to perform a traceroute operation on an IP address, either using Windows or Mac computer systems, the following guidelines will provide assistance.

Windows users may select the Windows key and R simultaneously, enter "cmd," hit Enter. In comparison, users operating with the Mac OS should navigate through Finder by visiting Applications -> Utilities and double-clicking Terminal.

To get started with the procedure, insert the word "traceroute," and proceed by entering the specific IP address that you desire to locate. Even if searching for information on 203.0.113.1, simply input "traceroute 203.0.113.1." At this stage, submit and wait until the validation is done.

This method ascertains the path taken by packets across the network. It indicates the number of jumps made, along with their response time at every stage. One aspect to bear in mind is some routers/firewalls may block access thereby leading to incomplete outcomes.

Read more about Ip addresses here:

https://brainly.com/question/14219853

#SPJ1

I really need help with CSC 137 ASAP!!! but it's Due: Wednesday, April 12, 2023, 12:00 AM

Questions for chapter 8: EX8.1, EX8.4, EX8.6, EX8.7, EX8.8

I really need help with CSC 137 ASAP!!! but it's Due: Wednesday, April 12, 2023, 12:00 AMQuestions for
I really need help with CSC 137 ASAP!!! but it's Due: Wednesday, April 12, 2023, 12:00 AMQuestions for
I really need help with CSC 137 ASAP!!! but it's Due: Wednesday, April 12, 2023, 12:00 AMQuestions for

Answers

The response to the following prompts on programming in relation to array objects and codes are given below.

What is the solution to the above prompts?

A)

Valid declarations that instantiate an array object are:

boolean completed[J] = {true, true, false, false};

This declaration creates a boolean array named "completed" of length 4 with initial values {true, true, false, false}.

int powersOfTwo[] = {1, 2, 4, 8, 16, 32, 64, 128};

This declaration creates an integer array named "powersOfTwo" of length 8 with initial values {1, 2, 4, 8, 16, 32, 64, 128}.

char[] vowels = new char[5];

This declaration creates a character array named "vowels" of length 5 with default initial values (null for char).

float[] tLength = new float[100];

This declaration creates a float array named "tLength" of length 100 with default initial values (0.0f for float).

String[] names = new String[]{"Sam", "Frodo", "Merry"};

This declaration creates a String array named "names" of length 3 with initial values {"Sam", "Frodo", "Merry"}.

char[] vowels = {'a', 'e', 'i', 'o', 'u'};

This declaration creates a character array named "vowels" of length 5 with initial values {'a', 'e', 'i', 'o', 'u'}.

double[] standardDeviation = new double[1];

This declaration creates a double array named "standardDeviation" of length 1 with default initial value (0.0 for double).

In summary, arrays are objects in Java that store a fixed-size sequential collection of elements of the same type. The syntax for creating an array includes the type of the elements, the name of the array, and the number of elements to be stored in the array. An array can be initialized using curly braces ({}) to specify the initial values of the elements.


B) The problem with the code is that the loop condition in the for loop is incorrect. The index should start from 0 instead of 1, and the loop should run until index < masses.length instead of masses.length + 1. Also, the totalMass should be incremented by masses[index], not assigned to it.

Corrected code:
double[] masses = {123.6, 34.2, 765.87, 987.43, 90, 321, 5};

double totalMass = 0;

for (int index = 0; index < masses.length; index++) {

   totalMass += masses[index];

}


The modifications made here are to correct the starting index of the loop, fix the loop condition, and increment the totalMass variable correctly.


C)

1)
Code to set each element of an array called nums to the value of the constant INITIAL:

const int INITIAL = 10; // or any other desired initial value

int nums[5]; // assuming nums is an array of size 5

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

   nums[i] = INITIAL;

}


2) Code to print the values stored in an array called names backwards:
string names[4] = {"John", "Jane", "Bob", "Alice"}; // assuming names is an array of size 4

for (int i = 3; i >= 0; i--) {

   cout << names[i] << " ".

}



3) Code to set each element of a boolean array called flags to alternating values (true at index 0, false at index 1, true at index 2, etc.):

bool flags[6]; // assuming flags is an array of size 6

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

   flags[i] = (i % 2 == 0);

}


Learn more about array objects at:

https://brainly.com/question/16968729

#SPJ1

Write a single 16-bit LC-3 instruction (in binary) that sets the condition code bits (N, Z, P) according to the value in R0, but does not change any register values. For example, if the current value in R0 is negative, then the N bit should be set after your instruction is executed. But the value in R0 (or any other register) must be unchanged.

Answers

Answer:

Explanation:

To write a single 16-bit LC-3 instruction (in binary) that sets the condition code bits (N, Z, P) according to the value in R0, but does not change any register values, we need to:    Add R0, R0, #0

This implies that the above expression adds value 0 in register 0 which does not make changes to the contents of register 0 but sets the condition code bits (N,Z,P) according to the value in R0.

Use the drop-down menus to complete the steps for creating a conditional formatting rule.
1. Select the object.
2. On the Form Tools
tab, click the Control Formatting group, and then click Conditional Formatting.
V.
3. In the dialog box, click
4. Select a rule type, edit the rule description, and set the formatting to apply to values that meet the criteria.
5. Click OK, and then click OK again.

Answers

Note that the complete steps for creating a conditional formatting rule are:

Use the drop-down menus to complete the conditional formatting rule steps.

1. Select the object.

2. On the Form Tools tab, click the Control Formatting group, and then click Conditional Formatting.

3. In the dialog box, click ADD

4. Select a rule type, edit the rule description, and set the formatting to apply to values that meet the criteria.

5. Click OK, and then click OK again.

What is Conditional Formatting?

Conditional formatting makes it simple to highlight certain values or identify specific cells. Based on a condition, this alters the look of a cell range (or criteria). Conditional formatting can be used to highlight cells that contain values that fulfill a specific requirement.

Conditional formatting is used to alter the look of cells in a range based on the conditions you specify. The criteria are rules that are based on numerical numbers or matching language.

Learn more about Conditional Formatting:
https://brainly.com/question/16014701
#SPJ1

In this chapter, you learned that although a double and a decimal both hold floating-point numbers, a double can hold a larger value. Write a C# program named DoubleDecimalTest that declares and displays two variables—a double and a decimal. Experiment by assigning the same constant value to each variable so that the assignment to the double is legal but the assignment to the decimal is not.

Answers

Answer:

The DoubleDecimalTest class is as follows:

using System;

class DoubleDecimalTest {

 static void Main() {

     double doubleNum = 173737388856632566321737373676D;  

    decimal decimalNum = 173737388856632566321737373676M;

   Console.WriteLine(doubleNum);

   Console.WriteLine(decimalNum);  } }

Explanation:

Required

Program to test double and decimal variables in C#

This declares and initializes double variable doubleNum

     double doubleNum = 173737388856632566321737373676D;

This declares and initializes double variable decimalNum (using the same value as doubleNum)

     decimal decimalNum = 173737388856632566321737373676M;

This prints doubleNum

   Console.WriteLine(doubleNum);

This prints decimalNum

   Console.WriteLine(decimalNum);

Unless the decimal variable is commented out or the value is reduced to a reasonable range, the program will not compile without error.

In Python, an equal symbol (=) is used to concatenate two or more strings.

True

False

Answers

False

In Python, an equal sign is used to assign a variable. Ex: my_money = 27

To concatenate, you would simply use a +. Ex: amount_for_babysitting = 10
my_money + amount_for_babysitting

An algorithm requires numbers.
O True
O
False

Answers

True hope this helps

Answer:

It is true

Explanation:

QUICK PLEASE!!!!!! 100 POITNS
Which line of code will have "navy rainbow" as an output?
class pencil:
color = 'yellow'
hardness = 2
class pencilCase:
def __init__(self, color, art):
self.color = color
self.art = art
def __str__(self):
return self.color + " " + self.art
# main program
pencilA = pencil()


print (caseA)

QUICK PLEASE!!!!!! 100 POITNSWhich line of code will have "navy rainbow" as an output?class pencil: color

Answers

Answer: (A) -> caseA.pencilCase(’navy’, ‘rainbow')

Explanation:

I believe that you may have written an error on the second to last line of your code, instead of setting:

pencilA = pencil() --> this should be: caseA = pencil()

which makes A the correct answer!

1. How are you going to apply proper selection of tools in your daily life?

2. Do you think knowing each tool used for computer systems servicing will be a big help for you in the future?

3. How important for a student like you to know the scope of work you should properly accomplish?​

Answers

Answer:

PROPER TOOLS SELECTION 2. Tool •Is a handheld device that aids in accomplishing a task •Range from a traditional metal cutting part of a machine to an element of a computer program that activates and controls a particular function. 3. Preparing for the task to be

Explanation:

Write a split check function that returns the amount that each diner must pay to cover the cost of the meal The function has 4 parameters:
1. bill: The amount of the bill,
2. people. The number of diners to split the bill between
3. tax_percentage: The extra tax percentage to add to the bill.
4. tip_percentage: The extra tip percentage to add to the bill.
The tax or tip percentages are optional and may not be given when caling split_check. Use default parameter values of 0.15 (15%) for tip percentage, and 0.09 (9%) for tax_percentage
Sample output with inputs: 252
Cost per diner: 15.5
Sample output with inputs: 100 2 0.075 0.20
Cost per diner: 63.75
1 # FIXME: write the split.check function: HINT: Calculate the amount of tip and tax,
2 # add to the bill total, then divide by the number of diners
3.
4. Your solution goes here
5.
6. bill - float(input)
7. people intinout)
8.
9. Cost per diner at the default tax and tip percentages
10. print('Cost per diner: split_check(bill, people))
11.
12. bill - float(input)
13. people int(input)
14. newtax_percentage - float(input)
15. nen_tip percentage float(input)
16.
17. Oust per dinero different tox and tip percentage
18. print('Cost per diner: split checkbull people, new tax percentage, new tip percentage)

Answers

Answer:

def split_check(bill, people, tax_percentage = 0.09, tip_percentage = 0.15):

   tip = bill * tip_percentage

   tax = bill * tax_percentage

   total = bill + tip + tax

   

   return total / people

bill = float(input())

people = int(input())

print("Cost per diner: " + str(split_check(bill, people)))

bill = float(input())

people = int(input())

new_tax_percentage = float(input())

new_tip_percentage = float(input())

print("Cost per diner: " + str(split_check(bill, people, new_tax_percentage, new_tip_percentage)))

Explanation:

Create a function called split_check that takes four parameters, bill, people, tax_percentage and tip_percentage (last two parameters are optional)

Inside the function, calculate the tip and tax using the percentages. Calculate the total by adding bill, tip and tax. Then, return the result of total divided by the number of people, corresponds to the cost per person.

For the first call of the function, get the bill and people from the user and use the default parameters for the tip_percentage and tax_percentage. Print the result.

For the second call of the function, get the bill, people, new_tip_percentage and new_tax_percentage from the user. Print the result.

def split_check(bill, people, tax_percentage = 0.09, tip_percentage = 0.15):

  tip = bill * tip_percentage

  tax = bill * tax_percentage

  total = bill + tip + tax

 

  return total / people

bill = float(input())

people = int(input())

print("Cost per diner: " + str(split_check(bill, people)))

bill = float(input())

people = int(input())

new_tax_percentage = float(input())

new_tip_percentage = float(input())

print("Cost per diner: " + str(split_check(bill, people, new_tax_percentage, new_tip_percentage)))

Create a function called split_check that takes four parameters, bill, people, tax_percentage and tip_percentage (last two parameters are optional)

Inside the function, calculate the tip and tax using the percentages. Calculate the total by adding bill, tip and tax. Then, return the result of total divided by the number of people, corresponds to the cost per person.

For the first call of the function, get the bill and people from the user and use the default parameters for the tip_percentage and tax_percentage. Print the result.

For the second call of the function, get the bill, people, new_tip_percentage and new_tax_percentage from the user. Print the result.

Learn more about function on:

https://brainly.com/question/30721594

#SPJ6

Which strategies should be used to answer short answer or essay questions? Check all that apply
D comparing items
O looking tor key words such as 'compare" or "contrast
Oallowing extra time to answer
Oidentifying warning words such as "absolutes"
D checking the space for writing the answer

Answers

Answer:

B

Explanation:

correct me if im wrong

The strategies that should be used to answer short answer or essay questions are as follows:

Looking for keywords such as 'compare" or "contrast.Checking the space for writing the answer.

Thus, the correct options for this question are B and D.

What do you mean by writing strategy?

The writing strategy may be defined as the entire sequence in which a writer engages in planning, composing, revising, and other writing-related activities in any literary work.  In their opinion, writing strategies are a sequence of activities instead of a single one.

There are five writing strategies for writing simply but authoritatively and effectively are as follows:

Use simpler words and phrases.Minimize the number of negatives in a sentence.Write shorter sentences, but avoid choppiness.Use important key terms consistently.Balance the use of simple and sophisticated language.

Therefore, the correct options for this question are B and D.

To learn more about Writing strategies, refer to the link:

https://brainly.com/question/27836380

#SPJ2

Which of these is a good thing to consider when naming variables?
The name should be readable and make sense
Keep it short, less typing
Use only letters
O Sentences are Tood variable names.

Answers

Answer:

The name should be readable and make sense

Explanation:

Aside the rules involved in naming variables, there are also some good tips which should be considwred when given names to our variables. These means there are some variables which are acceptable by our program but may be avoided in other to make our codes easier to read by us and others and it also makes debugging easier when we run into errors. Using short variables are acceptable on code writing as far as the rules are followed. However, it is more advisable to use names that are descriptive and readable such that it relates to the program or code being worked on. This ensures that we and others can follow through our lines of code at a much later time without making mistakes or forgetting what the variable stands for.

What changes could you make so that a message, "User input deemed invalid." during designing a simple calculator program for young children to use, what changes could you make so that the message would be more suitable for this audience?

Answers

The most appropriate change in this situation would be to change the message "User input deemed invalid" to "You made a mistake, try again, you can".

What should we change to improve the children's experience?

To improve children's experience with this new calculator program, we must adapt all the features of the program for children's users. Therefore, the buttons, the messages and everything related to this program must be suitable for their motor and brain development.

Therefore, it is considered that the message "User input deemed invalid" is not suitable for children because they may not understand this message or misinterpret it and desist from using the new program.

So, the most appropriate message to replace the previous message would be:

"You made a mistake, try again, you can"

Because this message is suitable for the friendly language that children use in their daily lives and they would better understand the message without giving up using the new program or the calculator.

Learn more about programs in: https://brainly.com/question/13264074

#SPJ1

If you want to make an image look more like a sketch, which option should you use in the Adjust group?
O Color
O Corrections
O Artistic Effects
O Brightness and Contrast

Answers

Answer:

Artistic Effects

Explanation:

Artistic effects change the appearance of an image by attempting to mimic art media like paint or pencil, add texture (e.g., cement), or create other changes like blurring.

Other Questions
A 3.0 nc charge at x-0 cm and a -1.o nc charge is at x-4 cm. At what point or points on the x-axis is the electric potential zero? you and your partner arrive at the scene of a middle aged man who collapsed about 5 minutes ago. he is unresposive, apneic, and pulseless. bystanders are present, ut have not provided any care. you should The secretion of hormones by the pituitary gland is an example of _______________. used to protect all sorts of building structureswhat is it? engaging in protectionism is in everyone's best interest since it protects american industry from foreign competition. true false Which of the following choices is NOT part of the chloroplast?cristaestromathylakoidschlorophyll according to philosopher terry warner, when we fail to act on impulses to act empathetically what is this called? What is the range of this data set?27,5,11,13,10,8,14,18,7Help! Will mark brainliest! Promisw A figure has an area of 64 units2. Whichdescribes the area of the figure after adilation with a scale factor of ? Would you be OK with never using a bank for your financial needs why or why not? HELP ITS FOR CONSUMERS MATH The longest leg of a right triangle is 30 feet and another side is 20 feet. Find the perimeter of the triangle. Round to the nearest tenth Based on this text, what group of college students areat an increased risk of dating violence? Find the distance between the points (3, -5) and (6, -5). Witt Corporation received its charter during January of this year. The charter authorized the following stock: Preferred stock: 10 percent, $14 par value, 22,200 shares authorized Common stock: $12 par value, 51,700 shares authorized During the year, the following transactions occurred in the order given: a. Issued 39,500 shares of the common stock for $16 per share. b. Sold 7,000 shares of the preferred stock for $20 per share. c. Sold 4,400 shares of the common stock for $19 per share and 2,400 shares of the preferred stock for $30 per share. d. Net income for the year was $52,000. Required: Prepare the stockholders' equity section of the balance sheet at the end of the year. Determine whether the line integral of each vector field (in blue) along the semicircular, oriented path (in red) is positive, negative, or zero. rward(28.12Consider a hypothetical business problem of increased number of incidentsand service requests raised by the users that was affecting the turnaroundtime at their IT help desk. Which among these tool set combination has thepotential to provide the complete end to end solution?Appdynamics Splunk IKONKore.ai Smart Analytics, IKON, Dynatrace, RemedyIBM Watson analyticsBlueprism Automation Anywhere UiPath NICEDOL.Click Submit to verify your answer.Submit 1. Examine the village in which Herot was built. What can you tell about the village? What can you tell about Herot?2. Despite the fact that all the main characters were pagans, the first written version of the poem is thought to have been authored by a Christian monk. How might this alter the story or the way its presented?3. Predict what will happen in Beowulf. Use the following in your prediction: Herot; Hrothgar; Beowulf; mead; scraps of skin.4. Read page 20 of the story. Based on what you know about the character of Beowulf, find ONE thing he has in common with another pop culture hero - and one thing that is completely different about the two characters. Explain your choices!Article: Beowulf Which kind of dietitian may work in a lab developing food products for a food mahufacturer?Clinical dietitianResearch dietitiano Community dietitianDietetic technician, registered what is the relative change in a market value-weighted index? enter your answer as a decimal number or with the percentage sign. Gelatin is a solid that can strengthen protein networks. How would yogurt that contains gelatin be different from yogurt that does not contain gelatin