reate an enum ShapeColor, which has the following entries: SHAPE_COLOR_RED, SHAPE_COLOR_BLUE, SHAPE_COLOR_GREEN, SHAPE_COLOR_ORANGE, SHAPE_COLOR_BLACK, SHAPE_COLOR_WHITE
Q: FLEX & YACC hw Please add commentaries inside the code Make calculator also run with float…
A: FLEX and YAXCC to create a calculator
Q: Hello can you please help me figure out what i did wrong?
A: The program has to be properly intended (Use Tab for indentation) locations has to be defined or…
Q: isplay the employee’s name whose salary is within a range that is specified by the user input as…
A: Answer:-
Q: L DRAW ACTIVI T Y.
A: Here is the answer below:-
Q: What does the following code output? int х%3D 7, у %3D 10; x -= 32; y *= 4; cout « "y = " « y « "…
A: y = 40 and x = -25 ; x = 21 and y = 9.333333333333334 ;
Q: three textbox arrays A1, A2, A3 contains degrees of 10 stu * three materials. The code to find the…
A: Here we need to add values of A1, A2 and A3. This makes option (a) and (d) incorrect.
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: aucts are sóld from a vending machine, which has two push buttons P, and P. When a button is…
A: Introduction :Here we have asked to calculate the expression for "d"
Q: Using C++ Write a program that can be used to assign seats for a commercial airplane. The airplane…
A: Program Instruction The program prompts the user to enter Ticket type as FC for first class, BC…
Q: Time -hour:int -minute:int -second:int hour minute second [0, 23] [0, 59] [0, 59]…
A: public class TimeMain { public static void main(String[] args) { Time t1=new…
Q: n the user (as floats, or real numbers). every cell in a 10x8 grid: Move the turtle to position (25…
A: Answer:- from turtle import * def main(): hor = float(input("horizontal multiplier:"))…
Q: Retype or copy, and then run the following code; note incorrect behavior. Then fix errors in the…
A: Please find the answer below :
Q: Draw a flowchart of a Body Mass Index (BMI) calculator, which receives input of user's height…
A: Summary: In this question, we have been given a set of conditions and we have to make a flowchart…
Q: The following code is intended to find the area and perimeter of a rectangle. However, it fails to…
A: Program code: //include the required header files#include <iostream>#include…
Q: 7. The Jumpin' Jive coffee shop charges $2 for a cup of coffee and offers the add-ins shown in Table…
A: Solution - Programming Language - C++ All necessary comments are included in program code.…
Q: 6. The product that may be display for the cod (CINT (-2.12345)) is c) 3 a) -3 7. Function used to…
A: Explanation:- In this CINT(-2.12345), The CINT function has been used which converts the expression…
Q: What is eulpt by Mhe cal tooShort(54) ? de? tooShort(height): 10 height < 48: print("You cannot ride…
A: Given:
Q: Design a marks sheet for a student with 5 subjects includingMath, Physics, Electronics, Islamiat and…
A: The program is written in C…
Q: What do the following expressions evaluate to? 2A 7/ 5 2B 7.0 / 5.0 20 7 // 5 2D 7 $ 5
A: As per the given questions, we are given four expressions and we need to determine what these…
Q: Find the maximum value and minimum value in milesTracker. Assign the maximum value to maxMiles, and…
A: Given that We have to find the maxMiles and minMiles values for the given program. #include…
Q: Example I/O layout: Enter radius of a circle: 5.0 Area of a circle: routput the result in function…
A: C++ Program: #include <iostream>using namespace std; // Declare function areaCirc() Using…
Q: Complete the below code #include #include using namespace std; void main() { int num1, num2,…
A: The complete code is given as under :
Q: In the following code snippet, where comments indicate line numbers: uint64_t x = 2; uint64_t y = 5;…
A:
Q: wing code displays temperature = 42; %3D perature = 35) m.out.println ("too hot")N n. out.println…
A: Q6. The value of temperature is 42. Therefore the first if condition if(temperature<=5) will be…
Q: #include stars in the form of void main(){ int i,j; for (i=0;i0;j-{ if(j>5+i| lj<5-i) cout<<" ";…
A: For i =0 and j =10 the if condition becomes true that is 10 >5 hence the print statement will…
Q: #include using namespace std; int main() { double height, cub,mass, val; cout « "Input height : ";…
A: Pseudocode: start Read the height and water calculate mass=cub*1000 calculate…
Q: main(){ float y3D20.3; int x-20; float z; z=x+y; cout<<z;} 40.3 O 20 40
A: The corrected option is 40.3
Q: python programming (turtle) question
A: Following is the python program that use turtle graphics to create a hypnotic pattern: Approach:…
Q: To produce the plot below: 4500000 Born in 2010 Born in 2014 4400000 4300000 4200000 4100000 4000000…
A: Matplotlib is a low level python library used to plot graphs and also helps as a visualisation…
Q: Explain the code according to comment line shown below. The Explanation must contain the flows of…
A: For Example i take the values as X=5, Y=6,Z=8 and T=4 #include <stdio.h>//Prototypesvoid…
Q: Which of the following code segments will compile with no errors and display the correct length of a…
A: public is a Java keyword which declares a member's access as public.
Q: int tab[5]; for(int i = 4;i>=0;i--) { tab[i] = 4 - i; cout<<tab[i]<<"…
A: In the given code, The loop iterates backward from 4 to 0. The elements of the array tab are…
Q: What will the following code display?names = ['Jim', 'Jill', 'John', 'Jasmine']if 'Jasmine' not in…
A:
Q: The program will ask the user to choose one of the following shapes: 1. Line 2. Parabola 3. Circle…
A: Note: Below is the required program in java. Program Approach: Import util package for Input/output…
Q: To resize the window by through a.1 function we use void myReshape (GLsizei ;W, GLsizei H) True…
A: The answer has given below:
Q: In this laboratory & assignment, you will draw a series of 6 star and numbers patterns using nested…
A: Given : All The Pattern Program Solution given in further Steps.
Q: p1/ Select the correct answer: 1- What is the output of the following code? A = [2 4 3;5 7 1;2 4 1];…
A: B=[4 3; 7 1; 4 1] Explanation This is the correct answer because this will fetch the second and…
Q: Using C++ Write a program that can be used to assign seats for a commercial airplane. The airplane…
A: The program prompts the user to enter Ticket type as FC for first class, BC for Business Class, EC…
Q: initialization will be done within the code (largest value 99.9 minutes). When the remaining time…
A: Program explanation: Include the header file. Take the input for minutes and pass it to the…
Q: Calculate the third side of right angle triangle i.e. Hypotenuse. Ask the value of perpendicular and…
A: Below is the C++ code to calculate the Hypotenuse of a triangle Program Approach: Include necessary…
Q: tinclude int main() { int length = 20; width = 15, area; length * width - area; cout << "The area…
A: The fixed code is shown below: #include <iostream> using namespace std;int main() { int…
Q: What is wrong in the following code?
A: In the given image (a): The Class circle has an object c1 but when declaring the object “( )” has…
Q: #include Servo Servo Main int trigpin = 9; int echo = 8) distance i int Note This Code for Smart…
A: The sensor has 4 pins. VCC and GND go to 5V and GND pins on the Arduino, and the Trig and Echo go to…
Q: #include #include int main() { int year = 2019; cout << "World Cup France cout << "The square of…
A: Please refer below output: firstly we know, int year=2019; now there are two print statements after…
Q: What will be displayed when the following code is executed? const int x = 7; int y = 10; y *= 5; y…
A: since you have asked multiple question ,we will solve the first question for you. If you want any…
Q: What does the following code display? int [] arr2 = {1, 2, 3}; for (int i = 0; i < arr2.length;…
A: Answer
Q: Surface Area of sphere is A = 4 π r **2 Convert this into function and pass any…
A: Given: The surface area of the sphere is A = 4 π r 2 Convert this into function and pass any value…
Q: Code with comments and output screenshot Use python to write following code. To make a 4x4 grid…
A: Required: Use python to write following code. To make a 4x4 grid which have two 2s in random…
Q: Create a latin sqaure with 4 conditions
A: PROGRAM CODE: Following is the c++ program code for creating a Latin square with 4 conditions: //…
Create an enum ShapeColor, which has the following entries:
SHAPE_COLOR_RED, SHAPE_COLOR_BLUE, SHAPE_COLOR_GREEN, SHAPE_COLOR_ORANGE, SHAPE_COLOR_BLACK, SHAPE_COLOR_WHITE
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images
- The parameter is incorrect. The picture size is not supported. Each image must have a resolution of 40 to 2600 pixels.Write a JQUERY code for the implementation of an animation. It must contain DIV and its background color can be changed after clicking a button and on the same event div's height and width should also be increased. Before Click After Click Start Animation Start Animation Answer:What shape would be created by the following code? for i in range (360): shape.forward(1) shape.right(1)
- It allows to change the appearance of elements in order to rotate,skew...etc as desired. transform animate keyframe transitionCreate the following ndarray objects: Create an ndarray of shape (8, 8) and all data are 2.5 Create an ndarray of shape (4, 4) whose values range from 0 to 15 Create a 6 × 6 identity matrix Create a random array of size 20 with standard normal distribution and find its mean value Create a random array of shape (3, 6) with random integers in the range of [1, 50]. Create a random array of shape (4, 5) with uniform distribution in the range of [0, 10]. Find its maximum and minimum values and the mean value.MipMaps I Suppose that a pixel projects to an area of 10x28 texels in a texture map. From what mipmap level does the texture unit look up the texture value for this pixel, if the texture unit is using "nearest" lookup for mipmaps? Enter a single integer that is the mipmap level. A/
- The parameter that you entered is incorrect. Image size is not supported at this time. The width and height of each picture must be between 40 and 2600 pixels.a class with 10 students that will take 3 exams use 3 arrays to hold the scores for each student and anoither array to hold the average of the 3 exams for each student. Print the table with the scores and averageCreate an app that enables the user to play the game of 15. The game has a 4-by-4 board with a total of 16 slots. One slot is empty; the others are occupied by 15 square tiles numbered 1 through 15. The user can move any tile next to the currently empty slot into that slot by clicking that tile. Your app should create the board with the tiles in random order. The goal is to arrange the tiles into sequential order, row by row—that is, 1–4 in the first row, 5–8 in the second row, 9–12 in the third row and 13–15 in the fourth row.
- 10. Tic-Tac-Toe Simulator Create a JavaFX application that simulates a game of tic-tac-toe. Figure 15-55 shows an example of the application's GUI. The window shown in the figure uses nine ImageView components to display the Xs and Os. (You will find images for the X and the O in the book's Student Sample Files.) The application should use a two-dimensional int array to simulate the game board in mem- ory. When the user clicks the New Game button, the application should step through the array, storing a random number in the range of 0 through 1 in each element. The number 0 represents the letter O, and the number 1 represents the letter X. The application's window should then be updated to display the game board. The application should display a message indicating whether player X won, player Y won, or the game was a tie. Tic Tac Toe X Wins! New Gamethe information for the 3 objects you need to create is listedbelow:Description Brand Units in Inventory Unit PriceItem #1 Jacket REI 12 130.95Item #2 Designer Jeans Levi 40 34.95Item #3 Shirt Nike 20 24.956. After storing the items as objects, calculate the total price for eachitem (units x unit price) then display the items as shown in thetable above but with an additional column titled “Total Price” thatdisplays the total price the program has calculated for each item. pythonImage below shows how information is to be displayed# TODO y_values = display(y_values) todo_check([ (y_values.shape == (120,),'y_values does not have the correct shape of (120,)'), (np.all(np.isclose(y_values,…