Yahtzee is a dice game that uses five die. There are multiple scoring abilities with the highest being a Yahtzee where all five die are the same. You will simulate rolling five die 777 times while looking for a yahtzee.

Program Specifications :

Create a list that holds the values of your five die.

Populate the list with five random numbers between 1 & 6, the values on a die.

Create a function to see if all five values in the list are the same and IF they are, print the phrase "You rolled ##### and its a Yahtzee!" (note: ##### will be replaced with the values in the list)

Create a loop that completes the process 777 times, simulating you rolling the 5 die 777 times, checking for Yahtzee, and printing the statement above when a Yahtzee is rolled.

Answers

Answer 1
Sure, here's the Python code to simulate rolling the five dice and checking for a Yahtzee:

```python
import random

# Function to check if it's a Yahtzee
def is_yahtzee(dice):
return all(die == dice[0] for die in dice)

# Simulating rolling the dice 777 times
for i in range(777):
# Populating the list with five random numbers between 1 & 6
dice = [random.randint(1,6) for _ in range(5)]

# Checking for a Yahtzee and printing the statement if true
if is_yahtzee(dice):
print(f"You rolled {dice} and it's a Yahtzee!")
```

In this code, we first define a function `is_yahtzee` that takes a list of dice values and checks if all the values are the same.

Then, we use a loop to simulate rolling the dice 777 times. For each roll, we create a list `dice` with five random numbers between 1 and 6 using a list comprehension.

Finally, we check if it's a Yahtzee by calling the `is_yahtzee` function with the `dice` list as an argument. If it is a Yahtzee, we print the statement with the dice values.

Related Questions

Support technicians are expected to maintain documentation for each computer for which they are responsible. Create a document that a technician can use when installing Windows and performing all the chores mentioned in the module that are needed before and after the installation. The document needs a checklist of what to do before the installation and a checklist of what to do after the installation. It also needs a place to record decisions made during the installation, the applications and hardware devices installed, user accounts created, and any other important information that might be useful for future maintenance or troubleshooting. Don’t forget to include a way to identify the computer, the name of the technician doing the work, and when the work was done.

HELP!!

Answers

Answer: Computer Installation and Maintenance Documentation

Computer Identification:

- Computer Name:

- Serial Number:

- Model:

- Operating System:

Technician Information:

- Name:

- Date:

Before Installation Checklist:

- Backup important data

- Verify system requirements

- Check for BIOS updates

- Disconnect all peripherals and external devices

- Record hardware and software components

- Verify network connectivity

During Installation Checklist:

- Record decisions made during installation

- Select appropriate partition for installation

- Install necessary drivers

- Configure network settings

- Install Windows updates

After Installation Checklist:

- Install necessary software and applications

- Install necessary hardware devices

- Configure user accounts

- Install additional Windows updates

- Install antivirus software

Important Information:

- Hardware Components:

- Software Components:

- Network Configuration:

- Notes:

By signing below, I certify that I have completed the installation and maintenance checklist for the specified computer.

Technician Signature: ______________________________

Date: ____________________

16. What will be the output of the following Code?
1.
#include
2.
3.
4.
5.
6.
7.
int main()
{
int i = 2;
int i = i++ + i;
printf("%d\n", i);
)
a. = operator is not a sequence point
b. ++operator may return value with or without side effects
c. it can be evaluated as (i++) or (+4)
d. = operator is a sequence point

Answers

The output of the code would be a. = operator is not a sequence point

What is a Code Output?

An output is just what happens once all the code is done, the end result. after all the calculation are done its what gets put into the console.

Hence, it can be seen that using the post-increment operator i++ along with the assignment operator causes the given code to have undefined behavior.

The expression i++ + i does not specify an evaluation order, resulting in possible variations depending on the used compiler or optimization settings.

Read more about programs here:

https://brainly.com/question/26134656

#SPJ1

Assume that "a" is an array of integers. What, if anything, is wrong with this Java statement:
a[a.length] = 10;

Answers

The problem with the given Java statement is that the index it wants to access is out of bounds which means that it is an index that is out of bounds

What is wrong with the code snippet?

The statement attempts to get an index that is greater than the array's length as Java arrays start at 0, which cause valid indices range from 0 to the length minus 1.

This makes the call of "a.length" causes an "ArrayIndexOutOfBoundsException".


Read more about Java here:

https://brainly.com/question/31394928

#SPJ1

Insertion sort in java code. I need java program to output this print out exact, please.
When the input is:

6 3 2 1 5 9 8

the output is:

3 2 1 5 9 8

2 3 1 5 9 8
1 2 3 5 9 8
1 2 3 5 9 8
1 2 3 5 9 8
1 2 3 5 8 9

comparisons: 7
swaps: 4
Here are the steps that are need in order to accomplish this.
The program has four steps:

1 Read the size of an integer array, followed by the elements of the array (no duplicates).
2 Output the array.
3 Perform an insertion sort on the array.
4 Output the number of comparisons and swaps performed.
main() performs steps 1 and 2.

Implement step 3 based on the insertion sort algorithm in the book. Modify insertionSort() to:

Count the number of comparisons performed.
Count the number of swaps performed.
Output the array during each iteration of the outside loop.
Complete main() to perform step 4, according to the format shown in the example below.

Hints: In order to count comparisons and swaps, modify the while loop in insertionSort(). Use static variables for comparisons and swaps.

The program provides three helper methods:

// Read and return an array of integers.
// The first integer read is number of integers that follow.
int[] readNums()

// Print the numbers in the array, separated by spaces
// (No space or newline before the first number or after the last.)
void printNums(int[] nums)

// Exchange nums[j] and nums[k].
void swap(int[] nums, int j, int k)

Answers

Answer:

Here is the Java code for the insertion sort algorithm with the required modifications:

```

import java.util.Scanner;

public class InsertionSort {

 

 // Static variables to count comparisons and swaps

 static int comparisons = 0;

 static int swaps = 0;

 

 public static void main(String[] args) {

   // Step 1: Read the size and elements of the array

   Scanner scanner = new Scanner(System.in);

   int size = scanner.nextInt();

   int[] nums = new int[size];

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

     nums[i] = scanner.nextInt();

   }

   scanner.close();

   

   // Step 2: Output the initial array

   printNums(nums);

   

   // Step 3: Perform insertion sort with modifications

   insertionSort(nums);

   

   // Step 4: Output the sorted array and counts

   printNums(nums);

   System.out.println("comparisons: " + comparisons);

   System.out.println("swaps: " + swaps);

 }

 

 public static void insertionSort(int[] nums) {

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

     int j = i;

     while (j > 0 && nums[j] < nums[j-1]) {

       // Swap nums[j] and nums[j-1] and count swaps

       swap(nums, j, j-1);

       swaps++;

       // Increment j and count comparisons

       j--;

       comparisons++;

     }

     // Output the array during each iteration of the outside loop

     printNums(nums);

   }

 }

 

 public static int[] readNums() {

   Scanner scanner = new Scanner(System.in);

   int size = scanner.nextInt();

   int[] nums = new int[size];

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

     nums[i] = scanner.nextInt();

   }

   scanner.close();

   return nums;

 }

 

 public static void printNums(int[] nums) {

   System.out.print(nums[0]);

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

     System.out.print(" " + nums[i]);

   }

   System.out.println();

 }

 

 public static void swap(int[] nums, int j, int k) {

   int temp = nums[j];

   nums[j] = nums[k];

   nums[k] = temp;

 }

}

```

When the input is "6 3 2 1 5 9 8", this program outputs the desired result:

```

6 3 2 1 5 9 8

3 6 2 1 5 9 8

2 3 6 1 5 9 8

1 2 3 6 5 9 8

1 2 3 5 6 9 8

1 2 3 5 6 8 9

comparisons: 7

swaps: 4

```

3. (5pts )Given an unweighted undirected graph G, and a vertex pair u and v, please give out a pseudo code returning T if v is reachable from u. Otherwise return F. Analyze the time complexity of your algorithm.

Answers

The time complexity of your algorithm in the graph is given:

function isReachable(u, v, visited, graph):

   if u == v:

       return True

   visited[u] = True

   

   for neighbor in graph[u]:

       if not visited[neighbor]:

           if isReachable(neighbor, v, visited, graph):

               return True

   

   return False

How to explain the graph

Here, graph is the adjacency list representation of the graph, visited is an array that stores whether a vertex has been visited or not, and u and v are the source and destination vertices respectively.

Learn more about graph on

https://brainly.com/question/25184007

#SPJ1

MyPltw 1.2.2 Hack Attack.

I need help on getting the PasswordNumberGuess label to show the numbers that are being tested. (Also for some reason, when I hack, the api says “error incorrect password” but when I retrieve the string it has been reset, why is that?)

Answers

To display the numbers being tested in the PasswordNumberGuess label, you can add the following code inside the for loop:

PasswordNumberGuess.Text = i.ToString();

How would this solve your problem?

Considering the complication with the password reset, it is conceivable that the API has been configured to reset the password after a certain number of failed endeavors.

One should inspect the API documentation or communicate with the provider of the said service for additional exposure on this trait.

As an additional choice, mayhap there exists an error in your code resulting in unintentionally initiating the exclusion of the password. Consider perusing your program systematically to confirm that you are not automatically restarting the password.

Read more about hack attacks here:

https://brainly.com/question/14366812

#SPJ1

1.6.6 List Article help with codehs answer pls .

Answers

Note that in coding, a list article is an article or tutorial that comprises of help items.

What does List Article for coding comprise of?


When it comes to coding tutorials or documentation, list articles are a popular format that is extensively used.

These types of articles provide organized and brief descriptions with links to programming languages, libraries, tools, or resources using numbered or bulleted lists.

Typically featuring concise explanations, examples, or instructions for each item in the numbered list; these list articles aid the presentation of complex topics into small digestible pieces of information.

Learn more about coding at:

https://brainly.com/question/14461424

#SPJ1

What type of governments exist in Command economy countries?

Answers

controlling governments. they have ownership of major industries, control the production and distribution of goods, etc.

def mystery (a):
for i in range (len(a)):
if (i % 2 == 1):
#*****
S
=
**** MAIN **********
[63, 72, 21, 90, 64, 67, 34]
print(a[i], end = "")
mystery(s)

Answers

Answer: The code defines a function named "mystery" that takes a list as an input argument. Within the function, a for loop iterates over the elements of the input list. If the index of the element is odd (i.e., has a remainder of 1 when divided by 2), the function prints the element without a newline character. The function is then called with the input list [63, 72, 21, 90, 64, 67, 34]. However, the function call is indented incorrectly and is not part of the function definition.

2 al Class A computer networks are identified by IP addresses starting
with 0.0.0.0, class B computer networks are identified by IP addresses
starting with 128.0.0.0 and class C computer networks are identified by IP
addresses starting with 192.0.0.0. (Class D networks begin with 224.0.0.0.)
Write these starting IP addresses in binary format.
b) Using the data above, write down the upper IP addresses of the three
network classes A, B and C.
c) A device on a network has the IP address:
10111110 00001111 00011001 11110000
i) Which class of network is the device part of?
ii) Which bits are used for the net ID and which bits are used for the
host ID?
iii) A network uses IP addresses of the form 200.35.254.25/18.
Explain the significance of the appended value 18.
d) Give two differences between IPv4 and IPv6.

