Q1/ A-Design a program to calculate the value of (M) from the equation below: M=C. √B Where: n-18 100, C-8"10¹, 8-0.12*10-30. Create a (Label) object and a (Text Box) object for each input and output parameters of the equation and two (Command Buttons), one for exit from the program and the other one is for making the calculations.?
Q: def area(side1, side2): return side1 * side2 s1 = 12 s2 = 6 Identify the statements that…
A: A. print(f'The area is {area(s1,s2)}') B. answer = area(s1,s2) D. area(s1,s2)
Q: Hide Assignment Information Instructions The civil engineering department has asked you to write a…
A: Import the math module. Define a function called sphere_volume with parameter radius. The function…
Q: Instructions Objectives: Use a while loop Use multiple loop controlling conditions Use a boolean…
A: The java program is given below:
Q: #1. Airplane Seating Assignment. Write a C# Windows App that can be used to assign seats for a…
A:
Q: TOPICS: Data and Expressions MUST BE IN JAVA. PLEASE USE COMMENTS AND WRITE THE CODE IN SIMPLEST…
A:
Q: Create a program that calculates the total cost of a restaurant bill, including tax and tip.…
A: The C# code is given below with output screenshot
Q: In conditional statements it is possible to test the datatype with is instance. However, it is…
A: I have given the whole code below with output.
Q: Code a Mortgage calculator using c++ and Microsoft visual Studio create a new project called…
A: Please find the answer below :
Q: The temperature of an object changes when it absorbs or loses thermal energy. It is possible to…
A: As no language is mentioned so i provide code in MATLAB and in python both
Q: For tax purposes an item may be depreciated over a period of several years, n. With the straight…
A: By using Visual Basic:
Q: The files provided in the code editor to the right contain syntax and/or logic errors. In each case,…
A: After correcting the code, I have provided JAVA CODE along with CODE SCREENSHOT and OUTPUT…
Q: Instructions: For each Exercise below, write your code in an IDE and run your code within the IDE as…
A: Here's a program that meets the requirements described:
Q: A(n) ____________ works like a reference parameter, but the argument does not have to be set to a…
A: In Pass by Reference, the references are passed while calling a function and the changes made in…
Q: The following program moves a robot in a grid of squares. The initial position and direction of the…
A: To move the robot to the final position after the program is run, you should click on the grid as…
Q: THIS SHOULD BE WRITTEN IN VISUAL C# FORMS: Create an application that lets the user know how many…
A: Prompt the user to enter the number of customers (n).Read the contents of the file…
Q: The data type bool: Group of answer choices Can only be used in a selection statement. Can…
A: Can take on values true and false. because boolean variable are defined to satisfy the binary…
Q: Please provide answer in C#: Slot Machine Simulation A slot machine is a gambling device into…
A: Short Summary: Implemented SlotMachine simulator using C# - Windows application. The fruit images…
Q: Create a program that calculates the total cost of a restaurant bill, including tax and tip.…
A: Introduction In a simple# program, we use System. System is the namespace and Console is the class…
Q: There are errors in the following code snippet. Locate and fix all the errors with you! to get full…
A: After fixing the given code, I have provided PYTHON CODE along with CODE SCREENSHOT and…
Q: he Billy Goat Fast-Fast Food restaurant sells the following products: Product Price ($)…
A: items = ['Cheeseburger','Pepsi','Chips']price = [2.49,1.00,0.59]print('Items\t\t\tPrice($)')for i in…
Q: C Programming Language Task: Pascal's Triangle Write a program to print Pascal's triangle. In…
A: Here is the c program of the above problem. See below steps.
Q: pthyon: Write a program to allow the user to enter five numbers, one at a time. After each entry,…
A: This Python software prompts users to input five digits one at a time, providing a simple yet useful…
Q: This needs to be made in Javascript. Leap Year Detector: Design a program that asks the user to…
A: A year is leap year, if it is evenly divisible by 100 and 400 or evenly divisible by 4 but not by…
Q: 8. Write a program: a menu-driven automatic teller program in which the user's bank balance is…
A: The code for the given problems below- #include <stdio.h> #include<stdlib.h> int…
Q: “Performance” or “response time.” defines how fast an application presents an output once given an…
A: Performance bottleneck:It is defined as a condition in a system which can cause delays or slow down…
Q: program that asks the users to input the number of cars, trucks and suv
A: Given :-In the above question, a statement mentioned that in a parking lot number of cars, trucks…
Q: Carpet Calculator The Westfield Carpet Company has asked you to write an application that calculates…
A: PROGRAM: File name: “RoomDimension.java” class RoomDimension{ //declaring instance variables…
Q: The 9/11 tragedy occurred in 2001. Develop a program that will allow users to enter their current…
A: A program is used to interact with the computer system. A program is converted into the 0's and 1's…
Q: 4. Complete the following program to draw four squares in random locations. Complete draw_square to…
A: According to the information given:- We have to create a python program To draw 4 square in random…
Q: PYTHON: In this assignment, you will use all of the graphics commands you have learned to create…
A: Answer in step 2
Q: printTodaysDate is a function that accepts no parameters and returns no value. Write a statement…
A: Statement that calls printTodayDate is:- //call the printTodayDate function printTodayDate();
Q: You have to implement a program that creates three buttons to display the digits of a password a…
A: Solution: Programming Language - Java AWT Program code- (Note: All necessary comments are…
Q: Rock, Paper, Scissors Game Create a application using (C#) in Microsoft Visual Studio that lets the…
A: Algorithm: Step1: Declare and assign rock, paper scissors variable to 1,2,3.Step2: Set the initial…
Q: This is an operator used to assign a value to a variable. It works by transferring the value on its…
A: Introduction: Here we are required to explain which of the given operators are used to assign the…
Q: Design and implement an application that presents three buttons and a label to the user. The buttons…
A: Below I have provided a program for the given question. Also, I have attached a screenshot of the…
Q: Language is VB Write a selection statement (if .....then .... else .... end-if) that evaluates a…
A: if condition then statement else statement end if
Q: QUESTION5: The Speed of Sound. The following table shows the approximate speed of sound in air,…
A: PROGRAM CODE: #include <iostream> // include header file for input output…
Q: 5. Falling Distance determine the distance the object falls in a specific time period: 1 d = The…
A: iterate from i=1 to i<=10 FallingDistance(i) end loop Define function fallingDistance(int…
Q: VB Small Project 16 – Function Pattern this Visual Basic program after Small Project 15:…
A: In this question we have to write a VB Code which generates random number and identify the number as…
Q: For this lab, you will be doing the following in C#: 1) Create a Home form with buttons that when…
A: For registering using Systems.Collections.Generic; using System.Text; using System.Threading.Tasks;…
Q: def area(side1, side2): return side1 * side2 s1 = 12 s2 = 6 Identify the statements that…
A: Here we have a function named area(), which takes 2 input parameters and returns the area. Now, to…
Q: Problem2 Modify the program you wrote for Problem 1 (Word Counter) so it also displays the average…
A: Given: Average Number of LettersModify the program you wrote for Problem 1 (Word Counter) so it also…
Q: Hands-On Activity 4-4 BuzzButtons is a novelty item company manufacturing personalized lapel buttons…
A: The answer is given below:-
Step by step
Solved in 3 steps with 2 images
- Visual Basic For tax purposes an item may be depreciated over a period of several years, n.With the straight line method of depreciation, each year the item depreciates by 1/nth of itsoriginal value. With the double declining balance method of depreciation, each year the itemdepreciates by 2/nths of its value at the beginning of that year. (In the final year it is depreciatedby its value at the beginning of the year.)Write a program using Visual Basic that performs the following tasks:1.1 Request a depreciation of the item, the year of purchase, the cost of the item, the number ofyears to be depreciated (estimated life), and the method of depreciation. The method ofdepreciation should be chosen by clicking on one of two buttons.1.2 Display a year by year description of the depreciation.Using the visual code studioWrite a program for a “6/15 Lottery Game”. Please take note of the following: 1. It must prompt the user to input a digit for about six times between 0 to 15 only. The output display must specify that it’s “Digit 1”, “Digit 2”, and so on up to “Digit 6”.2. If the inputted digit is greater than 15, the program will notify the player about the incorrect input displaying: “Error! Please input a digit between 0 and 15 only! Repeat your Selection!” And the program will be terminated.3. If at least one digit matched (exact array position and digit) from the Lottery draw, then the output display must be, as an example: “1 Match! Your Bet is free for the next draw!”4. If no digit matched from the Lottery draw, then the output display must be, as an example: "Sorry. No Exact Match Found. Try Again! "5. Note that repetition of input digit chosen by the player is allowed. 6. And finally, if all digit matches, it will give an output display, as an example:…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
- Change the order of the numbered Use Case Definition steps to correspond to the following problem definition: A college provides every incoming freshman with a gift card for a choice of two specialty restaurants within the cafeteria. Students should select one specialty restaurant they want. A program opens a window that displays each specialty restaurant one picture at a time when a student clicks the corresponding button. After making a decision, the student should click the Select Restaurant button. After selecting a restaurant, the student should exit the application.Objective: Must create an interactive program (in C language) in which the computer generates a random number between 1 and 15. The user is presented with a guessing game and must enter their guess as to which number the computer is "thinking of" (the randomly generated number between 1 and 15). The user is limited to five guesses. If the user guesses the correct number within the five guess limit, they win. If the user does not guess correctly within the five guess limit, they lose the game. Following each user input, the output must say "your guess of _ was too low. try again" or "your guess of _ was too high. try again" or "you guessed it!" Instructions: The program must make use of passing by value and reference, if-else, defined constants, and use of the random number generator/seeding. The seed function srand() should only be called once in main. The point is to demonstrate use of multiple functions (those aforementioned) even though this could be accomplished with a much…C++ - Creating a menu (menuOption) - Need assistance in creating a menu that opens up an entirely new menu once the user inputs the appropriate value (range is 0 to 13). - The main photo shows how the initial menu should look like and each title has its own value assigned to it. Also, in the bottom of the photo is "Option : " and there, the user is suppose to input a value that will open up one of the menus. - So if the user inputs 3, then a completely new menu populates on the user's screen (please review photo number two). And in this new populated screen it is title "3. Drop Lowest Score." There is a line below the title and under that line the user is suppose to perform an action but I have yet to create code for that (hence is why I have "case #: Challenge#(); break;"). - But if the user inputs a value that is not within the range OR a letter, then below "Option : " (on the main menu) the program must state an error message such as the following: Option : 14 ERROR - Invalid…
- A(n) specifies a variable’s name and data type.a. assignmentb. variable specificationc. variable certificationd. variable declarationPython: 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))X609: Magic Date A magic date is one when written in the following format, the month times the date equals the year e.g. 6/10/60. Write code that figures out if a user entered date is a magic date. The dates must be between 1 - 31, inclusive and the months between 1 - 12, inclusive. Let the user know whether they entered a magic date. If the input parameters are not valid, return false. Examples: magicDate(6, 10, 60) -> true magicDate(50, 12, 600) –> false
- The text presented the Sierpinski triangle fractal. Inthis exercise, you will write a program to display another fractal, called the Kochsnowflake, named after a famous Swedish mathematician. A Koch snowflake iscreated as follows:1. Begin with an equilateral triangle, which is considered to be the Koch fractalof order (or level) 0, as shown in Figure a.2. Divide each line in the shape into three equal line segments and draw an outwardequilateral triangle with the middle line segment as the base to create aKoch fractal of order 1, as shown in Figure b.3. Repeat Step 2 to create a Koch fractal of order 2, 3, . . . , and so on, as shownin Figures c and d.LAB ASSIGNMENTS, CONT. 2. sandwich.py - follow the instructions below. You may adjust the food items to include your personal favorites. • It uses all of our standard mipo_ex features. • The menu should have numbered or letter options. Sandwich Maker Write a program that asks users for their sandwich preferences. The program should use PylnputPlus to ensure that they enter valid input, such as: Using inputMenu() for a bread type: wheat, white, or sourdough. Using inputMenu() for a protein type: chicken, turkey, ham, or tofu. Using inputYesNo() to ask if they want cheese. If so, using inputMenu() to ask for a cheese type: cheddar, Swiss, or mozzarella. Using inputYesNo() to ask if they want mayo, mustard, lettuce, or tomato. Using inputlnt() to ask how many sandwiches they want. Make sure this number is 1 or 120 00T 110 more. Come up with prices for each of these options, and have your program display all the choices and their prices plus a total cost at the very end. 3 130Design a program that calculates the perimeter and area for differentshapes. This program will include 4 modules:1). Main module: for the user to select the shape2). Rectangle module: call this module to calculate the perimeter and area for arectangle, you need to ask about the width and length in this module3). Square module: call this module to calculate the perimeter and area for a square,you need to ask about the width in this module4). Circle module: call this module to calculate the perimeter and area for a circle, youneed to ask about the radius in this modulea) Submit pseudocodeb) Submit flowchart