Questions
C# What to submit: One zip file named Ass3.zip This zip must contain one VS 2017...

C#

What to submit:

One zip file named Ass3.zip

This zip must contain one VS 2017 solution named Ass3, which contains one C# Windows Forms App project also named Ass3 and the project contains a default form, Form1.cs and Program.cs.

No change should be made in Program.cs, but your Form1 must be designed and implemented to satisfy the following requirements.

**Do not submit only a single file of the solution or project. The whole solution folder of VS 2017 must be zipped and submitted for grading.

Requirements:

  1. Use VS 2017 to create a C# Windows Forms App project whose solution and project are named Ass3. When all requirements below are finished and tested, zip the entire solution as Ass3.zip and upload it for grading.
  2. Use the same Functional Requirement as described in Assignment 2 with the changes below.
  3. Except the Form1 class given by Visual Studio, no other classes need to be defined. That is, the program you did in Assignment 2, including data and methods of the two classes should be "transplanted" in the Form1 class of this Ass3 project.
  4. All input and output should be done within Form1 and visual controls (e.g., textboxes, labels, buttons, etc.) on the form. That is, no console is used--no more command line I/O and no display in the Command Prompt.
  5. Specifically, the two initial integers and each guess should be entered in a corresponding textbox (i.e., three textboxes in total) and the error message "You must enter a number between ... and ...!" will be displayed by a label in red. A second label should be used to display in blue the hint "Higher...", "Lower...", and "You win!". Finally, let the ending message "----End of Game----" be displayed in the form title (in black since title color cannot be changed).
  6. Set the font size of all visual controls to be 18 points.
  7. Add a button showing 'Generate Secrete Number' to create a secrete number every time it is clicked. Because this button can be clicked at any time, there might be an error or hint displayed from the previous play, this button should also erase both labels to empty and reset the form title to 'Form1' when clicked.
  8. To accept a guess, a second button showing 'Guess' should be added on the form. Each time when it is clicked, it first erases the labels from their previous display and then show the error and/or hint message, depending on the guess entered.
  9. Place each visual control in Form1 so they look like the form shown in the demo program attached below.
  10. Same as in Assignment 2, we assume there are always two valid input integers entered to define the range of the random secrete number, and an integer is always entered as the guess value. That means there is no need to validate all three input integers except the guess value could still be out of the range, which explains (in item 5 above) why an error message needs to be displayed.

In: Computer Science

What determines the capacity of an optical fibre strand?

What determines the capacity of an optical fibre strand?

In: Computer Science

Based on the statement, what are the possibilities that can happen to Uber Technologies Inc. autonomous...

Based on the statement, what are the possibilities that can happen to Uber Technologies Inc. autonomous vehicles Justify your answer. “Self-driving Uber kills Arizona woman in first fatal crash involving pedestrian”.

In: Computer Science

3. Write a Java program that generates a set of random strings from a given string...

3. Write a Java program that generates a set of random strings from a given string of same length where no character is ever repeated and characters belong to the original string.

Examples

Input: “Hello World”

Output: “World oHlel”

In: Computer Science

use java Write a program that, given two binary numbers represented as strings, prints their sum...

use java
Write a program that, given two binary numbers represented as strings, prints their sum in binary. The binary strings are comma separated, two per line. The final answer should not have any leading zeroes. In case the answer is zero, just print one zero i.e. 0

Input:

Your program should read lines from standard input. Each line contains two binary strings, separated by a comma and no spaces.

Output:

For each pair of binary numbers print to standard output their binary sum, one per line.

In: Computer Science

