Define a class named Bits that holds a single integer variable. You will use this integer simply as a container of bits. The number of bits you can support depends on the type of integer you use. We will use an unsigned long long, which on most platforms occupies 64 bits.

Answers

Answer 1
In two or more integer plat forms

Related Questions

g) Describe four features you expect to find on tablets and smartphones.​

g) Describe four features you expect to find on tablets and smartphones.

Answers

Four common features found on tablets and smartphones are:

Touchscreen Interface: Both tablets and smartphones typically have touchscreen displays that allow users to interact with the device by tapping, swiping, or pinching on the screen. Touchscreens enable intuitive navigation and control of applications, menus, and content.Wireless Connectivity: Tablets and smartphones are equipped with wireless connectivity options such as Wi-Fi and Bluetooth. Wi-Fi allows for internet access and data transfer over wireless networks, while Bluetooth enables wireless communication with other compatible devices, such as headphones, speakers, or smartwatches.Cameras: Most tablets and smartphones are equipped with built-in cameras, both front-facing and rear-facing. Cameras enable users to capture photos and videos, make video calls, and scan QR codes or barcodes. The quality and capabilities of the cameras may vary depending on the device's specifications.Mobile Applications (Apps): Tablets and smartphones support the installation and use of mobile applications, commonly referred to as apps. These apps provide a wide range of functionality, including productivity tools, social media platforms, entertainment content, gaming, navigation.

It's important to note that the features mentioned above are not exhaustive, and tablets and smartphones may include many additional features such as biometric authentication.

for similar questions on smartphones.​

https://brainly.com/question/31692112

#SPJ8

2 point) Express this problem formally with input and output conditions.2.(2 points) Describe a simple algorithm to compute the upper median. How manyoperations does it take asymptotically in the worst case?3.(7 points) Show how you can use the (upper) medians of the two lists to reduce thisproblem to its subproblems. State a precise self-reduction for your problem.4. (7 points) State a recursive algorithm that solves the problem based on your reduction.5.(2 point) State a tight asymptotic bound on the number of operations used by youralgorithm in the worst case.

Answers

Answer:

See attached images

2 point) Express this problem formally with input and output conditions.2.(2 points) Describe a simple
2 point) Express this problem formally with input and output conditions.2.(2 points) Describe a simple
2 point) Express this problem formally with input and output conditions.2.(2 points) Describe a simple

Which of the following rights is NOT guaranteed by copyright?
Right to avoid criticism
Right to make derivatives
Right to reproduce a work
Right to sell, rent, or lend
Mark this question for review

Answers

Answer:

A. Right to avoid criticism

Explanation:

Patent can be defined as the exclusive or sole right granted to an inventor by a sovereign authority such as a government, which enables him or her to manufacture, use, or sell an invention for a specific period of time.

Generally, patents are used on innovation for products that are manufactured through the application of various technologies.

Basically, the three (3) main ways to protect an intellectual property is to employ the use of

I. Trademarks.

II. Patents.

III. Copyright.

Copyright law can be defined as a set of formal rules granted by a government to protect an intellectual property by giving the owner an exclusive right to use while preventing any unauthorized access, use or duplication by others.

Hence, the right that is not guaranteed by copyright laws is the right to avoid criticism because as an author or writer your literary work is subject to criticism from the readers and by extension the general public.

What is CPU? List its major parts.​

Answers

Answer:

The central processing unit is the brain of the computer. it is the part of the computer which performs manipulations. it is also called the microprocessor.

components of the CPU: The control unit, the arithmetic and logic unit, the register and the memory unit.

I hope you understand:-):-)

I will give brainliest!!!!! I NEED HELP ASAP!!!!!!!

I will give brainliest!!!!! I NEED HELP ASAP!!!!!!!

Answers

Answer:

c

Explanation:

Write an algorithm to solve general formula? ​

Answers

Answer:

2+2=4

Explanation:

simple math cause of that bubye