Answers

Due to its primary three octets beginning with the binary form 110, the device belongs to a Class C network.

How to explain the class

ii) In Class C networks, the leading 24 bits thereof stand for the net ID and the latter 8 bits register the host ID.

Two disparities between IPv4 and IPv6 are:

IPv4  on 32-bit addresses conversely IPv6 opts for 128-bits ones, thereby equipping IPv6 with an abundance booster of addresses which permits more devices alongside distinct numbers.

Whereas IPv4 seeks out an organized addressing structure with subnetting, IPv6 wields a smooth addressing etiquettes that relies on prefix delegation eliminating the prerequisites for any sort of subnetting.

Learn more about computer on

https://brainly.com/question/24540334

#SPJ1

Suppose we have relation R(A, B, C, D, E), with some set of FD’s, and we wish to project those FD’s onto relation S(A, B, C). Give the FD’s that hold in S if the FD’s for R are:
a) AB → DE, C → E, D → C, and E →A.
b) A → D, BD → E, AC → E, and DE → B.
c) AB → D, AC → E, BC → D, D → A, and E → B.
d) A → B, B → C, C → D, D → E, and E → A.
In each case, it is sufficient to give a minimal basis for the full set of FD’s of S

Answers

The minimal basis for S is therefore AB → A, AB → B, C → E, and D → C.

