Write a program that prints out the name of my favourite dinosaur, Tyrannosaurus Rex: Tyrannosaurus Rex
Q: In python In PyCharm, write a program that prompts the user for their name and age. Your program…
A: Answer :
Q: You will implement a variant of the number guessing game we played in lecture. In this variant, you…
A: Answer: Algorithms: 1. we have shown the message regarding the price and win the price 2. we have…
Q: Write a java program named Fibonacci that prints the Fibonacci sequence of numbers. The first two…
A: Java Program: import java.util.*; public class Fibonacci { public static void main(String[]…
Q: Use the compareTo method to write code that reads two names from the console and prints the one that…
A: The compareTo() method is used for string handling in which it compares two strings…
Q: Write a program which prompts the user to enter an integer and prints a half diamond star pattern.…
A: Below I have provided a program for the given question. Also, I have attached a screenshot of the…
Q: enders) and output their resulting relationship based on the FLAMES method: F – Friends L – Lovers…
A: The task here includes various operations such as arithmetic operation, logical operation, etc.…
Q: Python programming In a department store sale, customers who purchase over 2000 are given 10%…
A: The python program is given below:
Q: python The intent of this program is to manage a set of contacts. Each contact will have data…
A: Actually, python is a easiest programming language. It is a dynamically typed programming language.
Q: Mike loves different strings but he has no interest in programming. So, his mentor thought to give…
A: Hello student Greetings Hope you are doing great. Thank You!!!
Q: Modify songVerse to play "The Name Game" (see OxfordDictionaries.com), by replacing "(Name)" with…
A: Your solution is here with an Output .
Q: Design the Library and Book class so that the expected output is generated. #Write your code here…
A: Algorithm: Start Create a class Library with a class variable books which is a list and instance…
Q: Write a program that reads from the user the initial KiloMeters of the car, the current KiloMeters,…
A: Answer
Q: Write a program called TwoRectangles that uses two integer class constants called WIDTH and HEIGHT…
A: Program Approach: Import java package. Define class A and Initialize constant variable height =4…
Q: Use Python & Don't use any python Library. You can use Random.randint() only. 3. Suppose you have…
A: import random #taking sample list of participants l=["ada","bark","cowl","dam","jack","nick","sam"]…
Q: On a piano, a key has a frequency, say fo. Each higher key (black or white) has a frequency of fo*…
A: Write a Python program to input the key frequency f0 and print the next 4 higher key frequencies in…
Q: dice that have numbers from 1 to 11. To win, the player or the computer has to get to 21, or as…
A: Q. Write a program that plays a dice game called "21"
Q: Price in OMR = Price in Dollars $ + The exchange rate
A: Given : Note : As per the question i have provided a simple c program with out using any advanced…
Q: X609: Magic Date A magic date is one when written in the following format, the month times the date…
A: Create as MagicDate class and main method. Inside main method take month, day and year of a date as…
Q: Python Please Write a program which picks a pair of dice. If the sum of the rolled numbers is 10,…
A: 1. Import the 'random' module for simulating dice rolls.2. Define a function 'roll_dice()' to…
Q: Write a math program that can be used as a math tutor. It will generate two random numbers and…
A: Since you have not mentioned the programming language. I am attempting this in python. If you need…
Q: Write a program that simulates the rolling of two dice. The program should use rand to roll the…
A: 1. Create an array of integer of length 13 a. loop from 0 to 36000 i. get…
Q: Kinetic energy is given by x object Mass x objectVelocity × objectVelocity. Write a program that…
A: I have provided JAVA CODE along with CODE SCREENSHOT and OUTPUT…
Q: Java program
A: Given :-In the above question, a statement is mentioned as,A county collects property taxes on the…
Q: In Python A soup company is interested in finding out how much of their soup will go into various…
A: def soup_volume(d, h): r = d / 2 volume = math.pi * pow(r, 2) * h volume = 0.95 * volume…
Q: Write a python program that lets the user play the game of Rock, Paper, Scissors against the…
A: Dear Student, The required code with implementation and expected output is given below -
Q: Write a program that asks for the names of three runners and the time it took each of them to finish…
A: Program that asks for the names of three runners and the time it took each of them to finish a race.…
Q: The following code is to be done on Python: To play the UP Lotto, you buy a ticket that has five…
A: Since you have not mentioned the sample output in the question so, we have provided the output in…
Q: generate a random number between 10 and 99 using Math.random). It should then ask the user to ente…
A: import java.util.Scanner;public class MyClass { public static void main(String args[]) {…
Q: programming type python3 Design a string-based menu. The user can ask for the current value of…
A: History of Python:- Guido van Rossum developed Python as a replacement for the SETL-inspired ABC…
Q: Write a complete program to calculate the value of dollars and cents represented by coins. Your…
A: Here is a complete Java program that implements the above requirements: CODE in JAVA: import…
Q: Write a program that asks for the names of three runners and the time it took each of them to finish…
A: There is no specific language is asked in the problem. So i am using python language to solve the…
Q: Q1: There are different rules in different countries to create car license plates. For example:- In…
A: There are total of 26 alphabets and 10 numbers and to select a alphabet we can do that in 26 ways…
Q: A palindrome is a word or phrase that is identical when you read from forward or backward, such as…
A: Below is the complete solution with explanation in detail for the given about palindrome checker…
Q: Modify songVerse to play "The Name Game" (see OxfordDictionaries.com), by replacing "(Name)" with…
A: The string variable songVerse will always contain the substring "(Name)".The user has entered the…
Q: In Java Create a class WhileEvent3, write code that asks the user to enter a positive or negative…
A: Solution: Given, Create a class named WhileEvent3. take user input as a string value and take…
Q: Write a program that allows a player to play Rock, Paper, and Scissors against the computer. In this…
A: #include <iostream> using namespace std; // GetInput() - accepts the name and how many…
Q: In Java Create a class DoWhileEvent3, write code that ask the user to enter a positive or negative…
A: We need to write a Java code for the given scenario.
As given, I need to write a Python program that prints the name of a dinosaur, Tyrannosaurus Rex.
I have provided the code and output screenshot in the following steps.
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images
- Write a C# program that plays a guessing game with the user. Your program should select a random number between 1 and 50 and then let the user try to guess it. The program should continue asking the user for a number until he guesses correctly. (See below for some tips on random numbers). CHALLENGE #1: Modify your program so that it only allows the user 10 guesses, and then declares them to be an inadequate guesser if they haven’t gotten it correct. Your program should output the random number chosen. CHALLENGE #2: Modify your program so that after they guess a number (or get declared inadequate, if you do Challenge #1) that it asks them if they want to play again, and responds accordingly. Some Random Number Generation HintsRandom rndNumber = new Random();Console.WriteLine(rndNumber.Next()); //random integerConsole.WriteLine(rndNumber.Next(101)); //random integer between 0 and 100Console.WriteLine(rndNumber.Next(10, 43)); //random integer between 10 and…Need the answer in javaEasy Program Please answer fast: you will write a program that calculates the area for ANY regular polygon. Ask the user for the side length of the polygon (the type should be double) and the number of sides (the type should be int). The formula for calculating the area can be seen below and comes in three parts. First, calculate the perimeter of the polygon: given:- perimeter(reg_polygon)=slen*nsides
- In python Programming, Suppose you have four dogs named Leo, Tom, Jerry, and Jack, and four dog food bowls labeled 1, 2, 3, and 4. Each bowl can hold up to sixteen scoops of food and each dog chooses a separate bowl, but it doesn't matter which dog uses which bowl. For their dinner each day, you distribute sixteen scoops of dog food into the bowls, so each bowl will receive a whole number units of food. You are pretty careless, and you sometimes leave some bowls empty. If you always put out the full sixteen units of food each day, how many ways can you distribute the food among the four bowls?The Question is for a python class asking to add a loop Starting with the following code, add a loop that will prompt the user for the number of math questions the user would like to be presented with: import random firstnum = random.randrange(1,11) # return an int from 1 to 10 secondnum = random.randrange(1, 11) compsum = firstnum + secondnum # adds the 2 random numbers together # print (compsum) # print for troubleshooting print("What is the sum of", firstnum, " +", secondnum, "?") # presents problem to user added = int(input("Your answer is: ")) # gets user input if added == compsum: # compares user input to real answer print("You are correct!!!") else: print ("Sorry, you are incorrect")In a C# Console App do the following Write a method that takes three integers and returns true if their sum is divisible by 3, false otherwise. Write a method that takes two strings and displays the string that has fewer characters. Write a method that takes two bool variables and returns true if they have the same value, false otherwise. Write a method that takes an int and a double and returns their product.
- Write a java program called Fibonacci.java that prints the first n numbers of the Fibonacci sequence (starting with 0), where n is an integer entered by the user. Use a for loop. Some of the program has been provided below. More info about Fibonacci can be found here:https://www.mathsisfun.com/numbers/fibonacci-sequence.htmlhttps://www.youtube.com/watch?v=wTlw7fNcO-0 import java.util.Scanner;public class Fibonacci { public static void main(String[] args) { Scanner in = new Scanner(System.in); // Setting up scanner System.out.print("Enter an integer: "); int num = in.nextInt(); in.close(); // Close scanner when done using it long current = 1; long previous = 0; // Add for loop logic here }}JavaHello, can someone pelase help me complete the following: In JAVA create a cross that takes 2 parameters (width & height) (width must always be equal to height) and prints a cross. Please look at the example printed below:
- May assignment is asking me to build a program in PyChart that makes it possible for the player to visit each room and select the items in that room to fight a giant at the end. In order to win the game you have to collect all of the items from all of the rooms. When I run the code this is the result: Text Adventure Game ***************************Welcome to the Giant text game, Collect all of the items to defeat the Giant!To move: South, North, East, WestTo get items: get ’item name’ ***************************You are in the BasementItem: You see ArmorEnter a move: When I input the direction to go north the next result comes up correctly. However when I tell it to get and item (which is the command written into the code I get this: Invalid direction! Please enter a valid direction. ***************************You are in the BasementItem: You see ArmorEnter a move: This is my complete program code, can someone please tell me what I am doing wrong. #Functions showing goal of game and…Write a program that plays a dice game called "21" It is a variation on BlackJack where one player plays against the computer trying to get 21 or as close to 21 without going over. Here are the rules of the game: You will play with dice that have numbers from 1 to 11. To win, the player or the computer has to get to 21, or as close as possible without going over. If the player or computer goes over 21, they instantly lose. If there is a tie, the computer wins. Starting the game: The player is asked to give the computer a name. For now, we'll simply call the computer opponent, "computer." The game starts with rolling four dice. The first two dice are for the player. These two dice are added up and the total outputted to the screen. The other two dice are for the computer. Likewise, their total is outputted to the screen. Player: If a total of 21 has been reached by either the player or the computer, the game instantly stops and the winner is declared. Otherwise,…In C# code: Write a program that will help an elementary schoolstudent learn multiplication. Use a Random object to produce two positive one-digitintegers. The program should then prompt the user with a question, such asHow much is 6 times 7 The student then inputs the answer. Next, the program checks the student’s answer. Ifit’s correct, display the message "Very good!" and ask another multiplication question.If the answer is wrong, display the message "No. Please try again." and let the studenttry the same question repeatedly until the student gets it right. A separate methodshould be used to generate each new question. This method should be called oncewhen the app begins execution and each time the user answers the question correctly.Program will stop any time students enter -1. One problem in CAI environments is student fatigue. This can be reduced by varyingthe computer’s responses to hold the student’s attention. The program should usevarious comments to be displayed for each…