Which of the following behaviors is likely to result in increased plasticity and myelination in areas ofthe brain responsible for higher-order cognition?
a. Jogging 2 miles a day, as you have done for the last 3 years b. Learning tai chi for the first time
c. Completing a Sudoku puzzle
d. Riding in a horse-drawn carriage for the first time

Answers

The behaviors that likely increased plasticity and myelination in areas of the brain responsible for higher-order cognition is c. completing a sudoku puzzle.

What is higher-order cognition?

Higher-order cognition is the brain's ability to understand the steps that are needed to solve some problems and also implement that steps. This also ability to attack new areas of learning and to give the ability to creative thinking.

Completing a sudoku puzzle will train the brain to increase higher-order cognition so it also increases myelination and plasticity in the areas of the brain that are responsible for that cognition.

Thus, option c. completing a sudoku puzzle is the correct behavior to increase plasticity and myelination in areas of the brain that are responsible for higher-order cognition.

Learn more about higher-order cognition here:

brainly.com/question/11220691

#SPJ4

A pop up blocker is a web browser feature that?

Answers

Answer:

blocks websites so you cant do them if your taking a test some of them wont allow pop up blockers and you will not be able to take the test or a website that does not accpet pop up blockers

Explanation:

Answer: prevents unwanted advertisements

Explanation:

What are the core steps to add revisions or features to a project?(1 point)
Responses

Evaluate feasibility of the goals, create a list of functionality requirements, and develop the requirements of the feature.

Evaluate feasibility of the goals, develop programming solutions, and evaluate how well the solutions address the goals.

understand the goals, evaluate the impact on the project, create a list of functionality requirements, and develop the requirements of the feature.

Communicate with the client, create a sprint backlog, develop the project, and evaluate how well the solution fits the requirements.

Answers

The core steps to add revisions or features to a project are ""Understand the goals, evaluate the impact on the project, create a list of functionality requirements, and develop the requirements of the feature." (Option C)

How  is this so?

 

The core steps to add revisions or features to a project include understanding the goals,evaluating the impact on   the project, creating a list of functionality requirements,and developing   the requirements of the feature.

These steps ensure that the goals are clear, the impact is assessed, and the necessary functionality is identified and implemented effectively.

Learn more about project management at:

https://brainly.com/question/16927451

#SPJ1

(answer asap!! Giving brainliest if correct!)

Felix is going back through an email he wrote and editing it to make it more to the point and to get rid of extra words where they're not needed. What characteristic of effective communication is he working on?

A: conciseness

B: completeness

C: correctness

D: courteousness

Answers

A since conciseness is something brief

Answer:

A: conciseness

Consider the following code: x = 9 y = -3 z = 2 print ((x + y) * z) What is output?

Answers

The answer will be 3

Explanation of how 3D printing gives SpaceX a competitive advantage
and
Discussion of how business intelligence is used or could be used to support SpaceX's 3D printing process

Answers

SpaceX gains a competitive advantage with the implementation of 3D printing technology, which provides an economical solution to producing lightweight and customizable parts that are intricate in design.

How is this so?

The use of this cutting-edge technology facilitates rapid iteration, reducing both developmental costs and time. It enables the company to manufacture these materials in-house, thereby averting external supply chain inefficiencies.

Moreover, by using Business Intelligence tools to analyze data related to some factors as part performance and supply chain logistics, it becomes easier for SpaceX not only to monitor the operational efficiency of its manufactured products but also spot possible optimization opportunities.

Learn more about 3D printing at:

https://brainly.com/question/30348821

#SPJ1

You just started your new position at a small doctor’s office. A nurse asks you to print out a report for a patient. The patient’s name is Tim Drake, but you find multiple files with that name. You discover that the files are named differently. Looking at the files for Mr. Drake, you find the following files:

01_DrakeTim

DrakeTim_A

TimDrake001

timdrake

