C program Create a dice game that uses two six‐sided dice. Each time the program runs, use random numbers to assign values to each die variable. Output a “player wins” message to the user if the sum of the two dice is 7 or 11. Otherwise, output the sum of the two dice and thank the user for playing.
Q: Given the default schema of a database: Customers 123 Customerld noe FirstName noc LastName Orders…
A: Required Code :- show databases;create database customerDB;use customerDB;--…
Q: Make a program that takes bets on horse races. There will be four types of bets described below.…
A: The complete python code is below:
Q: Where did you get the 0.8 from can you provide more inforamtion please?
A: The average number in the system is the number of packets in the queue divided by the rate at which…
Q: (d) A table listing attributes. (e) A table listing primary keys for each (strong) entity type. You…
A: Here we have given answers for the d , e and f parts. You can find the solution in step 2.
Q: Explain Basic flow of Particle Swarm Optimizationle Compare Pso & G. A (Grenetic Algorithm).
A: Genetic algorithm Genetic algorithms are methods of solving constrained and unconstrained…
Q: Define function print_popcorn_time() with parameter bag_ounces. If bag_ounces is less than 3, print…
A: Solution- Giving the answer When defining the print popcorn time() function, provide the bag ounces…
Q: Do you have a Windows system that is slow and needs optimizing? If not, talk with family and friends…
A: The first thing to try is Performance Troubleshooter, which can automatically detect and fix…
Q: Problem_#05] Express the following numbers in 8-bit sign magnitude notation. (a) +29 (b)-85 (c) +100…
A: Solution- In the given solution all three problms are resolved in stepwise manner- Problem#5- The…
Q: Given the default schema of a database: Customers 123 Customerld noc FirstName noc LastName noc City…
A: The SQL program for the given problem is as follows: use demo;Create table Suppliers(SupplierId int…
Q: Host IP Address: Original Subnet Mask New Subnet Mask: Number of Subnet Bits Number of Subnets…
A: Solution - An step by step solution is given below : 1. The given host IP Address is…
Q: orm of the string "abbaba$"?
A: A data transformation method called the Burrows Wheeler Transformation rearranges data such that the…
Q: By using java, Write a recursive function that finds the maximum element in an array of integers,…
A: Recursive function:- Recursion is the action of a function calling itself either directly or…
Q: Compare and contrast the traditional SDLC versus agile/iterative SDLC. Explain in detail please…
A: TO compare the Traditional SDLC vs agile SDLC, answer with points and proper explanation given…
Q: A web service returns data based on the information that it receives from the client What HTTP…
A: Dear Student, The client can use the "Accept" header to inform the web service of the client's…
Q: Given the default schema of a database: Orders 123 Orderld OrderDate ADC OrderNumber 123 Customerld…
A: Please refer to the following step for the complete solution to problem above.
Q: Given the default schema of a database:
A: Introduction:- The database is a collection of records. The DBMS is a software that is used to do…
Q: Convert the decimal number (47.0625)10 to binary octal and hexadecimal. Show all steps.
A: Given number is (47.0625)10 which is of decimal number. Below are the conversions into binary octal…
Q: What is ergonomics?
A: In the given question the word ergonomics comes from the Greek word “ergon” which means work and…
Q: Question 1 A-Describe section 230 of the Communications Decency Act. B- make an argument for or…
A: No user or supplier of an interactive computer service will be regarded as the publisher or speaker…
Q: Differentiate SRAM and DRAM.
A:
Q: Write an if statement with a condition using the randrange function from the random module that you…
A: answer is : - random.randrange(1,101)>35:
Q: Write a function in Ocaml. count123 : int list -> int*int*int that takes in an int list l and…
A:
Q: Using C# and Windows Presentation Foundation (WPF), design and implement a standalone desktop time…
A: The following code is written in C# language. Hope it helps!
Q: Discuss indicators of compromise that an investor should look for in a network intrusion…
A: The indicators of compromise that an investor should have to look at in the network intrusion…
Q: Question - 3 Suppose there is exactly one packet switch between a sending host and a receiving host.…
A: solution
Q: buddy system
A: Buddy memory allocation: Buddy allocation divides the large part into smaller part to satisfy the…
Q: Write Pseudo code for Aco Algorithm
A:
Q: What are the specific pros and cons of single sourcing cloud services on a single cloud provider?…
A: I have given answer below.
Q: ets G = (rose, lily, tulip, daffodil, clematis, pansy, foxglove} W = {daisy, buttercup, dandelion,…
A: Dear Student, Intersection of two sets result in a set having only those values which are present in…
Q: Explain different kinds of slips.
A:
Q: We will create this vocabulary by randomly selecting tens or hundreds of thousands of local features…
A: We will create this vocabulary by randomly selecting tens or hundreds of thousands of local features…
Q: Question 6 Write a Python program which accepts the length L of a square from the user then prints…
A: Here, I've accepted user input, transformed it to an int type, and placed it into a variable. I then…
Q: Explain disciplines contributing to human computer Interaction.
A:
Q: What is the put put of? print(int("one")) Runtime Error Syntax Error 0 1 O One
A: Answer Syntax error
Q: using c++, Write a function method that determines the mean of all the values in an array of…
A: To find the mean of the all values in array of integers, function with proper code in c++ and output…
Q: Suppose you have a RISC machine with a 2.7 GHz clock (i.e., the clock ticks 2 This particular…
A: The answer is
Q: Question 4 Identify the strongest (most secure) authentication factor among the 3 authentication…
A: The above question is solved in step 2 :-
Q: Write a program using using Sqlite3 in python that stores names, emails, cell phone numbers,…
A: Please find the answer below :
Q: What’s the output
A: In step 2, I have provided ANSWER with breif explanation In further steps, I have provided…
Q: Explain any three Intel chipset?
A: In this question we need to explain any three chipsets provided by Intel.
Q: using c++, Write a void function that accepts an integer array a and a integer SizeA, and an integer…
A: #include<bits/stdc++.h>using namespace std; void add_n(int *a, int SizeA, int n){ for(int i…
Q: I have already done number 1. I just need help with number 2. Implement Stack with an internal…
A: A sample implementation of the StackTest class is described in the next step. The intent of the…
Q: Consider a binary search tree implemented in Java with a node inner class as shown. The tree is…
A: Dear Student, The completed code is given below, it will return the largest key in the binary search…
Q: Write generic ant algorithm. Describe application of particle Swarm Algorithm.
A: An algorithm is a procedure used to solve a problem or perform a calculation. Algorithms act as a…
Q: Program #1 Write a Celsius to Fahrenheit temperature converter program in MIPS assembly. The…
A: Write a Celsius to Fahrenheit temperature converter program in MIPS assembly. The program should…
Q: Please write the code in C and not C++. I have already attached a screenshot that has main() method…
A: The converted c program is given below:
Q: JAVA Implement the equals method of the Arrow class. Two arrows are equal when they have the same…
A: The equals(Object obj) method of Method class compares this Method Object against the specified…
Q: The differences & Similarities between real & artificial ants.
A:
Q: Analyze error If (x 10) System.out.println(“x” is between 10 and 100”);
A: This is a java program. if condition should be between brackets ( )
Q: Use the attached C program front.c (compile it – see the instruction for using the c program,) and…
A: Code: import java.io.File; import java.io.FileNotFoundException; import java.util.Scanner; import…
C
Create a dice game that uses two six‐sided dice. Each time the program runs, use random numbers to assign values to each die variable. Output a “player wins” message to the user if the sum of the two dice is 7 or 11. Otherwise, output the sum of the two dice and thank the user for playing.
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 3 images
- Challenge Problem python G U E S S T H E N UM B E R Write a program that plays a guessing game with the user. The program should have the right answer set to 13, then prompt the user repeatedly to guess the number from 1 to 25. When the user guesses incorrectly, the game should give the user a hint about whether the correct answer is higher or lower than the guess. Once the user guesses correctly, the program should print a message showing the number of guesses that the user made. Note : This assignment involves the use of a while loop and if-else decision making controls. You CANNOT use the reserved keywords break and continue for any portion of this program or any program for that matter throughout this course.Please answer in C# Write a program named TemperaturesComparison that allows a user to input five daily Fahrenheit temperatures that must range from −30 to 130. If a temperature is out of range, require the user to reenter it. If no temperature is lower than any previous one, display a message Getting warmer. If every temperature is lower than the previous one, display a message Getting cooler. If the temperatures are not entered in either ascending or descending order, display a message It’s a mixed bag. Finally, display the temperatures in the order they were entered, and then display the average of the temperatures. Your program's output should look like the following: Getting warmer: 70 74 77 78 81 Average: 76Using C# in Microsoft Visual Studio create an application that lets the user play the game of Rock, Paper, Scissors against the computer. The program should work as follows:1. When the program begins, a random number in the range of 1 through 3 is generated. If the number is 1, then the computer has chosen rock. If the number is2, then the computer has chosen paper. If the number is 3, then the computer has chosen scissors. (Do not display the computer’s choice yet.)2. The user selects his or her choice of rock, paper, or scissors. To get this input you can use Button controls, or clickable PictureBox controls displaying some of the artwork that you will find in the student sample files.3. The computer’s choice is displayed.4. A winner is selected according to the following rules:• If one player chooses rock and the other player chooses scissors, then rock wins. (Rock smashes scissors.)• If one player chooses scissors and the other player chooses paper, then scissors wins. (Scissors…
- PYTHON programming solotion Develop a program that allows the user to enter a start value of 1 to 4, a stop value of 5 to 12 and a multiplier of 2 to 8. The program must display a multiplication table with results using these values. For example, if the user enters a start value of 3, a stop value of 7 and a multiplier value of 3, the table should be displayed as follows: Multiplication Table 3 x 3 = 9 3 x 4 = 12 3 x 5 = 15 3 x 6 = 18 3 x 7 = 21 additionally Each multiplication problem must be displayed with a problem number. The program must prompt the user to enter an answer to each of the multiplication problems. The correct answer should be displayed after the user enters an answer. A message should be displayed informing the user that the answer entered was correct or incorrect followed by an appropriate motivating comment. A running record of the number of correct and incorrect responses must be kept. After all the problems have been presented the user must be informed of…/*random number guessing game with while loopscreate a program (or adapt the guessing game program that's posted in moodlea couple of weeks ago) that asks the user to guess a random number between one and sixteen,and compares their guess with the computer's number.save this program as guessLoops.cppThe program should display one of four messages:if your guess is higher than the computer's number: "Your guess is too high."if your guess is lower than the computer's number: "Your guess is too low."if your guess is the same as the computer's number: "That is correct!"if your guess is less than one or greater than sixteen: "Invalid guess."If it's the last one, invalid guess, prompt the user, by using a loop, to guess again.If your guess is too high or too low, ask the user if they'd like to guess again (if theanswer is 'y' for yes, repeat the statements that asks for a guess.Then, repeat statement on line #6-#9 above.If the answer is 'n' for no (meaning the user doesn't want to guess…**using C# and Visual Studio design a program to satisfy the below problem** Create an application that generates a random number in the range of 1 through 100 and asks the user to guess what the number is. If the user’s guess is higher than the random number, the program should display “Too high, try again.” If the user’s guess is lower than the random number, the program should display “Too low, try again.” If the user guesses the number, the application should congratulate the user and then generate a new random number so the game can start over. Optional Enhancement: Enhance the game so it keeps count of the number of guesses that the user makes. When the user correctly guesses the random number, the program should display the number of guesses.
- XYZ Company, LLC uses a program to manage the information of their employees. The program gets the name of the employee, number of hours worked and rate per hour. It computes the salary by multiplying the number of hours worked with rate per hour. If the salary is more than 1000, tax is computed as 5% of the salary, otherwise, tax is computed as 2% of the salary. The program will display the name of the employee, salary and tax.Java Language The company will held its quarterly performance for each department; wherein each group of the department are rated from 1 to 5, where 1 is the lowest score and 5 is the highest score. The department has two groups, groupA and groupB. Each group will be rated by five evaluators. Create a program that will ask for the input rate of the evaluators, and determine the group that got the highest rating, as well as the overall rating of the department. Use the UML diagram below as a reference. Department() – accepts 5 ratings of the evaluators and determines the groupScore which is the total rating of the group. getGroupAverage() – returns the value of groupAverage which is the average score of the group. displayAverage() – displays the overAllAverage which is the average of the whole department. overAllScore is the over all score of the department. Department Group Score: Int Group Average : Double Overall Score: int overall Average: double Department()…INFS3410 Practice Questions Chapters 1, 2 and 3 The Following is an example run of an educational program for school children. The program help kids to practice their additions and subtraction skills. Your task is to develop a program that can achieve the same exact thing. Bear in mind the following important guidelines: - The user may choose between additions and subtractions - The user may choose the difficulty level (easy, medium, hard) - The program should display 5 questions and calculate the total score - No two questions should be the same Please enter your name: Hafedh AlShihi ************** Hello Hafedh AlShihi Welcome to our Additions / Subtractions Practice ****k********* Which operation you want to practice? Type 1 for Additions, or Type 2 for subtractions: 2 Please select your difficulty level Type 1 for Easy (numbers 1 to 10) Type 2 for Medium (numbers 10 to 100) Type 3 for Hard (numbers 100 to 1000) 1 Here are 5 easy-level subtraction questions, please attempt all: How…
- Remaining Time: 1 hour, 14 minutes, 07 seconds. Question Completion Status: QUESTION 11 Write a Java program that prompts the user to enter the monthly salary amount of an employee in OMR and then deduct a 29% amount as a provident fund from the monthly salary. Calculate, a. Monthly deduction amount = Monthly Salary Amount * percentage of deduction b. Monthly Net salary amount = Monthly Salary Amount – Monthly Deduction amount c. Calculate and display the Annual Net salary amount in OMR and Annual deduction amount in OMR. T T T Arial v 3 (12pt) 回i ン Save All A TOSHIBA 10Retail price calculator Write a program that asks the user to enter an item’s wholesale cost and its markup percentage. It should then display the item’s retail price. For example: • If an item’s wholesale cost is 5.00 and its markup percentage is 100 percent, then the item’s retail price is 10.00.• If an item’s wholesale cost is 5.00 and its markup percentage is 50 percent, then the item’s retail price is 7.50. The program should have a method named calculateRetail that receives the wholesale cost and the markup percentage as arguments and returns the retail price of the item.Microwaves / Radio Waves If a scientist knows the wavelength of an electromagnetic wave she can determine what type of radiation it is. Write a program that asks for the wavelength in meters of an electromagnetic wave and then displays what that wave is according to the following chart. (For example, a wave with a wavelength of 1E-10 meters would be an X-ray.) 1x 10-11 1 x 10-8 4 x 10-7 7x 10-7 1x 10-3 1 x 10-2 Gamma Rays. X Rays Ultraviolet Visible Light Infrared