How to explain the minimal basis

The minimal basis for S is therefore A → D, A → E, and C → E.

The minimal basis for S is therefore AB → A, AB → B, AC → C, BC → B, and C → E.

The minimal basis for S is therefore A → B, B → C, and C → A. Note that the FDs D → E and E → A are not needed, as they are implied by A → B, B → C, and C → A.

Learn more about minimal on

https://brainly.com/question/29481034

#SPJ1

QUESTION 16
Leif is designing a website for his employer. Which of the f
alt text?
a. A photo of the team members
O b. The company logo
O c. The page title
d. A graphical icon

Answers

Leif is designing a website for his employer. The elements on the home page that will NOT require alt text is option  C) The page title

What is the designing  about?

Alt text could be a content portrayal that can be included to pictures and other non-textual elements on a webpage. Its reason is to supply a printed elective to the visual substance, making it available to clients who are outwardly disabled or have other inabilities that affect their ability to see images.

The company symbol could be a visual component that's regularly as of now went with by content, such as the title of the company. In this manner, alt content may not be essential for the symbol.

Learn more about designing   from

https://brainly.com/question/2604531

#SPJ1

See text below

Leif is designing a website for his employer.Which of the following elements on the home page will NOT require alt text?

A) The company logo

B) A photo of the team members