2. Initial Post: Create a new thread and answer all three parts of the initial prompt below

What methods could you use to help you find the files you need?

Why is choosing a descriptive or detailed name for your files a useful practice?

What recommendations might you make to the office manager to better organize the office files?

Answers

To find the files for Tim Drake, who has multiple files with different naming conventions, you can use the following methods:

Search Function: Utilize the search function in the file management system or operating system. Enter the name "Tim Drake" or a variation of it to locate the relevant files. The search function will scan file names and contents, making it easier to find the specific files you need.

Sorting: Sort the files by name, date modified, or any other relevant criteria. This can help group similar files together and make it easier to identify the correct ones. For example, sorting the files alphabetically will cluster the files with similar names closer to each other.

File Metadata: Check the metadata or properties of the files. Some file systems allow you to add tags or keywords to files, making it easier to search for them based on specific attributes. Ensure that the files are properly tagged with relevant information like patient names, dates, or other identifying details.

Choosing descriptive or detailed names for files is a useful practice for several reasons:

Easy Identification: A descriptive file name provides clear information about the content or purpose of the file. When you or others need to locate a specific file, a well-named file can be easily identified among many others. It reduces confusion and saves time.

Organization: Descriptive file names help in organizing files within a system. By using meaningful names, files can be grouped or sorted based on their purpose, type, or relevance. This enhances overall file management and facilitates efficient retrieval of information.

Clarity and Consistency: A consistent naming convention ensures uniformity and clarity across files. It helps maintain a standardized structure and allows for easy understanding of file names by all users. This consistency improves collaboration and reduces errors.

To better organize the office files, the following recommendations can be made to the office manager:

Implement a File Naming Convention: Establish a standardized naming convention for files that includes relevant details such as patient names, dates, and file types. Ensure that all staff members adhere to this convention when creating or saving files. This will promote consistency and ease of file retrieval.

Folder Structure: Create a well-structured folder hierarchy based on categories, such as patient names, departments, or file types. This arrangement should be intuitive and reflect the needs of the office. Maintain consistency throughout the folder structure to facilitate easy navigation and organization of files.

Document Management System: Consider implementing a document management system (DMS) or electronic health record (EHR) system to centralize and streamline file management. These systems offer features like robust search capabilities, metadata tagging, version control, and secure access controls. They can greatly improve file organization and retrieval efficiency.

For more questions on conventions

https://brainly.com/question/31174724

#SPJ11

A photographer stores digital photographs on her computer. In this case the photographs are considered the data. Each photograph also includes multiple pieces of metadata including:
Date: The date the photograph was taken
Time: The time the photograph was taken
Location: The location where the photograph was taken
Device: Which camera the photo was taken with
Which of the following could the photographer NOT do based on this metadata?

Answers

Answer:D

Explanation:

Answer:

C filter photos to those taken of buildings

Explanation:

she wouldn't be able to tell which pictures are of buildings using that metadata.

reindexing only valid with uniquely valued index objects

Answers

This means that the index must consist of only unique values, such as integers or strings, and not duplicates or multiple values of the same type. Reindexing allows for the creation of an ordered list of values from an existing set of values, which can be useful for data analysis.

Reindexing is a useful tool for data analysis because it allows for the creation of an ordered list of values from an existing set of values. This is only possible when the index consists of unique values, such as integers or strings. Duplicates or multiple values of the same type in the index will not be accepted for reindexing. This technique is useful for organizing data in a manner that is easy to analyze, such as sorting a list of numbers from lowest to highest. Additionally, reindexing can help identify any outliers or missing values in the data set. Reindexing is a powerful tool for data analysis and should be used when appropriate.

Learn more about string here-

brainly.com/question/14528583

#SPJ4

The complete question is

Reindexing is only valid with uniquely valued index objects in Python.

Which of the following class definition defines a legal abstract class Group of answer choices public class Rectangle abstract { public abstract double findArea ( ); } public abstract class Rectangle { public abstract double findArea ( ); } public class Rectangle { public abstract double findArea ( ); } public class abstract Rectangle { public abstract double findArea ( ); }

