Answers

Answer 1

Answer:

A. "The hourly parking rate is $7.25"

Explanation:

"The hourly parking rate is $" + str(rate)

"The hourly parking rate is $" + "7.25"

"The hourly parking rate is $7.25"


Related Questions

Select all the correct answers.
Which two statements are true about P2P networks?
File sharing speeds improve as the number of devices increases.
The performance of the network degrades as the number of devices increases.
The performance of the network remains unchanged as the number of devices changes.
00
Workloads are distributed among peers.
O
Workloads are distributed among the centralized servers.

Select all the correct answers.Which two statements are true about P2P networks?File sharing speeds improve

Answers

Answer:

The correct answers are:

File sharing speeds improve as the number of devices increases.

Workloads are distributed among peers.

Explanation:

I got it right on the Edmentum test.

Peer-to-peer (P2P) is a distributed communication approach in which both parties have equal capabilities and can start a conversation. Thus option A,D is correct.

What best define about P2P networks?

Peer-to-peer networks' main objective is resource sharing, which enables computers and other devices to cooperate, deliver particular services, or carry out particular tasks.

In a P2P network, computers use software to communicate with one another through a private or public network, such as a local area network in a house (LAN). Through this connection, each device can share files directly without the use of a distant server.

Therefore, P2P is used to share a variety of computing resources, including processing power, network bandwidth, and disk storage space, as was before noted.

Learn more about P2P networks here:

https://brainly.com/question/17407791

#SPJ2

what is the difference between information literacy and technology​

Answers

Explanation:

information literacy;the ability to articulate ones information need.

Technology is the application of practical purposes especially in industry.

Ensure the file named Furniture.java is open.
The file includes variable declarations and output statements. Read them carefully before you proceed to the next step.
Design the logic and write the Java code that will use assignment statements to:
Calculate the profit (profit) as the retail price minus the wholesale price
Calculate the sale price (salePrice) as 25 percent deducted from the retail price
Calculate the sale profit (saleProfit) as the sale price minus the wholesale price.
Execute the program by clicking Run. Your output should be as follows:

Item Name: TV Stand
Retail Price: $325
Wholesale Price: $200
Profit: $125
Sale Price: $243.75
Sale Profit: $43.75
91011121314151617181920212223242526272829303132678345
double profit;
double saleProfit;

// Write your assignment statements here.
Logic:
profit=retailPrice-wholesalePrice
salePrice=retailPrice-(retailPrice*25)/100;
saleProfit=salePrice-wholesalePrice;



can someone write this how the code would be written i think i have it correct but i am getting and error when i run the code

Answers

Using the knowledge in computational language in JAVA it is possible to write a code that calculate the sale profit (saleProfit) as the sale price minus the wholesale price.

Writting the code:

public class Furniture

{

  public static void main(String args[])

  {

      String itemName = "TV Stand";

      double retailPrice = 325.00;

      double wholesalePrice = 200.00;

      double salePrice;

      double profit;

      double saleProfit;

     

      // Write your assignment statements here.

      profit = retailPrice - wholesalePrice;

      salePrice = retailPrice * (1 - 0.25);

      saleProfit = salePrice - wholesalePrice;

     

      System.out.println("Item Name: " + itemName);

      System.out.println("Retail Price: $" + retailPrice);

      System.out.println("Wholesale Price: $" + wholesalePrice);

      System.out.println("Profit: $" + profit);  

      System.out.println("Sale Price: $" + salePrice);

      System.out.println("Sale Profit: $" + saleProfit);

      System.exit(0);

      System.exit(0);

  }

}

See mroe about JAVA at brainly.com/question/12975450

#SPJ1

Ensure the file named Furniture.java is open.The file includes variable declarations and output statements.

a technical term used emails to mount a visious attack on a supervisor​

Answers

