The period of time that a variable remains in memory is that variables ________. a. block b. scope c. lifetime d. declaration
Q: Create detailed pseudocode for a program that determines how many full 12-egg cartons of eggs a…
A: Given: Create detailed pseudocode for a program that determines how many full 12-egg cartons of eggs…
Q: 2. Sum, Avg, Min, Max This is similar to the exercise we did in class but with two changes: (1) Use…
A: Given: 2. Sum, Avg, Min, Max This is similar to the exercise we did in class but with two changes:…
Q: A junior magician has picked a secret number. He has hidden it in a variable named secret_number. He…
A: Program code: #Program that asks user to enter a number until it matches the secret number #variable…
Q: Create a program that calculates the interest on a loan. Console Interest Calculator Enter loan…
A: Algorithm: Start Create NumberFormat objects for the locale US to represent currency $ where one…
Q: What would this code display? nameList = ["John", "Harry", "Jesse", "John", "Harry", "Harry"] if…
A: The problem is based on lists and conditional statements in python programming language.
Q: Question: Similarly, what can be displayed from the output of the program?
A: Option 1 is correct It determines whether a number is either positive, negative or zero
Q: Create a program that uses 3 variables named: “name”, “address”, and “phone”. Assign these three…
A: Python code for above : # get from user name = input("Enter your name: ") address =…
Q: Light travels at 3 x 10° meters per second. A light-year is the distance a light beam travels in one…
A: In this question, we are asked to write a python program such that it return the distance of light…
Q: I need help making a C++ code. I need the code to ask the user to enter a number between 1-10 and…
A: Given Data : Here, we have given the code which we need to debug. The code will take input n from…
Q: LargeSmall.py - This program calculates the largest and smallest of three integer values. # Declare…
A: source code: number1 = int(input('Enter First number : '))number2 = int(input('Enter Second…
Q: The output of the lines below is int myNum = 15; string MyNumber = "number";…
A: Lets see the solution.
Q: Use java code to complete. Please zoom in if difficult to re
A:
Q: Can you make this into a flowchart? //user info UserName Student; Student.Input();…
A: Flow chart is a step by step process which contains sequence of steps connected with the flows. The…
Q: Project Name: Chpt2_Project Class Name: Chpt2_Project Write a Java program that calculates how fast…
A: Here, in this program, you need to calculates how fast a bucket will fill up. Program inputs which…
Q: A variable is... O A value that we can never be certain of the value of before we check it A named…
A: Here, we are going to answer both Python question which is related to basic Python theory. What is…
Q: Create a program that determines how quickly an object is travelling when it hits the ground (we'll…
A: Program: import math#print final velocity calculatorprint("Final velocity calculator")#print to ask…
Q: Write a program that declares a named constant to hold the number of quarts in a gallon (4). Also…
A: Actually, the code has given below:
Q: The kinetic energy of a moving object is given by the formula KE = ½mv2 where m is the object’s mass…
A: Program: mass = float(input("Enter the object's mass: ")) velocity = float(input("Enter the object's…
Q: A new bank has been established for children between the ages of 12 and 18. For the purposes of this…
A: We need to write a pseudo code for the given atm system.
Q: Design and implement an application that plays the High-Low guessing game with numbers. The program…
A: Start :- Declare counter to count number correct of guesses. and another counter for surrenders…
Q: Create an investment-value calculator) Write a program that calculates the future value of an…
A: It is defined as a powerful general-purpose programming language. It is used in web development,…
Q: Mathletes Game! With the introduction of loops, we now know enough about programming to begin…
A: Please check the below c++ code
Q: 14. Personal information Write a program that displays the following pieces of information, each on…
A: Program Approach: Include header files and namespace std Define main method.In the main method…
Q: Which kind of variables can hold several values and types at one time? A String B) List O Integer D…
A: Please refer to the following step for the complete solution to the problem above.
Q: ● Create a simple calculator application that asks a user to enter two numbers and the operation…
A: Solution is given below :
Q: Given the following, what is assigned to the lvalue? integer = int('9.9') A. 9 B. 9.9 C. 10 D. None…
A: ANSWER: Based on two statements, one can predict the answer for the given question. “int ('9.9')”-…
Q: Create detailed pseudocode for a program that determines miles per gallon a vehicle gets when given…
A: Below is the required pseudocode: - Pseudocode: - Start Procedure main() Declare a variable miles,…
Q: f the user guesses a letter that is not in the hidden word, display an appropriate message. If the…
A: using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace…
Q: 2. Sum, Avg, Min, Max This is similar to the exercise we did in class but with two changes: (1) Use…
A: C++ used to answer this question:
Q: Instructions QuartsToGallonsjava + 1 // QuartsToGallons.java 2 class Quarts ToGallons { public…
A: public class QuartsToGallons{ public static void main(String[] args) { int QUARTS_IN_GALLON;…
Q: (In Java) Mathletes Game! With the introduction of loops, we now know enough about programming to…
A: Program implementation for above problem is given below in JAVA language. Further comments are…
Q: rite an application to calculate how many days it is from today until the end of the current year.…
A: Define modules java.util.Calender and java.util.GregorianCalender for working on calenders. Define…
Q: Create a program that prompts the user for an amount less than 100 and then displays the minimum…
A: As you have not specified the programming language, we solved this question using python programming…
Q: Create a program that calculates the interest on a loan. This program should make it easy for the…
A: According to the information given: We have to follow the instruction to get the desired outcome-
Q: What is the value stored in a? int a = 25, b; b= sqrt(a); %3D O b 25 O invalid
A: Answer is invalid
Q: Project: Create a program that calculates the interest on a loan. This program should make it easy…
A: Step 1 : Start Step 2 : Define the function interest() which would calculate the interest with the…
Q: program3_4.py Write a creative quiz program with three original questions that you make up as…
A: PROGRAM CODE: states = int(input('How many states in the USA ? ')) // take answer of first question…
Q: Assume that the population of Mexico is 128 million and that the population increases 1.01 percent…
A: GIVEN: import java.util.*;public class Main { public static void main(String[] args) {…
Q: Constants are variables declared with storing a value on it and this value can be changed during the…
A: Introduction Constants are not variables because these values cannot be changed throughout the…
Q: Program must be in Java Body Mass Index (BMI) is one of the criteria that is used to…
A: Given: Program must be in Java Body Mass Index (BMI) is one of the criteria that is used to…
Q: am that uses 3 variables named: “name”, “address”, and “phone”. Assign these three variables to…
A: We need to read 3 values from user and print them to screen;
Q: Given the program below, fill in the missing code (indicated by blanks). Include a screenshot of a…
A: For the given code, I have provided missing blanks and the required code with the output below.
Q: Create a program for a new school where it promps the user for a student number in the school and…
A: The program code is provided below.
Q: variable name can start with.? a. Either alphabet or underscore() Ob. Only Underscore (- ) sign OC.…
A: A variable is a symbolic name for (or reference to) information. The variable's name represents what…
Q: What happens if a value stored in an int variable gets too big? a. The program stops and reports an…
A: The mechanism of developing and implementing an executable computer program to achieve a particular…
Q: Project 9-1: Interest Calculator Create a program that calculates the interest on a loan. Console…
A: According to the information given:- We have to follow the instruction in order to get desired…
Q: Create a program called "Geometry" Prompt the user for a small decimal number. Prompt the user for…
A: Input : Lower and the upper bound float from the user Output : Random number generated from in…
Q: Fill in the blank so that the code will output HelloWorld (i.e. without a space) void spaced(…
A: Ans : The correct code for the given is : #include <iostream> using namespace std;void spaced(…
Q: If you attempt to add an int, a byte, a long, and a double, the result will be a value a. byte Ob.…
A: Whenever an operation is performed on two values of different datatypes, the result will always be…
Q: The code below was designed to count the number of values entered by the user using the keyboard,…
A: Given We know about the programing .
The period of time that a variable remains in memory is that variables ________.
a. block
b. scope
c. lifetime
d. declaration
Trending now
This is a popular solution!
Step by step
Solved in 2 steps
- . Actions taken by the computer when a function is called, such as allocating memory for parameters and local variables, are referred to as _______________.a. overheadb. set u1. Design and implement an application that reads an integer value representing a year input by the user. The purpose of the program is to determine if the year is a leap year (and therefore has 29 days in February) in the Gregorian calendar. A year is a leap year if it is divisible by 4, unless it is also divisible by 100 but not 400. For example, the year 2003 is not a leap year, but 2004 is. The year 1900 is not a leap year because it is divisible by 100, but the year 2000 is a leap year because even though it is divisible by 100, it is also divisible by 400. Produce an error message for any input value less than 1582 (the year the Gregorian calendar was adopted). 2. Modify the solution to the previous project (i.e., Leap year) so that the user can evaluate multiple years. Allow the user to terminate the program using an appropriate sentinel value. Validate each input value to ensure it is greater than or equal to 1582.A program can use the address of any variable in an expression, except variables declared with the ___________ storage class.
- A group of statements that exist within a program for the purpose of performing aspecific task is a(n) __________.a. blockb. parameterc. functiond.expressionFill-in-the-Blank The __________ operator can be used to determine a variable’s address.Fill-in-the-Blank Creating variables while a program is running is called __________.
- python The intent of this program is to manage a set of contacts. Each contact will have data associated with it: Id – number/integer First Name – string Last Name – string Age – number/integer Phone Number – string Email – string Anything else you’d like to add to make yours unique (can result in extra credit) Gender – character or string (m/f/o) Twitter ID, Facebook Id, etc You must allow the customer to do the following actions on the contact list: List all contacts Add contact Delete contact Edit contact Exit program You should leverage a database (PostgreSQL) to save everything to the DB and read from it. You should use classes for this assignment. This means you should have two classes: Contact – all the attributes/properties described above with appropriate constructor. Methods: Add (constructor - __init__(p_id, p_fname, p_lname, p_age, p_phone, p_email, p_gender) Edit Contact List (contact_list) – built on Python list (or creating one within the constructor), you…uppose you have a certain amount of money in a savings account that earns compoundmonthly interest, and you want to calculate the amount that you will have after a specificnumber of months. The formula, which is known as the future value formula, is:F=P×(1+i)tThe terms in the formula are as follows:o F is the future value of the account after the specified time period.o P is the present value of the account.o i is the monthly interest rate.o t is the number of months.Write a program that prompts the user to enter the account’s present value, monthlyinterest rate, and the number of months that the money will be left in the account. Theprogram should pass these values to a function named futureValue that returns thefuture value of the account, after the specified number of months. The program shoulddisplay the account’s future value. i attached the screenshot of the output so the output should look like that. the coding should be in c++Please provide answer in C#: Slot Machine Simulation A slot machine is a gambling device into which the user inserts money and then pulls a lever (or presses a button). The slot machine then displays a set of random images. If two or more of the images match, the user wins an amount of money that the slot machine dispenses back to the user. Create an application that simulates a slot machine. Figure 8-23 (on page 539 of your book) shows an example of how the form should look. The application should let the user enter into a TextBox the amount of money he or she is inserting into the machine. When the user clicks the Spin button, the application should display three randomly selected symbols. (Slot machines traditionally display fruit symbols. You will find a set of fruit symbols attached to this dropbox for your use - from the Student Sample Programs provided by the book author.) If none of the randomly displayed images match, the program should inform the user that he or she has won…
- Python: numpy def serial_numbers(num_players):"""QUESTION 2- You are going to assign each player a serial number in the game.- In order to make the players feel that the game is very popular with a large player base,you don't want the serial numbers to be consecutive. - Instead, the serial numbers of the players must be equally spaced, starting from 1 and going all the way up to 100 (inclusive).- Given the number of players in the system, return a 1D numpy array of the serial numbers for the players.- THIS MUST BE DONE IN ONE LINEArgs:num_players (int)Returns:np.array>> serial_numbers(10)array([1. 12. 23. 34. 45. 56. 67. 78. 89. 100.])>> serial_numbers(12)array([1. 10. 19. 28. 37. 46. 55. 64. 73. 82. 91. 100.])""" # print(serial_numbers(10)) # print(serial_numbers(12))Most of the memory locations declared in an application should be class-level variables. a. True b. FalseDesign and implement an application that plays the Hi-Lo guessing game with numbers. The program should pick a random number between 1 and 100 (inclusive) and then repeatedly prompt the user to guess the number. On each guess, report to the user that he or she is correct or that the guess is high or low. Continue accepting guesses until the user guesses correctly or chooses to quit. Use a sentinel value to determine whether the user wants to quit. Count the number of guesses, and report that value when the user guesses correctly. At the end of each game (by quitting or a correct guess), prompt to determine whether the user wants to play again. Continue playing games until the user chooses to stop.