Answers

Question

Which of the following class definition defines a legal abstract class Group of answer choices

(a)

public class Rectangle abstract {

   public abstract double findArea ( );

   

}

(b)

public abstract class Rectangle {

   public abstract double findArea ( );

   

}

(c)

public class Rectangle {

   public abstract double findArea ( );

   

}

(d)

public class abstract Rectangle {

   public abstract double findArea ( );

   

}

Answer:

(b)

public abstract class Rectangle {

   public abstract double findArea ( );

}

Explanation:

When a class is declared with the abstract keyword, the class is called an abstract class. Abstract classes cannot be instantiated and may include one or more abstract methods. If a class contains an abstract method, then it (the class) must be declared abstract.

In Java, abstract classes are defined using the following format:

[access_modifier] abstract class [name_of_class]

[access_modifier] specifies the access modifier of the class which could be public, private, e.t.c

abstract is the keyword that specifies that the class is an abstract class.

class is a keyword used for defining classes

name_of_class specifies the name of the class.

The only option that fulfils this format is option b where;

(i) The access modifier is public

(ii) The name of the class is Rectangle

Option a is not correct because the abstract keyword is supposed to come before the class keyword.

Option c is not correct because the keyword abstract is missing. In other words, the class must be declared abstract since it contains abstract method findArea();

Option d is not correct because the abstract keyword is supposed to come before the class keyword.

Summary
In this lab, you complete a prewritten C++ program that calculates an employee’s end-of-year bonus and prints the employee’s name, yearly salary, performance rating, and bonus. In this program, bonuses are calculated based on employees’ annual salary and their performance rating.

Instructions
Variables have been declared for you, and the input statements and output statements have been written. Read them over carefully before you proceed to the next step.
Design the logic, and write the rest of the program using a switch statement.
Execute the program by clicking the Run button at the bottom of the screen entering the following as input:
Employee’s name: Jeanne Hanson
Employee’s salary: 70000.00
Employee’s performance rating: 2
Confirm that your output matches the following:
Employee Name: Jeanne Hanson
Employee Salary: $70000
Employee Rating: 2
Employee Bonus: $10500



This is what I have:



// EmployeeBonus.cpp - This program calculates an employee's yearly bonus.


#include
#include
using namespace std;
int main()
{
// Declare and initialize variables here
string employeeFirstName;
string employeeLastName;
double numPerformanceRate;
double numSalary;
double score;
double bonus;
const double BONUS_1 = .10;
const double BONUS_2 = .20;
const double BONUS_3 = .30;
const double BONUS_4 = .40;

const int RATING_1 = 1;
const int RATING_2 = 2;
const int RATING_3 = 3;
const int RATING_4 = 4;

// This is the work done in the housekeeping() function
cout << "Enter employee's first name: ";
cin >> employeeFirstName;
cout << "Enter employee's last name: ";
cin >> employeeLastName;
cout << "Enter employee's salary: ";
cin >> numSalary;
cout << "Employee’s performance rating: ";
cin >> numPerformanceRate;


// This is the work done in the detailLoop()function
// Write your code here


// This is the work done in the endOfJob() function
// Output.
cout << "Employee Name: " << employeeFirstName << " " << employeeLastName << endl;
cout << " Employee Salary: "<< numSalary << endl;
cout << "Employee Rating: " << numPerformanceRate << endl;
cout << "Employee Bonus: $" << bonus << endl;


return 0;
}


what am I doing wrong?

Answers

Answer:

You need to write the code that calculates the bonus based on the employee's performance rating and salary. This calculation should be done inside the switch statement and the bonus variable should be updated with the correct value. You can use the numPerformanceRate and numSalary variables to determine the bonus, and the BONUS_1, BONUS_2, BONUS_3, and BONUS_4 constants to calculate the bonus.