I think it’s “Phishing”
Sorry it’s it’s wrong :(

Create another method: getFactorial(int num) that calculates a Product of same numbers, that Sum does for summing them up. (1,2,3 ... num) Make sure you use FOR loop in it, and make sure that you pass a number such as 4, or 5, or 6, or 7 that you get from a Scanner, and then send it as a parameter while calling getFactorial(...) method from main().

Answers

Answer:

The program in Java is as follows;

import java.util.*;

public class Main{

public static int getFactorial(int num){

    int fact = 1;

    for(int i =1;i<=num;i++){

        fact*=i;

    }

    return fact;

}

public static void main(String[] args) {

 Scanner input = new Scanner(System.in);

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

 int num = input.nextInt();  

 System.out.println(num+"! = "+getFactorial(num)); }}

Explanation:

The method begins here

public static int getFactorial(int num){

This initializes the factorial to 1

    int fact = 1;

This iterates through each digit of the number

    for(int i =1;i<=num;i++){

Each of the digits are then multiplied together

        fact*=i;     }

This returns the calculated factorial

    return fact; }

The main begins here

public static void main(String[] args) {

 Scanner input = new Scanner(System.in);

This prompts the user for number

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

This gets input from the user

 int num = input.nextInt();  

This passes the number to the function and also print the factorial

 System.out.println(num+"! = "+getFactorial(num)); }}

if resistors were 10 times larger what would happen to output voltage

Answers

Answer:

is there a picture to go w the question?

how many comparison will the algorithm need to determine the valu 67 is in the array

Answers

The maximum and minimum. The procedure requires exactly 3n/2-2 comparisons to identify min and max if n is a power of 2. It will take a few more steps if it is not a power of 2. (not significant).

What is the algorithm need to determine in the array?

The fundamental operations that an array supports are listed below. Print each array element in a traversal operation Insertion: Adds a new element to the provided array at the given index.

Deletes the element at the specified index. Use the provided index or value to search for an element.

Therefore, An array is used to group together several instances of the same type of data.

Learn more about algorithm here:

https://brainly.com/question/13851399

#SPJ1

Select all the correct answers.

Which two features do integrated development environments (IDES) and website builders both provide?

A. offer pre-defined themes for layout
B. offer a file manager to store all programming and multimedia resources
C. make use of WYSIWYG editors
D. help highlight errors in source code
E. help ensure the website will perform on all platforms

Answers

The two features that integrated development environments (IDES) and website builders both provide are offer pre-defined themes for layout.

What are the features of integrated development environment?

The known features of integrated development environments is that it is one that is made up of a code editor, a compiler or interpreter, and a kind of  a single graphical user interface (GUI).

Note that An IDE is one that  consists of at a source code editor, create automation tools.

Hence, The two features that integrated development environments (IDES) and website builders both provide are offer pre-defined themes for layout.

Learn more about IDES from

https://brainly.com/question/13190885

#SPJ1

Real GDP Government Spending (G) Tax Revenues (T) (Billions of dollars) (Billions of dollars) (Billions of dollars) 340 58 54 380 58 58 420 58 62 Use the blue line (circle symbols) to plot the government spending schedule presented in the table. Then use the orange line (square symbols) to plot the economy's tax revenues schedule. G T Deficits Surpluses 300 320 340 360 380 400 420 440 460 480 500 70 68 66 64 62 60 58 56 54 52 50 GOVERNMENT SPENDING AND TAXES (Billions of dollars) REAL GDP (Billions of dollars)

Answers

The deficits and surpluses can be calculated by subtracting government spending from tax revenue at each level of real GDP.

Explain the graph showing the government spending and tax revenue schedules?

The blue line with circle symbols represents the government spending schedule. It's a horizontal line at $58 billion, which means that regardless of the level of real GDP, the government spending remains constant at $58 billion.

The orange line with square symbols represents the economy's tax revenue schedule. It's an upward sloping line that starts at $54 billion when the real GDP is $340 billion and increases by $4 billion for every $40 billion increase in real GDP. For example, when real GDP is $380 billion, tax revenue is $58 billion; when real GDP is $420 billion, tax revenue is $62 billion.

The deficits and surpluses can be calculated by subtracting government spending from tax revenue at each level of real GDP. For example, when real GDP is $340 billion, the deficit is $4 billion ($58 billion - $54 billion); when real GDP is $420 billion, the surplus is $4 billion ($62 billion - $58 billion).

To learn more about tax, visit: https://brainly.com/question/14720363

#SPJ1

Declare an array to store objects of the class defined by the UML. Use a method from the JOPTIONPANE class to request the length of the array the use

Answers

Here's the code snippet that declares an array to store objects of a class defined by a UML and uses the showInputDialog method from the JOptionPane class to request the length of the array from the user:

The Code Snippet

import javax.swing.JOptionPane;

public class MyClass {