C) The page title

D) A graphical icon

the silencing and prosecution of media platforms and personalities

Answers

The silencing and prosecution of media platforms and personalities is known as censorship

What are the implications?

It is critical to acknowledge the repercussions that arise from suppressing media outlets and personages, for it jeopardizes free speech and journalistic integrity.

Properly holding these entities accountable for any wrongdoing remains necessary. However, the employment of censorship or persecution as a means to hinder opposition or criticism should be prevented at all costs.

Read more about censorships here:

https://brainly.com/question/29959113

#SPJ1

Which one of the statements is true about cryptocurrency?

Cryptocurrency controls blockchain technology.
Cryptocurrency is a type of digital asset that can be owned.
Cryptocurrency is a type of hash that gives value to a block of data.
Cryptocurrency gets its value based on how many blocks of data it is made of.

Answers

Cryptocurrency is a type of digital asset that can be owned.

The true statement about cryptocurrency is that it is a type of digital asset that can be owned.

Thus option B is correct.

Here,

Cryptocurrency is a digital or virtual currency that uses cryptography (the practice of secure communication) for security and operates independently of a central bank. It is decentralized and can be used to make transactions without the need for an intermediary such as a bank.

Cryptocurrency can be owned and stored in digital wallets, just like traditional money. Its value is determined by market demand and supply, meaning that the price of cryptocurrency can be highly volatile.

Cryptocurrency is not a type of hash or a control of blockchain technology.

Know more about cryptocurrency,

https://brainly.com/question/31646159

#SPJ6

Question 4
Fill in the blank to complete the “increments” function. This function should use a list comprehension to create a list of numbers incremented by 2 (n+2). The function receives two variables and should return a list of incremented consecutive numbers between “start” and “end” inclusively (meaning the range should include both the “start” and “end” values). Complete the list comprehension in this function so that input like “squares(2, 3)” will produce the output “[4, 5]”.

Answers

The increment function will be written thus:

ef increments(start, end):

return [num + 2 for num in range(start, end + 1)]

print(increments(2, 3)) # Should print [4, 5]

print(increments(1, 5)) # Should print [3, 4, 5, 6, 7]

print(increments(0, 10)) # Should print [2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]

How to explain the function

The increments function takes two arguments, start and end, which represent the inclusive range of numbers to be incremented.

The goal is to create a list of numbers incremented by 2 (n+2) using a list comprehension.

Learn more about functions on

https://brainly.com/question/10439235

#SPJ1

Assume you have been contracted by a university to develop a database system to keep track of student registration and accommodation records. The university courses are offered by faculties. Depending on the student’s IQ, there are no limitations to how many courses a student can enroll in. The faculties are not responsible for student accommodation. The university owns a number of hostels and each student is given a shared room key after enrollment. Each room has furniture attached to it. (a) Identify the main entity types for the project. (b) Identify the main relationship types and specify the multiplicity for each relationship. State any assumptions that you make about the data. (c) Using your answers for (a) and (b), draw a single ER diagram to represent the data requirements for the project

Answers

Answer:

Explanation:

(a) The main entity types for the project are:

StudentCourseFacultyHostelRoomFurniture

(b) The main relationship types and their multiplicities are:

One student can enroll in many courses (1 to many)One course can be taken by many students (1 to many)One faculty can offer many courses (1 to many)One course can be offered by one faculty (1 to 1)One hostel can have many rooms (1 to many)One room can be assigned to many students (1 to many)One room has many pieces of furniture (1 to many)One piece of furniture can be in one room only (1 to 1)

Assumptions:

A student can only be assigned to one room.Each piece of furniture can only be in one room.

(c) Here's a diagram that represents the data requirements for the project:

** ATTACHED **

The diagram shows the relationships between the entities, with the multiplicities indicated by the symbols at the ends of the lines connecting them.