Explanation:

switch (numPerformanceRate) {

 case RATING_1:

   bonus = numSalary * BONUS_1;

   break;

 case RATING_2:

   bonus = numSalary * BONUS_2;

   break;

 case RATING_3:

   bonus = numSalary * BONUS_3;

   break;

 case RATING_4:

   bonus = numSalary * BONUS_4;

   break;

 default:

   cout << "Invalid performance rating. Please enter a number between 1 and 4." << endl;

   break;

}

To have integrity means that you

Answers

You are honest and disciplined

Using your knowledge of classes, arrays, and array list, write the Java code for the UML above in NetBeans. [7 marks]​

Answers

The Java code for the TestElection class that does the tasks is

java

import javax.swing.JOptionPane;

public class TestElection {

   public static void main(String[] args) {

       // Declare an array to store objects of the Election class

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

       Election[] candidates = new Election[length];

       // Request values from the user to initialize the instance variables of Election objects and assign these objects to the array

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

           String name = JOptionPane.showInputDialog("Enter the name of candidate " + (i + 1) + ":");

           int votes = Integer.parseInt(JOptionPane.showInputDialog("Enter the number of votes for candidate " + (i + 1) + ":"));

           candidates[i] = new Election(name, votes);

       }

       // Determine the total number of votes

       int totalVotes = 0;

       for (Election candidate : candidates) {

           totalVotes += candidate.getVotes();

       }

       // Determine the percentage of the total votes received by each candidate and the winner of the election

       String winner = "";

       double maxPercentage = 0.0;

       for (Election candidate : candidates) {

           double percentage = (double) candidate.getVotes() / totalVotes * 100;

           System.out.println(candidate.getName() + " received " + candidate.getVotes() + " votes (" + percentage + "%)");

           if (percentage > maxPercentage) {

               maxPercentage = percentage;

               winner = candidate.getName();

           }

       }

       System.out.println("The winner of the election is " + winner);

   }

}

What is the arrays about?

In the above code, it is talking about a group of things called "candidates" that are being saved in a special place called an "array. " One can ask the user how long they want the list to be using JOptionPane and then make the list that long.

Also based on the code, one can also ask the user to give us information for each Election object in the array, like the name and number of votes they got, using a tool called JOptionPane.

Learn more about  arrays from

https://brainly.com/question/19634243

#SPJ1

Using your knowledge of classes, arrays, and array list, write the Java code for the UML above in NetBeans. [7 marks] Write the Java code for the main method in a class called TestElection to do the following: a) Declare an array to store objects of the class defined by the UML above. Use a method from the JOptionPane class to request the length of the array from the user. [3 marks] b) Use a method from the JOptionPane class to request values from the user to initialize the instance variables of Election objects and assign these objects to the array. The array must be filled. [5 marks] c) Determine the total number of votes and the percentage of the total votes received by each candidate and the winner of the election. The sample output of your program is shown below. Use methods from the System.out stream for your output.

In a train stations database, an employee MUST be a train driver, ticket issuer or train attendant, with following constraint: Same employee cannot occupy more than one job type.
Draw EER diagram to represent specialization of employees in the train station database.

Answers

The EER diagram for the train station database can be represented as follows:

The EER diagram

      +-------------------+

      |     Employee      |

      +-------------------+

      | employee_id (PK)  |

      | name              |

      | address           |

      +-------------------+

             ^

             |

             |

+-------------+----------------+

|                             |

|                             |

|                             |

|                             |

v                             v

+-------------------+  +-------------------+  +-------------------+

|  Train Driver    |  |  Ticket Issuer    |  |  Train Attendant  |

+-------------------+  +-------------------+  +-------------------+

| employee_id ()  |  | employee_id ()  |  | employee_id ()  |

| license_number    |  | badge_number      |  | uniform_size      |

+-------------------+  +-------------------+  +-------------------+