numbers = [75, 635, 274, 353, 534, 684, 381, 67, 968, 155, 502, 149, 10, 789,...

numbers = [75, 635, 274, 353, 534, 684, 381, 67, 968, 155, 502, 149, 10, 789, 757, 379, \

732, 386, 692, 473, 797,

   272, 538, 703, 629, 179, 197, 521, 411, 590, 818, 892, 896, 951, 365, 800, 76\

7, 651, 584, 220, 584, 221,

   23, 819, 794, 957, 74, 985, 395, 544, 324, 464, 980, 293, 980, 208, 560, 651,\

710, 21, 322, 968, 610,

   947, 622, 369, 504, 113, 785, 119, 46, 332, 137, 865, 127, 333, 83, 403, 696,\

771, 733, 811, 220, 451,

   559, 446, 895, 90, 591, 257, 506, 208, 432, 197, 16, 344, 261, 830, 115, 924,\

288, 442, 464, 213, 409,

   815, 495, 205, -123, 147, 930, 69, 188, 419, 880, 815, 291, 646, 464, 888, 31\

0, 228, 529, 218, 565, 642,

   315, 328, 288, 374, 208, 830, 834, 879, 75, 983, 112, 556, 736, 211, 582, 437\

, 717, 833, 719, 684, 518,

   517, 744, 350]

I got to find average, maximum and minimum value from that given list in Python

In: Computer Science

A teacher needs list to fill student scores on five assignments.There are 15 students in her...

A teacher needs list to fill student scores on five assignments.There are 15 students in her class.The students are numbered 1 through 15.Use nested for loops to print out the list for the teacher.

In: Computer Science

3D printing What are the technical parameters such as range, speed, capacity, etc. (if applicable)? o...

3D printing

What are the technical parameters such as range, speed, capacity, etc. (if
applicable)?
o What are the strengths and weaknesses of the technology?

In: Computer Science

Write a Java application that inputs an unknown number of employees and determines and displays the...

Write a Java application that inputs an unknown number of employees and determines and displays the gross pay for each employ. The company pays straight time for the first 40 hours worked by each employee (hours times rate), and straight time plus time-and-a-half for all hours worked in excess of 40 hours. Input the number of hours worked and hourly rate for each of the employees, then determine and display the employee’s gross pay. At the end of the program, print the total gross pay for all employees. Make sure you use the sentinel control Algorithm

In: Computer Science

Write a program that determines the probability of tossing a coin 10 times and getting exactly...

Write a program that determines the probability of tossing a coin 10 times and getting exactly 0, 1, 2, 3, etc. heads. This is the binomial probability distribution. Store the probability in an array. You could get 0 heads or 10 heads or anything inbetween.

Use a for loop. The for loop will go from 0 to 10 inclusive. Use r as the number of successes. So r will go from 0 to 10. The probability of a success is .5, and also the probability of a failure is .5.

Print out in table form, column 1=r; goes 0 to 10, and then column 2; the probability of r.

Use 4 decimal places for the probability. You know if you get the correct answers because The sum of all the probabilities is 1.0, and all probabilities are in the range of 0 to 1 inclusive.

In C++, prefer visual studios but not required.

In: Computer Science

6. Why do you need to declare the data type of a variable before you can...

6. Why do you need to declare the data type of a variable before you can use it in Java? Give two (2) reasons

7. Is the World Wide Web and the Internet just two names for the same entity? Explain.

8. Why was it necessary to use the import statement when we used Scanner and Random?

9. Communication was a problem at Target. What would you recommend as an escalation process if someone encounters a threat and wants it to be known to upper management?

10. TCP is extremely reliable in delivering messages. Explain how this reliability is built into the message distribution process. Optional

11. The Operating System of a computer is the glue that bridges the hardware and software of a computer to make it work. Explain three (3) ways (features) the operating system provides to accomplishes that

. 12. Name the three (3) programming constructs we coded in class using Java along with a description of each one.

In: Computer Science

Please use Java language in an easy way with comments! Thanks! Write a static method called...

Please use Java language in an easy way with comments! Thanks!

Write a static method called "evaluate" that takes a string as a parameter. The string will contain a postfix expression, consisting only of integer operands and the arithmetic operators +, -, *, and / (representing addition, subtraction, multiplication, and division respectively). All operations should be performed as integer operations. You may assume that the input string contains a properly-formed postfix expression. The method should return the integer that the expression evaluates to. The method MUST use a stack to perform the evaluation. Specifically, you should use the Stack class from the java.util package (For this problem, you must write a static "evaluate" method).

Also, in the same file, write a program that prompts the user to enter a postfix expression. Your program should evaluate the expression and output the result. Your program should call the "evaluate" method described above. Here are some examples:

     Postfix expression: 1 2 +
     Result: 3

     Postfix expression: 1 2 + 3 4 - *
     Result: -3

     Postfix expression: 3 4 5 + + 1 -
     Result: 11

In: Computer Science

In Java for beginners: The math teacher at Garfield High School, Mr. Escalante, is looking for...

In Java for beginners:

The math teacher at Garfield High School, Mr. Escalante, is looking for new ways to help his students learn algebra. They are currently studying the line equation ( y = m * x + b ). Mr. Escalante wants to be able to give his students a phone app that they can use to study for the midterm exam. This is what he'd like the program to do:

The user will be presented with the option to study in one of 3 modes, or to quit the program:

  1. Solve for the value of y, given the values for m, x and b.
  2. Solve for the value of m, given the values for y, x and b.
  3. Solve for the value of b, given the values for y, m and x.

In each mode, all of the given values should be randomly generated integers between -100 and +100. This means that the correct answer must be calculated by the program.

Once the student selects a mode, the program will continue to present randomly generated questions until the student has correctly answered 3 questions in a row. If the student attempts more than 3 questions in a particular mode, a hint about how to solve the problem should be given before the next question is presented.

After the student has correctly answered 3 questions in a row, an overall score (the number of questions answered correctly divided by the total number of questions attempted) should be displayed, and the menu is presented again.

DIRECTIONS

Your program must

  • define and use custom methods (functions)
  • use if statements
  • use while loops

This is a three-part staged assignment. You must complete part 1 with at least 80% success before you can begin part 2, and the same with part 3. After you've completed and submitted each part, you can proceed to the next part by selecting the drop-down arrow next to the assignment title. You will need to complete all parts to receive full credit.

---------------------------------------------------------------------------------------------

Part 1. Solve for y.

Write a program with a that displays a randomly generated problem that asks the user to solve for the y variable, takes input from the user, and prints "correct" if the user answered correctly and prints "incorrect" if not. Your main should give one problem and then exit. Use one or more methods to produce this behavior. Example interactions: Given: m = 10 x = 3 b = 2 What is the value of y? 32 Correct! Given: m = 6 x = 9 b = 3 What is the value of y? 52 Sorry, that is incorrect. The answer is 57.

Part 2. Solve for y, m and b.

Add 2 choices that behave similarly to your part 1 program, but have the user solve for m and b instead. These choices should also randomly generate problems, and print if the user answers correctly. Your main program should display a menu asking which type of question to ask: Select 1 to Solve for Y, 2 to Solve for M, 3 to Solve for B and 4 to quit. When the user selects the question type, one question should be asked, then the user should return to the menu. This should repeat until the user selects quit, then the program should exit. Use one or more methods and loops to produce this behavior.

Part 3.Three in a Row with Hints.

Update your program so that each problem type mode will repeatedly ask questions until the user gets 3 correct answers in a row. If the attempts more than 3 questions in a particular mode, the program should provide a hint on how to solve problems of this type. After the student has correctly answered 3 questions in a row, an overall score (the number of questions answered correctly divided by the total number of questions attempted) should be displayed, and the menu is presented again.

In: Computer Science

1. Lets construct a Dog class 2.Declare name, breed and weight as their private variables 3.Add...

1. Lets construct a Dog class

2.Declare name, breed and weight as their private variables

3.Add a default constructor

4.Write a constructor with name, breed and weight as arguments

5.Add a toString method to the class

6.Add a equals method

7.Add a copy contructor

8.Add a bark method in Dog class

•This method checks if the weight is greater than 25 , then print (dog.name says woof!) else (dog.name say yip!)

In: Computer Science

Draw a memory layout to show the relations of a, b and c. char a[3][10] =...

Draw a memory layout to show the relations of a, b and c.

char a[3][10] = {"abcdefg", "1234567", "!@#$%^&"};
char* b[3];
char** c;
b[0] = &a[0][0];
b[1] = &a[1][0];
b[2] = &a[2][0];
c = b;
char x = b[0][3];
char y = b[0][13];

In: Computer Science