   public static void main(String[] args) {

       int length = Integer.parseInt(JOptionPane.showInputDialog("Enter the length of the array:"));

      MyUMLClass[] array = new MyUMLClass[length];

       

       // Rest of the code...

   }

}

class MyUMLClass {

   // Class definition...

}

This instance entails that the user is requested to provide the quantity of items in the array with the use of the showInputDialog method, and subsequently, the input value is saved into the length variable. Subsequently, a collection of MyUMLClass instances is generated with a predetermined size.

Read more about arrays here:

https://brainly.com/question/29989214

#SPJ1

how are keyboards applied in the real world

Answers

Keyboards are used to type on electronics in the real world.

What is the most efficient solution to keep personal and work emails separate, even if they are in a single email box

Answers

Separate your emails into different folders. adding filters to your email accounts is a smart idea because they will automatically sort your emails into the correct folder. Using a strategy like this will help you stay organized and make managing many email accounts much easier.

What is email ?

Email, or electronic mail, is a communication technique that sends messages via electronic devices across computer networks. The term "email" can apply to both the method of delivery and the specific messages that are sent and received.

Since Ray Tomlinson, a programmer, invented a mechanism to send messages between computers on the Advanced Research Projects Agency Network in the 1970s, email has existed in some form (ARPANET). With the introduction of email client software (like Outlook) and web browsers, which allow users to send and receive messages via web-based email clients, modern versions of email have been widely accessible to the general public.

To know more about Email, check out:

https://brainly.com/question/28802519

#SPJ1

Which line of code will find the first occurrence of a three in an array?

Assume that you have previously imported the array module and created the array.

arr.index(3)
index(arr, 3)
arr.index[3]
index[arr,3]

Answers

Answer:

It is arr.index(3)

Explanation:

The line of code that will find the first occurrence of a three in an array is arr. index(3). The correct option is A.

What is an array?

An array is a collection of data of similar types. For example, if we want to store the names of 100 people, we can create a string array that can hold 100 names.

An array is a group of related data elements that are stored in adjacent memory regions. It is the most basic data structure since each data element may be accessed directly by using only its index number.

To build an array, supply the data type (such as int) and the array name in square brackets []. To add values to it, use a comma-separated list enclosed by curly braces: myNumbers int

Therefore, the correct option is A. arr.index(3).

To learn more about array, refer to the link:

https://brainly.com/question/19570024

#SPJ5

clicker game creating in code.org (PLEASE HELP FAST!!!)

clicker game creating in code.org (PLEASE HELP FAST!!!)

Answers

Use code.org's visual programming tools to create a clicker game by adding buttons, score tracking, and event handlers.

To create a clicker game in code.org, you can use the visual programming tools available.

Follow these steps:

1) Start by designing the game interface.

Add buttons, labels, and any other elements you want to display.

2) Create a variable to track the score or points in your game.

Initialize it to 0.

3) Add an event handler to the button's click event.

When the button is clicked, increment the score variable by a specific amount.

4) Update the score display to reflect the updated score value.

5) Consider adding a timer or level system to make the game more challenging.

6) Add sound effects or animations to enhance the user experience.

7) Test and debug your game to ensure it functions as intended.

8) Share and enjoy your clicker game with others.

For more such questions on Visual programming:

https://brainly.com/question/29362725

#SPJ11

You can use Word to create ____.
a. reports c. letters and memos
b. tables d. all of the above

Answers

Think it’s D all of the above
It is meant for all of those so D all of the above

Word can only print documents on one size of paper.

True or false

Answers

Answer:

False

Explanation:

You can always go in the document settings to change the layout and make the paper wider (landscape).

Layout > Orientation

Choose portrait or landscape

What is the minimum number of app service plans that should be created

Answers

The minimum number of App Service plans that should be created depends on a person's  specific requirements and the workload you are planning to host

What is service plans

When you want to decide how many App Service plans to use, think about these things such as: If you have different apps that need different things or need to be kept separate for safety, you can put them in different groups so they don't affect each other.

Scalability means being able to handle more work. If you need to handle more work by making things bigger (vertical scaling) or having more of them (horizontal scaling), you might need to use multiple plans for each application.

Learn more about  service plans from

https://brainly.com/question/14249760

#SPJ1

Describe one health problem related to fertilizers?​

Answers

The Answer is look it up

If you want to appeal to a professional with a hub MVS, you should focus on which two of the following? Clear business logic. Option-oriented language.