The given illustration features a fundamental element known as "Employee", which denotes every individual employed at the railway station.

The "Employee" object is equipped with features, like employee identification number, full name, and place of residence. The "Employee" entity gives rise to three distinct units, namely "Train Driver," "Ticket Issuer," and "Train Attendant. "

Every distinct entity has an attribute known as foreign key (employee_id) that refers to the main key of the "Employee" entity. Each distinct unit possesses distinct characteristics that are unique to their job category, such as license_number for Train Drivers, badge_number for Ticket Issuers, and uniform_size for Train Attendants.

Read more about database here:

https://brainly.com/question/518894

#SPJ1

how do you fill different data into different cells at a time in Excel

Answers

The way that you fill different data into different cells at a time in Excel are:

Click on one or a lot of cells that you want to make use of as the basis that is needed for filling additional cells. For a set such as 1, 2, 3, 4, 5..., make sure to type 1 and 2 into the 1st two cells. Then pull the fill handle .If required, select Auto Fill Options. and select the option you want.

How do you make a group of cells auto-fill?

The first thing to do is to place the mouse pointer over the cell's bottom right corner and hold it there until a black + symbol appears. Drag the + symbol over the cells you wish to fill in while clicking and holding down the left mouse button. Additionally, the AutoFill tool rightly fills up the series for you.

Note that  Excel data entering  can be automated and this can be done by: On the Data tab, select "Data Validation," then click "Data Validation." In the Allow box, select "List." Enter your list items in the Source box, separating them with commas. To add the list, click "OK." If you wish to copy the list along the column, use the Fill Handle.

Learn more about Excel from

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

what is star topology

Answers

every node connects to a central network device. like a hub, switch, or computer.
It’s a local area network in which all nodes are individual connected to a central connection point, like a hub or a switch

You are a systems analyst. Many a time have you heard friends and colleagues complaining that their jobs and businesses are being negatively impacted by e-commerce. As a systems analyst, you decide to research whether this is true or not. Examine the impact of e-commerce on trade and employment/unemployment, and present your findings as a research essay.

Answers

E-commerce, the online buying and selling of goods and services, has significantly impacted trade, employment, and unemployment. This research essay provides a comprehensive analysis of its effects.

What happens with  e-commerce

Contrary to popular belief, e-commerce has led to the growth and expansion of trade by breaking down geographical barriers and providing access to global markets for businesses, particularly SMEs. It has also created job opportunities in areas such as operations, logistics, customer service, web development, and digital marketing.

While certain sectors have experienced disruption, traditional businesses can adapt and benefit from e-commerce by adopting omni-channel strategies. The retail industry, in particular, has undergone significant transformation. E-commerce has empowered small businesses, allowing them to compete with larger enterprises and fostered entrepreneurial growth and innovation. However, there have been job displacements in some areas, necessitating individuals to transition and acquire new skills.

Read mroe on  e-commerce here  https://brainly.com/question/29115983

#SPJ1

walk through the stair process as it would apply to a hypothetical software development cycle for a video game developer. explain what each stop would look like for such a project

Answers

The stair process, also known as the Software Development Life Cycle (SDLC), consists of several stages that guide the development of software projects.

Let's walk through the stair process as it would apply to a hypothetical software development cycle for a video game developer:

1. Requirement Gathering: In this stage, the game development team gathers requirements and specifications from stakeholders, including the target audience, game mechanics, graphics, and storyline.

2. Design: Based on the requirements, the team creates a detailed design plan. This includes the game's architecture, user interface, levels, characters, and assets.

3. Development: Developers start coding the game, implementing the design elements. This stage involves programming, creating game mechanics, integrating audio and visuals, and optimizing performance.

4. Testing: The game undergoes rigorous testing to identify bugs, glitches, and gameplay issues. Testers play the game, report any problems, and ensure it meets the desired quality standards.

5. Deployment: Once the game is stable and meets the necessary criteria, it is deployed for release. This involves packaging the game, creating installation files, and making it available for distribution