The main entity types for this project would be Faculty, Student, Course, Room, and Furniture.

(a) The main entity types for the project are:

- Faculty

- Student

- Course

- Room

- Key

- Furniture

(b) The main relationship types and their multiplicities are as follows:

- Faculty offers courses (1:N)

- Students enroll in courses (M:N)

- Students hold a room key (1:1)

- Rooms have attached furniture (1:N)

Assumptions:

- Each student can enroll in multiple courses.

- The faculty is not responsible for student accommodation.

- Each room has furniture attached to it.

(c) See below for the ER diagram:

ER Diagram

Hence, the main entity types for this project would be Faculty, Student, Course, Room, and Furniture.

Learn more about the database here:

https://brainly.com/question/29412324.

#SPJ2

Does anyone here use or know of a voice/audio recording tool?

I have a friend who uses a voice/audio recording tool (https://tuttu.io/) to make teaching and learning more interactive and engaging for everyone.

The teachers use the recordings either to add to homework/assignments using their QR code feature, or to give feedback to students. It also makes it easier and clearer when given more contextual audio.

Thanks!

Answers

Numerous tools exist that facilitate voice and audio recording, for instance, Audacity, GarageBand, and Voice Memos, alongside QuickTime Player.

What are alternative tools you can use?

Furthermore, apart from Tuttu . io, which you referenced previously, several comparable tools are present for the purpose of not only recording but also editing and distributing audio files online.

Anchor, Spreaker, as well as Sound Cloud serve as a few illustrations here. Given the vast selection available, an individual's personal preferences and needs wholly influence their choice of tool.

Read more about audio tool here:

https://brainly.com/question/23572698

#SPJ1

Which of the following is the correct formula to calculate the weighted average score in cell C8 as shown below?

Answers

Note that the correct formula to calculate the weighted average score is =SUMPRODUCT(C2:C4,B2:B4)

Why is this so?

It is to be noted that Weighted Average is a arithmetic calculation of average value in which one or more than one value of number is given a greater significance or weight.

Weighted average Score can be calculated by two methods:-

By using SUMPRODUCT function

By using SUM function

The SUMPRODUCT function performs the calculation as:-

Ex:- (20*1)+(40*2)+(90*3)

So, The Correct Answer is "=SUMPRODUCT(C2:C4,B2:B4)"

Learn more about formula at:

https://brainly.com/question/30324226

#SPJ1

Which of the following is the correct formula to calculate the weighted average score

in cell C8 as shown below?

=SUMPRODUCT(C2:C5,B2:35)

=SUMPRODUCT(C2:C4,B2:34)

=AVERAGE(B2:34)

=AVERAGE(C2:C4)​

Write a program that uses a list that contains five (5) user names and another list
that contains respectively their five (5) passwords. The program should ask the
user to enter their username and password. If the username is not in the first list,
the program should indicate that the person is not a valid user of the system. If
the username is in the first list, but the user does not enter the right password,
the program should say that the password is invalid. If the password is correct,
then the program should tell the user that they are now logged into the system.

Answers

Answer: Here's the program in Python:

```

# create lists of user names and passwords

usernames = ['john', 'mary', 'dave', 'jane', 'alex']

passwords = ['pass123', 'abc456', 'qwerty', 'password', 'letmein']

# ask user to enter their username and password

username = input("Enter your username: ")

password = input("Enter your password: ")

# check if username is valid

if username not in usernames:

   print("Invalid username.")

else:

   # get the index of the username in the list

   index = usernames.index(username)

   

   # check if password is valid

   if password == passwords[index]:

       print("You are now logged in.")

   else:

       print("Invalid password.")

Explanation: In this program, we first create two lists `usernames` and `passwords` that store the user names and passwords respectively. We then ask the user to enter their username and password using the `input()` function.

Next, we check if the entered username is valid by using the `not in` operator to check if the username is not in the `usernames` list. If the username is invalid, we print a message saying so.

If the username is valid, we get the index of the username in the `usernames` list using the `index()` method. We then check if the entered password matches the password stored at that index in the `passwords` list. If the password is valid, we print a message saying that the user is now logged in. If the password is invalid, we print a message saying so.

What are some possible reasons why Java is the most popular language in high income countries and JavaScript is more popular in developing countries? Explain your answer in 3–5 sentences

Answers

Its popularity is because of its use in enterprise applications while JavaScript's popularity in developing countries could be due to its use in web development and its ease of use for beginners.

Why is Java more popular in high income countries?

Java are used in enterprise applications because its has a strong object-oriented programming paradigm, this is why high income countries have a greater demand for such systems.

But JavaScript is primarily used for web development and has a lower learning curve which makes it more accessible for beginners. The developing countries have a greater focus on web development which makes JavaScript a more popular choice.

Read more about Java

brainly.com/question/26642771

#SPJ1

Assume that "a" is an array of integers. What, if anything, is wrong with this Java statement:
a[a.length] = 10;

Answers

Answer:

What is wrong is the statement is asking about the length before declaring the length.

Explanation:

Need help with Exercise 5

Answers

The program above is one that entails a person to  make program in a programming code to go through the content from an input record.

What is the code about?

Making a computer program program includes composing code, testing code and settling any parts of the code that are wrong, or investigating. Analyze the method of composing a program and find how code editor program can make that prepare less demanding

Therefore, In Windows, to run a program, one have to double-click the executable record or double-click the shortcut symbol indicating to the executable record. If they have got a hard time double-clicking an symbol, they need to be able tap the symbol once to highlight it and after that press the Enter key on the console.

Learn more about code  from

https://brainly.com/question/26134656

#SPJ1

CST-105: Exercise 5

The following exercise assesses your ability to do the following:

Use and manipulate String objects in a programming solution.

1. Review the rubric for this assignment before beginning work. Be sure you are familiar with the criteria for successful completion. The rubric link can be found in the digital classroom under the assignment.

2. Write a program that reads text from a file called input.in. For each word in the file, output the original word and its encrypted equivalent in all-caps. The output should be in a tabular format, as shown below. The output should be written to a file called results.out.

Here are the rules for our encryption algorithm:

a.

If a word has n letters, where n is an even number, move the first n/2 letters to the end of the word. For example, 'before' becomes 'orebef

b. If a word has n letters, where n is an odd number, move the first (n+1)/2 letters to the end of the word. For example: 'kitchen' becomes 'henkitc'

Here is a sample run of the program for the following input file. Your program should work with any file, not just the sample shown here.

EX3.Java mput.ix

mputz.txt w

1 Life is either a daring adventure or nothing at all

Program output

<terminated> EX3 [Java Application] CAProg

Life

FELI

is

SI

either

HEREIT

a

A

daring

INGDAR

adventure

TUREADVEN

or

RO

nothing

INGNOTH

at all

TA

LAL

3. Make a video of your project. In your video, discuss your code and run your program. Your video should not exceed 4 minutes.

Submit the following in the digital classroom:

A text file containing

O

Your program

O

A link to your video

How much paint?

A gallon of paint covers 422 square feet and costs $29.85. Using flowgorithm
determine and display the amount of paint it will take to paint a fence of a
specified height and length, the fence is solid not rails.
Your flowgorithm should perform the following tasks:

 Declare all required variables
 Declare constants and initialize them
 Prompt for the input of the fence height
 Prompt for the input of the fence length
 Calculate the total square feet to be painted
 Calculate the required number of gallons of paint required, you cannot
purchase a partial gallon of paint**
 Display, with appropriate output labels, the total square feet to be painted,
the number of gallons of paint needed and the total cost of the paint
 Ask if a second estimate needs to be made (keep program running until told
to stop)
**modulo operator perhaps

Remember the following:
 make sure your calculations are correct
 use clear prompts for your input
 label each output number or name

Answers

Answer:

program PaintCalculator

   // Declare variables

   height : real

   length : real

   area : real

   gallons : integer

   cost : real

   answer : char

   // Declare constants

   SQ_FT_PER_GALLON : integer = 422

   PRICE_PER_GALLON : real = 29.85

   repeat

       // Prompt for input

       output "Enter the height of the fence in feet: "

       input height

       output "Enter the length of the fence in feet: "

       input length

       // Calculate area and gallons needed

       area <- height * length

       gallons <- area / SQ_FT_PER_GALLON

       if area % SQ_FT_PER_GALLON > 0 then

           gallons <- gallons + 1

       end if

       // Calculate cost

       cost <- gallons * PRICE_PER_GALLON

       // Output results

       output "Total square feet to be painted: " + area

       output "Gallons of paint needed: " + gallons

       output "Total cost of paint: $" + cost

       // Ask if user wants to continue

       output "Do you want to make another estimate? (Y/N)"

       input answer

   until answer = 'N'

end program

Digital photography 1b quiz 8 anyone have the answers?

Answers

The answers related to metering in photography are given as follows.

What is the explanation for the above response?

In center-weighted metering, the center of the picture is used to determine exposure. If your subject was in the middle of the frame, you would employ this kind of metering.

Note that a metering setting that only collects data from a tiny portion of the center of the frame, often around 10%.

Instead of altering exposure to account for the significantly stronger light around the hairline, spot metering enables the camera to measure the light reflected off the subject's face and expose appropriately for it.

Learn more about Digital photography at:

https://brainly.com/question/7519393

#SPJ1

Full Question:

Although part of your question is missing, you might be referring to this full question:


1) What is center-weighted metering?
2) What is partial metering?

1. a printed portfolio

2. sheet protectors.

3. Shutterfly

4. forensic photographer

5. managing cash flow.

6. Annie Leibowitz

7. freewriting

8. provenance.

9. poetry or folksy sayings

10. fashion

11. Mike Brodie

12. focus and depth and field

13. to generate ideas that will help you to compose an original and creative artist’s statement

14. write her artist’s statement

15. ethnography

Explanation: All of these answers are correct :)

explain about your business and sales after covid 19 pandemic​

Answers

The global economy has undergone tremendous disruption brought about by the pandemic, with some sectors being grievously hit while others have fresh openings.

What are the effects?

Its aftermath has hastened the conversion to e-business, remote work, and digital remodeling as firms have poured significant capital into technological solutions in order to ameliorate compliance to the current state of affairs. Companies further evaluated their delivery strategies and diversified places from where they sourced materials so as to minimize any single nation's or region’s influence.

Altogether, the pandemic has showcased the indispensable value of pliancy, robustness, and novelty for business operations, and those entities that were able to adeptly conform to the existing condition are predicted to thrive in the post-COVID period.

Read more about business here:

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

Help ASAP Title slide: Give as a minimum, the name of the layer you are presenting. The layer data unit: Give the name of the layer'ss data unit and include information about the header and footer( if there is one). Diagram:Include a diagram (usingnsquares. circles arrows, etc.) showing the data unit and what its headers and footers do. Emancipation/decapsulation: Show where in the process the layer sits. List the layers that are encapsulated before your layer. List the layers that are decapsulated before your layer. Security: list one or two security risks at your layer and how to guard them. ​

Answers

I apologize, but your prompt is incomplete and it is not clear which specific layer you are referring to. Can you please provide more information or context so that I can better understand your question and provide a helpful response?

Which of the following should get a page quality (pg) rating of low or lowest? Select all that apply

Answers

The staement that are true or false about page quality (pg) rating is been selected below;

The statement “All queries have only one intent: Know, Do, Website or Visit-in-Person intent” is True.The statement “The intent of a Do query is to accomplish a goal or engage in an activity on a phone” is True.The statement “The intent of a Website query is to find information” is True.The statement “There is absolutely no information about who is responsible for the content of the website on a YMYL topic” is True.The statement “All the Main Content(MC) of the page is copied and created with deceptive intent” is True.The statement “A page with a mismatch between the location of the page and the rating location; for example, an English page for an English rating task’ is True.“A file type other than a web page, for example; a PDF, a Microsoft Word document or a PNG file” is False.

What is page quality (pg) rating?

A Page Quality (PQ) rating can be described as one that encompass the URL  as well as grid  so that it can help in the documentation of the  observations,  which will definiteley serves as the  guide  with respect to the  exploration of the landing page.

It should be noted that the goal of Page Quality rating  is based on the evaluation of completeness of the  function.

Learn more about page quality at:

https://brainly.com/question/15572876

#SPJ1

complete question;

Which of the following should get a Page Quality (PQ) rating of Low or Lowest? Select all that apply. True False A page with a mismatch between the location of the page and the rating location; for example, an English (UK) page for an English (US) rating task. True False A file type other than a webpage, for example: a PDF, a Microsoft Word document, or a PNG file. True False A page that gets a Didn't Load flag. True False Pages with an obvious problem with functionality or errors in displaying content.

python code to perform a transfer app

Answers

this a answer, thanks

In Windows, a simple permission is actually a larger set of___
O partial permissions.
O special permissions.
O user permissions.
O admin permissions.

Answers

In Windows, a simple permission is actually a larger set of option B: special permissions.

What is the permission?

Permissions in Windows are used to control approach to files and folders on the system. Permissions maybe granted to individual consumers or groups, and they determine what conduct users can perform on the file or binder, such as account, writing, or killing. In Windows, there are two types of permissions: standard permissions and distinctive permissions.

Standard permissions are predefined sets of permissions that control basic approach to files and folders, such as express, write, kill, and delete .On the other hand, special permissions are more coarse and allow consumers to perform distinguishing actions.

Learn more about permission    from

https://brainly.com/question/30245801

#SPJ1

Select all the correct answers,
Which two features do integrated development environments (IDEs) and website builders both provide?
offer pre-defined themes for layout
offer a file manager to store all programming and multimedia resources
make use of WYSIWYG editors
help highlight errors in source code
help ensure the website will perform on all platforms
Reset
Next

Answers

The features that integrated development environments (IDEs) and website builders both provide are:

offer pre-defined themes for layout (Option A)help ensure the website will perform on all platforms (Option D)

How does this work?

When building a website, the designers would usually given the principal the option of selection from a host of diverse thems that are suitable fo rtheir brand.

Also, when the website is ready, the web builders must ensure that it can perform on all platforms. This is called web optimization.

Thus, the options A and D are the correct answers.

Learn more about website builders:
https://brainly.com/question/30712860
#SPJ1

Other Questions
Organisms that compete for resources are involved in a "competitive arms race" to help predators exert evolutionary selection on their prey, and prey to avoid being eaten. Strategies used to adapt to such exploitative interactions include: O a. Mimicry (look like another animal or plant) O b. Camouflage (blend in with habitat) O c. Toxins O d. Physical features such as body armor, spines, size, and ability to move quickly O e. All of the above Question True or False:Datums assure repeatability for location of the part for inspection. public goods are hard for private business to provide profitably. by definition provided by the government. how are these reglatory agencies structured so that they are largely independent of the white house and presidential control? Find Arc MACAbove 107 is x-9Image not to scale which of the following best describes a k-selected species? long life span high parental investment low rates of reproduction quick maturation Which net represents this solid figure? a 0.350 kg of ice is initially at temperature of -14 c. how much heat is required to melt one quarter mass of the ice only What is the name of this shape?A shape is shown with 4 sides of different lengths. Each side is not equal to the other. A. quadrilateral B. pentagon C. triangle D. hexagon explain why the following telescope might not be very effective for research: a 10-m x-ray telescope located on mauna kea (where many big telescopes are) in hawaii there is a significant difference in absenteeism among the different satisfaction groups after accounting for job complexity and seniority. suppose you titrated a sample of acetic acid (monoprotic acid) with a 0.125 m solution of naoh. given the data in the table, what is the concentration of the original acetic acid solution?volume of 0.125 m naoh dispensed (ml) 22.40 volume of acetic acid solution used (ml) 15.00 volume of water added to the acetic acid solution (ml) 15.00 Through the course of time, bodies in our solar system have become_________ and __________ due to collisions. Early civilizations used standard measuring pottery to measure volume. As recently at the 1800's in the U.S. units of measures varied from area to area. When California became a state in 1850, one of the first laws passed was to establish weights and measures standards.What is the volume of the cylinder? A censorship technique can use any combination of criteria based on content, source ip and destination ip to block access to objectionable contenta. trueb. false Which is a function The Finishing Department of Concord Company has the following production and cost data for July: 1. Completed and transferred out, 9,120 units. 2 Ending work in process inventory, 2,280 units that are 40% complete as to conversion costs. 3 Materials added, $37,620; conversion costs incurred, $20,064. Materials are entered at the beginning of the process. Conversion costs are incurred uniformly during the process. Concord Company uses weighted average process costing, and there were no units in beginning work in process. (a) Your answer has been saved. See score details after the due date. Compute the equivalent units of production for materials and conversion costs for the month of July. Equivalent units production for material cost 11.400 units Equivalent units of production for conversion cost 10,488 units e Textbook and Media (b) Compute unit costs and prepare a cost reconciliation schedule. Materials cost $ per unit (Round answer to 2 decimal places, e.g. 5.21.) Conversion cost ta per unit (Round answer to 2 decimal places, e.g. 5.21.) Cost reconciliation schedule Costs accounted for Completed and transferred out $ Work in process inventory, 7/31 Materials $ Conversion costs Total costs accounted for $ $ They say the people could fly. Say that long ago in Africa, some of the people knew magic. And they would walk up on the air like climbin up on a gate. And they flew like blackbirds over the fields. Black, shiny wings flappin against the blue up there.Which element of a folktale appears in this excerpt? Which equation represents the parabola with focus (1,4)and latus rectum of 4?y=14(x1)2+3y=4(x1)2+3y=(x1)2+4y=14(x1)2+3 Which part of project management involves determining the required materials?