Answers

The focus on which two of the following for the hub MVS is:

Clear business logicOption-oriented language

A positioning statement frames your message in words that are compelling to your audience and outlines specific advantages for them. As few sentences as feasible, ideally one or two, should be used. You may strengthen your message and persuade your audience to pay serious attention to it by using your voice, body language, gestures, and facial expression.

Many mainframes and large computers from IBM still use the MVS (Multiple Virtual Storage) operating system. According to some, MVS is the operating system that keeps the world running, and the same might be said for OS/390 and z/OS, which are its descendants.

Learn more about hub MVS: https://brainly.com/question/13530111

#SPJ4

public static String[] strArrMethod(String[] arr) { String[] result = new String[arr.length]; for (int j = 0; j < arr.length; j++) { String sm = arr[j]; for (int k = j + 1; k < arr.length; k++) { if (arr[k].length() < sm.length()) { sm = arr[k]; // Line 12 } } result[j] = sm; } return result; }

Answers

Answer:

answer is 24

Explanation:

hope this helps

Use the drop-down menus to complete statements about how to use the database documenter

options for 2: Home crate external data database tools

options for 3: reports analyze relationships documentation

options for 5: end finish ok run

Use the drop-down menus to complete statements about how to use the database documenteroptions for 2:

Answers

To use the database documenter, follow these steps -

2: Select "Database Tools" from   the dropdown menu.3: Choose "Analyze"   from the dropdown menu.5: Click on   "OK" to run the documenter and generate the desired reports and documentation.

How is this so?

This is the suggested sequence of steps to use the database documenter based on the given options.

By selecting "Database Tools" (2), choosing "Analyze" (3), and clicking on "OK" (5), you can initiate the documenter and generate the desired reports and documentation. Following these steps will help you utilize the database documenter effectively and efficiently.

Learn more about database documenter at:

https://brainly.com/question/31450253

#SPJ1

2 what is deep learning?

Answers

Answer:

a type of machine learning based on artificial neural networks in which multiple layers of processing are used to extract progressively higher level features from data.

(a) Write the getHighestYield method, which returns the Plot object with the highest yield among the plots in farmPlots with the crop type specified by the parameter c. If more than one plot has the highest yield, any of these plots may be returned. If no plot exists containing the specified type of crop, the method returns null.
Assume that the ExperimentalFarm object f has been created such that its farmPlots array contains the following cropType and cropYield values.
The figure presents a two-dimensional array of Plot objects with 3 columns and 4 rows. The columns are labeled from 0 to 2, and the rows are labeled from 0 to 3. Each plot is labeled with a crop name and crop yield as follows. Row 0. Column 0, "Corn" 20. Column 1, "Corn" 30. Column 2, "Peas" 10. Row 1. Column 0, "Peas" 30. Column 1, "Corn" 40. Column 2, "Corn" 62. Row 2. Column 0, "Wheat" 10. Column 1, "Corn" 50. Column 2, "Rice" 30. Row 3. Column 0, "Corn" 55, Column 1, "Corn" 30. Column 2, "Peas" 30.
The following are some examples of the behavior of the getHighestYield method.
Method Call Return Value
f.getHighestYield("corn") ​farmPlots[1][3]
f.getHighestYield("peas") farmPlots[1][0] or farmPlots[3][2]​
f.getHighestYield("bananas") null
Write the getHighestYield method below.
/** Returns the plot with the highest yield for a given crop type, as described in part (a). */
public Plot getHighestYield(String c)

Answers

The Experimental Farm object f has been created such that its farm Plots array contains the following crop Type and crop Yield values.

What is Program?

A program is a predetermined set of instructions for a computer to execute in computing. The programme in the modern computer that J. Hermann von Neumann proposed in 1945 contains a sequence of instructions that the computer follows one at a time.

The program is typically stored in a location that is accessible to the computer. The computer receives one instruction, executes it, and then receives the subsequent instruction. The data on which the instruction operates can also be stored in the storage area or memory. Note that a programme is another unique type of data that describes how to operate an application or user data.

Program

Plot.java

/**

* Create a class plot

* attributes of crop type and yield

* Parametrized constructor assign values to attributes

* Getter to get attribute values

* author deept

*

*/

public class Plot {

   //Attributes

   private String cropType;

   private int cropYield;

   //Constructor

   public Plot(String crop, int yield) {

       cropType=crop;

       cropYield=yield;

   }

   //Getters

   public String getCropType() {

       return cropType;

   }

   public int getCropYield() {

       return cropYield;

   }

}

ExperimentalFarm.java

/**

* Create a plot test class

* author deept

*

*/

public class ExperimentalFarm {

   //Create a plot with different crops

    Plot[][] farmPlots=new Plot[][] {

       {new Plot("corn",20),new Plot("corn",30),new Plot("peas",10)},

       {new Plot("peas",30),new Plot("corn",40),new Plot("corn",62)},

       {new Plot("wheat",10),new Plot("corn",50),new Plot("rice",30)},

       {new Plot("corn",55),new Plot("corn",30),new Plot("peas",30)}

   };

   /** Returns true if all plots in a given column in the two-dimensional array farmPlots

   * contain the same type of crop, or false otherwise, as described in part (b)

   */

   public boolean sameCrop(int col) {

       if(col<farmPlots[0].length && col>=0) {

           String cropName=farmPlots[0][col].getCropType();

           for(int i=1;i<farmPlots.length;i++) {

               if(!cropName.equalsIgnoreCase(farmPlots[i][col].getCropType())) {

                   return false;

               }

           }

           return true;

       }

       return true;

   }

   //Main method

   public static void main(String[] args) {

       //Create an object of class

       ExperimentalFarm f=new ExperimentalFarm();

       //2test cases

       if(f.sameCrop(0)) {

           System.out.println("All crops in column0 same");

       }

       else {

           System.out.println("All crops in column0 not same");

       }

       if(f.sameCrop(1)) {

           System.out.println("All crops in column1 same");

       }

       else {

           System.out.println("All crops in column0 not same");

       }

   }

}

-------------------------------------------

output

All crops in column0 not same

All crops in column1 same

Learn more about Program

https://brainly.com/question/3224396

#SPJ1

(a) Write the getHighestYield method, which returns the Plot object with the highest yield among the

For a given gate, tPHL = 0.05 ns and tPLH = 0.10 ns. Suppose that an inertial delay model is to be developed from this information for typical gate-delay behavior.
Assuming a positive output pulse (LHL), what would the propagation
delay and rejection time be?

Answers

The rejection time (time for the output to remain stable at low after input changes from high to low) is also 0.05 ns.

How to determine the delays

Propagation Delay:

The propagation delay (tPHL) is given as 0.05 ns (nanoseconds).

This represents the time it takes for the output to transition from a high to a low level after the input changes from a high to a low level.

Propagation Delay (tPHL) = 0.05 ns

Rejection Time:

The rejection time (tRHL) is the minimum time required for the output to remain stable at a low level after the input changes from a high to a low level before the output starts to transition.

Rejection Time (tRHL) = tPHL

Hence = 0.05 ns

Therefore, for the given gate and assuming a positive output pulse (LHL):

Read more on delay model  here https://brainly.com/question/30929004

#SPJ1

Which activity is a primary manufacturing process?
A refining raw material
B casting
C molding
D welding joints
E painting a clear coat

Answers

A is the answer for the question

package Unit3_Mod2;


public class ImageExample3 {

public static void main (String[] argv)
{
int[][][] A = {
{
{255,200,0,0}, {255,150,0,0}, {255,100,0,0}, {255,50,0,0},
},
{
{255,0,200,0}, {255,0,150,0}, {255,0,100,0}, {255,50,0,0},
},
{
{255,0,0,200}, {255,0,0,150}, {255,0,0,100}, {255,0,0,50},
},
};

// Add one pixel on each side to give it a "frame"
int[][][] B = frameIt (A);

ImageTool im = new ImageTool ();
im.showImage (B, "test yellow frame");
}

public static int[][][] frameIt (int[][][] A)
{
//add code here
}
}
Make a yellow frame , one pixel to each side.

Answers

Answer:

To add a yellow frame of one pixel to each side of the input image represented by a 3D array A, we can create a new 3D array B with dimensions A.length + 2 by A[0].length + 2 by A[0][0].length, and set the values of the pixels in the frame to the RGB values for yellow (255, 255, 0).

Here is the implementation of the frameIt method:

public static int[][][] frameIt(int[][][] A) {

   int height = A.length;

   int width = A[0].length;

   int depth = A[0][0].length;

   int[][][] B = new int[height + 2][width + 2][depth];

   // Set the values for the corners of the frame

   B[0][0] = new int[] {255, 255, 0, 0};

   B[0][width + 1] = new int[] {255, 255, 0, 0};

   B[height + 1][0] = new int[] {255, 255, 0, 0};

   B[height + 1][width + 1] = new int[] {255, 255, 0, 0};

   // Set the values for the top and bottom rows of the frame

for (int j = 1; j <= width; j++) {

       B[0][j] = new int[] {255, 255, 0, 0};

       B[height + 1][j] = new int[] {255, 255, 0, 0};

   }

   // Set the values for the left and right columns of the frame

   for (int i = 1; i <= height; i++) {

       B[i][0] = new int[] {255, 255, 0, 0};

       B[i][width + 1] = new int[] {255, 255, 0, 0};

   }

   // Copy the original image into the center of the new array

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

       for (int j = 0; j < width; j++) {

           for (int k = 0; k < depth; k++) {

               B[i + 1][j + 1][k] = A[i][j][k];

           }

       }

   }

   return B;

}

Note that the RGB values for yellow are (255, 255, 0), but since the input array is using a 4-channel representation with an alpha channel (transparency), we are setting the alpha channel to 0 for all the yellow pixels. This means that the yellowframe will be fully opaque.

Hope this helps!

Define basic logical gates with its symbol, algebraic expression and truth table.​

Answers

Answer:

A truth table is a good way to show the function of a logic gate. It shows the output states for every possible combination of input states. The symbols 0 (false) and 1 (true) are usually used in truth tables. The example truth table shows the inputs and output of an AND gate.

Explanation:

program a macro on excel with the values: c=0 is equivalent to A=0 but if b is different from C , A takes these values

Answers

The followng program is capable or configuring a macro in excel

Sub MacroExample()

   Dim A As Integer

   Dim B As Integer

   Dim C As Integer

   

   ' Set initial values

   C = 0

   A = 0

   

   ' Check if B is different from C

   If B <> C Then

       ' Assign values to A

       A = B

   End If

   

   ' Display the values of A and C in the immediate window

   Debug.Print "A = " & A

   Debug.Print "C = " & C

End Sub

How does this work  ?

In this macro, we declare three integer   variables: A, B, and C. We set the initial value of C to 0 and A to 0.Then, we check if B is different from C using the <> operator.

If B is indeed different from C, we assign the value of B to A. Finally, the values of A and C are displayed   in the immediate window using the Debug.Print statements.

Learn more about Excel:
https://brainly.com/question/24749457
#SPJ1

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 as follows: System.out.printf("%.2f", yourValue); The output ends with a newline.

Answers

Answer:

const double gasDollarPerGallon = 20 ;

float calCost( double milesPerGallon ) {

   double costPerGallon = milesPerGallon / gasDollarPerGallon;

   System.out.printf ("%.2f/n", &costPerGallon);

int main ( ) {

   scanf ("%2f", &gasDollarPerGallon) ;

   calCost( 20 );

   calCost( 75 );

   calCost( 500 );

Explanation:

The C source code above gets the user input of the gas dollar per gallon from the command prompt and divides the miles per gallon variable in the function call to get the cost of gas for the range of miles. It is also print out as a double with two places.

Answer:

def driving_cost(driven_miles, miles_per_gallon, dollars_per_gallon):

  gallon_used = driven_miles / miles_per_gallon

  cost = gallon_used * dollars_per_gallon  

  return cost  

miles_per_gallon = float(input(""))

dollars_per_gallon = float(input(""))

cost1 = driving_cost(10, miles_per_gallon, dollars_per_gallon)

cost2 = driving_cost(50, miles_per_gallon, dollars_per_gallon)

cost3 = driving_cost(400, miles_per_gallon, dollars_per_gallon)

print("%.2f" % cost1)

print("%.2f" % cost2)

print("%.2f" % cost3)

Explanation:

Create a dice game that randomly “rolls” five dice for the computer and five dice for the player. After each random roll, store the result in a computer dice roll list and player dice roll list. The application displays all the values, which can be from 1 to 6 inclusive for each die. Decide the winner based on which player had the largest number of matching dice. For this game, the numeric dice values do not count. For example, if both the player and computer have three of a kind, it is a tie, no matter what the values of the three dice are.


Be sure to review the provided links on generating random integers, and using the Python count() function, as both will be used in this program. To assist you, pseudocode has been provided. Download the file DiceGamePseudocode.py and follow the pseudocode to complete the program.


Program 2 requirements:


The program generates and stores five random dice values each for the player and computer

The program determines the largest number of matching dice for the player and computer

The program displays the dice values for the player and computer

The program displays the largest number of matching dice for the player and computer

The program uses a decision structure to display a message indicating who won the game


And please follow the pseudocode!

Create a dice game that randomly rolls five dice for the computer and five dice for the player. After
Create a dice game that randomly rolls five dice for the computer and five dice for the player. After

Answers

The Python program that can be able to implements the dice game based on the things that are given in the pseudocode is given below.

What is the dice game about?

This python code is known to be program that tends to bring about or make as well as stores five random dice values for the people that is both the player as well as  computer using list comprehensions.

Therefore, it is one that tends to make use the max() function along with the key parameter that is known to be set to the count() method to be able to find the most frequent dice value for all of the player as well as the computer.

Hence The program also shows  the dice values as well as the number of matching dice for all of the player.

Learn more about dice game from

https://brainly.com/question/30028788

#SPJ1

Create a dice game that randomly rolls five dice for the computer and five dice for the player. After
Other Questions
The standard ANSI/HFES 100-2007 Human Factors Engineering of Computer Workstations (2007) lists several concerns. Find the one that does not belong to the concerns.A. Work-surface and display-support heightB. Clearance under work surface for legsC. Work-surface height and depthD. Adjustability of heights and angles for chairs and work surfacesE. Posture - seating depth and angle; back-rest height and lumbar supportF. Availability of armrests, footrests, and palm rests ALOT OF POINTS FOR THIS ONEAdmission to the state fair is $12, and each ride ticket costs $3.50. Write anexpression to represent the situation and explain what the variable means.3.50t + 12 where t represents the number of ride tickets3.50a + 12 where a represents the cost of admission12a + 3.50 where a represents the cost of admission12t + 3.50 where t represents the number of ride tickets plz can anyone help me. (x+3x+2)(x+7x+12)=24 A boat's initial velocity is 30 m/s. After 2.5 seconds, its velocityis 5 m/s. What is the boat's rate of acceleration?a -10 m/sb 27 m/sC 5 m/s2d 20 m/s4 Read the following excerpt from The Cask of Amontillado and answer the question.At the most remote end of the crypt there appeared another less spacious. Its walls had been lined with human remains, piled to the vault overhead, in the fashion of the great catacombs of Paris. Three sides of this interior crypt were still ornamented in this manner. From the fourth side the bones had been thrown down, and lay promiscuously upon the earth, forming at one point a mound of some size.In the passage above, the authors word choice creates a mood of _____.vengeanceromancesuspenseloneliness necesito un final para el cuento donde esta mi cabeza? Which of these countries does not have an eponymous capital city? panama mexico guatemala poland. Write a story that ends with I wish I had listened to my parents What position were abraham lincoln and stephen douglas trying to win in 1858? Cuantos yenes se pueden comprar con 200 yenes si el yen esta a 0.178 ,con operacion porfavor The society of route tribe of Nepal is considered as an example of hunting and gathering society.why write in your opinion in a sentence. write a verbal sentence to represent 3n-35=79 Examine the diagram below, which shows the results of an 8-year-long classic experiment used to determine how glacial ice moves in a mountain valley. Refer to this image for the following questions. What was the average yearly rate of ice advance in the center of the glacier? College KnowledgeQuestion 18 of 20To complete an associate's degree, a student typically has to completeapproximately ___ credit hours.A. 15B. 60C. 30D. 10SUBMIT According to Mark Kurlansky, what does the survival of the planet depend on? Please help as soon as possible I really need the help! Thank you Suppose that y1(t) is solution of L(y1)=0 and y2(t) is solution of L(y2)=b(t)=0, where L(y)=2y+3y+4y. Express the following ratio: 18 inches to 2 feet in its simplest form. Hint: 1 feet = 12 inches Dylan is making a party favorites for his dylan is making party favors for his birthday party he has 32 pencils and 56 lollipops and he must use all the pencils and lollipops for his birthday favorites if dylan creates the greatest number of identical packages possible how many parties favors can he make how many pencils and lollipops are there in each party package