6. Maintenance: After release, the development team provides ongoing support, updates, and bug fixes to ensure the game remains playable and enjoyable for users. They may also address user feedback and implement improvements.

Throughout the entire process, documentation, project management, and collaboration are essential for tracking progress, managing resources, and ensuring effective communication among team members.

By following this stair process, video game developers can effectively plan, develop, test, deploy, and maintain their games, ensuring a systematic and structured approach to the development cycle.

For more questions on SDLC, click on:

https://brainly.com/question/15696694

#SPJ8

Select the correct answer.
How are WYSIWYG editors useful?

Α.They encrypt web page data for security.

B.They add animation effects to text.

C.They show web pages as they would look in a browser.

D.They show web pages as they would look in a text editor.

Select the correct answer.How are WYSIWYG editors useful?.They encrypt web page data for security.B.They

Answers

It is C because it is the only one that makes sense

Answer: The correct answer is C) a text editor and web browser.

Explanation: A text editor is important because it is the most basic and necessary tool for coding in any language, such as HTML. A web browser is important because it provides the possibility of testing the code with internet and some other tools and software the person may have uploaded. A WYSIWYG editor is not necessary for manual coding, although it may help in some cases. A monitor is actually a basic tool for all this activity because all machines must have one for visualising everything, however it is not for coding, only for visualising.

Why are tuples in a relation not ordered?

Answers

Answer: The answer is given below

Explanation:

A relation is a set of tuples that are comparable to the entries that are on a list. Tuples are typically logical definitions that simply attempts to represent facts that are being defined at an abstract level.

It should be noted that there can be specification of several logical orders in a relation and there's no preference during logical ordering as one isn't placed over another.

You want a cable that could be used as a bus segment for your office network. The cable should also be able to support up to 100 devices. Which cable should you use?

A.
RG-6
B.
RG-8
C.
RG-58U
D.
RG-59

Answers

Answer: C

Explanation:

Create a games that simulates rolling of two dice by generating two random numbers between 1 and 6 inclusive. The chooses a number between 2 and 12 (the lowest and the highest total possible for two dice). The player than roll two dice up three times. If the number choose by user comes up, the user wins and games end. If the number does not come up within three rolls, the computer wins.

Answers

Here's a Python implementation of the game:

The Program

def roll_dice():

   return random.randint(1, 6), random.randint(1, 6)

def play_game():

   number_to_guess = random.randint(2, 12)

   print(f"Number to guess is {number_to_guess}")

   for i in range(3):

       dice1, dice2 = roll_dice()

       print(f"Roll {i+1}: {dice1}, {dice2}")

       if dice1 + dice2 == number_to_guess:

           print("You win!")

           return

   print("Computer wins.")

play_game()

The roll_dice function utilizes two random numbers which lie between a range of 1 to 6, and the play_game method engages in a round of the game by picking an arbitrary number on the 2 to 12 spectrum followed by rolling two dice up to three times so that the randomly chosen number might be revealed.

Should the aforementioned number become realized, the player shall emerge victorious; otherwise, it is the computer's turn to bask in glory. Finally, the result of the game is discussed through production to the console.

Read more about programs here:

https://brainly.com/question/23275071

#SPJ1

help me please......​

help me please......

Answers

1. powepoint

2. Presentations

3. Students

4. software

5. image

6. Multimedia

7. animations

8. colors

9. images

10. transitions

11. notes

12. particular

In an array-based implementation of a dictionary, if you represent the entries as an array of objects that encapsulate each search key and corresponding value, how many pointers will you use per array entry?

a. 3
b. 4
c. 2
d. 1

Answers

Answer:

The answer is "Option C".

Explanation:

Dictionary is a set of unsorted data values, that is used to save data like a map and which contains a key: value pair in comparison to many other types of data, which only carry a specific number as just an element.

If we use Dictionary as an array so, it uses a two-pointer variable, one for hold key, and the second is used to hold its value.

Other Questions
AICI3+ Fe2O3 What is the reaction So if the following system of equations by substitution. 7x+2y= -13-3x-8y= -23 A. (-3,1) B. (-3,4)C. (1,3)D. (1,1) Visits to national parks inspire people to plan another trip, to tell their friends, and often, to ask how they can help. We love that! . . . When you get involved, you help ensure that national parks and programs are relevant. Your ideas add strength to the work we do everyday to preserve special places and stories.Which is the authors purpose for writing this passage?to informto persuadeto entertainto reflect determine whether the data described are discrete or continuous. the number of times you login to your email account each day. if a research unobtrusively obseres interactions among patients in a psychiatic hospital for the purposes of data collection, which human right may be violated f x is a prime number, then x + 1 is not a prime number.A counterexample is x = Oprah winfrey has two audiences, the celebrities in the theater and the viewers at home. how does she flatter the celebrities? how does she connect with the television viewers? According to the speaker, Who were the miserable wretches? What were the two things they did to Mexico? an atom of 90kr has a mass of 89.919517 amu. mass of1h atom = 1.007825 amu mass of a neutron = 1.008665 amu calculate the binding energy in mev per atom. (value 1) Use the following to answer questions 31 - 32: Ann is the president of the Paper Supply Company. She is thinking about updating the technology used to produce the paper goods her company sells. Sales have been increasing and are currently around 7,000 tons per year. She has identified the following potential options: Alternative 1 - Use the current technology with annual fixed costs of $10,000 and variable costs of $10 per ton. Alternative 2 - Update the current technology resulting in annual fixed costs of $20,000 and variable costs of $8 per ton. Alternative 3 - Adopt the latest technology resulting in annual fixed costs of $40,000 and variable costs of $6 per ton. 31. The two relevant cross-over volumes (those volumes at which you would shift from one process to another) A) 5,000 & 7,000 B) 7,000 & 10,000 C) 5,000 & 10,000 D) 7,500 & 10,000 Which alternative would you recommend, and why? A) Alternative 1 B) Alternative 2 C) Alternative 3 D) Any of the above I've got this question, which option is correct? Providing for Doubtful AccountsAt the end of the current year, the accounts receivable account has a debit balance of $1,066,000 and sales for the year total $12,080,000.The allowance account before adjustment has a credit balance of $14,400. Bad debt expense is estimated at 3/4 of 1% of sales.The allowance account before adjustment has a credit balance of $14,400. An aging of the accounts in the customer ledger indicates estimated doubtful accounts of $46,100.The allowance account before adjustment has a debit balance of $5,900. Bad debt expense is estimated at 1/4 of 1% of sales.The allowance account before adjustment has a debit balance of $5,900. An aging of the accounts in the customer ledger indicates estimated doubtful accounts of $49,000.Determine the amount of the adjusting entry to provide for doubtful accounts under each of the assumptions (a through d) listed above.a.$fill in the blank 1b.$fill in the blank 2c.$fill in the blank 3d.$fill in the blank 4 _________________ focuses on whether someone focuses on present facts or future possibilities. What does the presence of so much limestone tell us about our past environment? which statements are true about the graph of Y is less than 2/3 X +1? Check all that apply Between the planning and evaluation phases of the strategic marketing process is a phase known as What were the factors that led people to move west? 4) ABC is a triangle. 6 cm 60 C 7 cm (a) Work out the area of triangle ABC. Give your answer correct to 3 significant figures. (b) Work out the length of the side AB. Give your answer correct to 3 significant figures. B Diagram Not drawn accurately Which categories of fonts are used in print ? the ________ and __________ are the categories of fonts are used in print when cheyenne shops in her town, she always buys something at her favorite store, bliss boutique, because the owner burns scented candles, plays calming music for shoppers, and creatively displays the merchandise. bliss boutique understands the importance of