Using C# create a console app doing the following Write a method that takes two integers and displays their sum. Write a method that takes five doubles and returns their average. Write a method that returns the sum of two randomly generated integers.
Q: A) Create a super (parent) class called Course. The Course class represents any course that does not...
A: NOTE: Programming language is not mentioned, so I am doing in JAVA In this question, there are three...
Q: describe what software engineering is and how it differs from other types of engineering.
A: Introduction: Software engineering is an engineering field dealing with all elements of software cre...
Q: CFG
A: Note that (d) can't be derived with the given grammar.
Q: Develop a program that 1- Would read an input from the keyboard. The input should be a whole positiv...
A: while True: #1- Would read an input from the keyboard. The input should be a whole positive numbe...
Q: Use Python. Assume a variable testScore that has already been initialized, write one if/elif/else st...
A: Python Code: # Initialized testScore variabletestScore = 100 # If testscore is equal to 100 then out...
Q: Which type of image is best for a 3-D video game? Why?
A: A video game also known as computer game is an electronic game that involves interaction with a user...
Q: Write a program that gets 2 or more command-line arguments. The last argument is a file that the pro...
A: Code: lis=list(input("Enter filenams: ").split())p=lis[-1]+".txt"file1 = open(p,"w") for i in rang...
Q: Why are "pure" functional programming languages so rare? Explain what a "pure" functional programmin...
A: Introduction: Purely functional programming assigns a programming viewpoint, a means of developing t...
Q: 1. Create a function name print(), receive and return nothing. 2. From main, call print(). 3. In pri...
A: Given : Create a function in C++ name print(), receive and return nothing , from main, call print()....
Q: What do you think the boundaries of an organization's information security are? When security rules ...
A: Introduction: Organizations may use information security to secure both digital and analog data (Inf...
Q: Write a method public static void insert(int[] a, int n, int x) that inserts x in ord...
A: Insertion Sort are the simple algorithm that works like the manner in which you sort playing a card ...
Q: What is an expert system, and how can a data warehouse help in its creation?
A: Introduction: Expert System is a computer-based decision-making system that uses a combination of fa...
Q: # For simplicity, we'll use "Station" in our type contracts to indicate that # we mean a list contai...
A: Hi Dear!! Please Upvote!! --------------------------------------------------------------------------...
Q: Write a program that takes a sequence of non-negative numbers and performs the computation suggested...
A: Here I have created an empty list. Next, I have created an infinite while loop, and inside the loop,...
Q: Write a line (or lines) of code that uses a list that has been previously defined, named word_list, ...
A: Algorithm: Initialize the word_list Input the find string from the user Initialize count to 0 Itera...
Q: Construct the NFA that will accept the string of (dcļac)* dc (gg|bb)*dc.
A: Below is the answer to above question. I hope this will meet your requirements.
Q: P4 Test the system against user and system requirements
A: Lets see the solution in the next steps
Q: What is the evaluation of Erlang in these 4 criteria: readability, writability, reliability, and cos...
A: Ans: Evaluation of Erlang in these 4 criteria: readability, writability, reliability, and cost are b...
Q: Large computing installations (such as server farms) can have significant impacts on the environment...
A: The server farms or large computing installations are a collection of servers which are usually main...
Q: Write a C program to compute multiplication of two given interval [A] and [B] matrices by extending ...
A: here is the C program to compute the multiplication of two given interval matrices [A] and [B] by e...
Q: use pseudocode in designing the logic Design an application for Bob’s E-Z Loans. The application ac...
A: use pseudocode in designing the logic Design an application for Bob’s E-Z Loans. The application acc...
Q: Is it correct to say that stub isn't a network topology? explain?
A:
Q: Computers manipulate information and carry out binary instructions. What exactly is binary's purpose...
A: To understand human instructions, computers employ the binary system. Binary 1 denotes a positive pu...
Q: This kind of data transmission allows data to be delivered in both directions on a signal carrier at...
A: As we know that the full duplex as mentioned is a data transmisssion which can transmit data in both...
Q: Which of the following are characteristics of BIOS? i) The data stored in BIOS is temporary. ii) I...
A: BIOS is firmware that is embedded on a small memory chip on the computer's motherboard. It acts as a...
Q: What is a protocol stack, and how does it work? It's a collection of protocols that are used.
A: Introduction: It is possible to refer to a grouping of protocols as a "protocol stack." Protocols t...
Q: acteristic of Big Data is variety, which means that: a. data can have many different formats. b. d...
A: one characteristic of Big Data is variety, which means that: a. data can have many different fo...
Q: Compare different tools for performing the SQL injection and suggest the required countermeasures. ...
A: SQL injection is the most prevalent security vulnerability in online applications, as well as the mo...
Q: Can polling and DMA be used together? If yes, give an example
A: Polling is the course of action in which the the procedure written or developed in the software whi...
Q: In order for a network to function properly and efficiently, what three characteristics must it meet...
A:
Q: For the following SAT problem, first convert the CNF into a 3CNF (reducing SAT to 3SAT) and then dra...
A: For the above SAT problem, Here is the solution:
Q: Consider the WAN, or wide-area network, as your preferred means of wireless connectivity. What disti...
A: Find the answer given as below :
Q: Which of the following is NOT true about emoticons
A: Emoticons are facial expressions that express a person's emotions, such as happiness, sadness, and f...
Q: Write a program to print the lyrics of the song “Old MacDonald." Your program should print the lyric...
A: Step 1 : Start Step 2 : Using a print() statement to print the first verse of the lyrics. Step 2 : U...
Q: PLEASE DRAW THE DIAGRAM ACCORDING TO THE QUESTION: 4. Company TeaLeaves has recently adopted a new o...
A: Let's see the solution in the next steps
Q: What are the four parts of a database system?
A: Introduction: The database system is made up of four major components: Hardware Software Data Data ...
Q: def update_task(task_list, task_id, task_field, task_update): """ Given * the task list (`ta...
A: Here is the solution for your problem:
Q: 11. Input three integers x, y, and z, and then check whether the numbers form a valid Pythagorean tr...
A: Required:- 11. Input three integers x, y, and z, and then check whether the numbers form a valid Pyt...
Q: 4. Consider the following languages. • ANFAFIN = {(N) |N is an NFA and L(N) is finite} • EREX = {(R)...
A: Answer:- No,All strings of the form 10n are contained in L(N) (in addition to other strings as well...
Q: Use the following expression to create an expression tree: 6 - 5 * 4 + 3 / 2 + 1 - 0
A: Given: We Have to create a Expression Tree in the Following Expression: 6 - 5 * 4 + 3 / 2 + 1 - 0...
Q: How may modifications to permission, authentication, and roles aid in mitigating and dealing with th...
A: Enterprise System: In this, you must create two pages of chart, and in that chart, you must ensure t...
Q: The cross-sectional are of each member in cm2 is underlined. Each member is made of steel, E = 20 * ...
A: Given that E=20*10^6 N.cm2
Q: Most retail establishments use barcode scanners to get product names and pricing in order to expedit...
A: Introduction: Although barcode technology has grown so common that many consumers take it for grante...
Q: Choose one of the following tools in the program GIMP: desaturate, clone, rotate, increase contrast,...
A: increase contrast Actually IC does as making black darker and white brighter and it's property all t...
Q: People go to the beach and often buy a bunch of stuff that will only be used at the beach. Pretend y...
A: Assume that we are placing the input txt file in the same folder as the working directory. Please fi...
Q: Most retail establishments use barcode scanners to get product names and pricing in order to expedit...
A: Introduction: This kind of input is referred to as bar-code scanning, and it is conducted using bar-...
Q: Q3.Create a function to insert a new product into an existing order, include the product id, unit pr...
A: Introduction Create a function to insert a new product into an existing order, include the product i...
Q: 9) Convert the following numbers from the given base to the other three bases listed in the table: D...
A: Decimal Binary Octal Hexadecimal 369.3125 101110001.0101 105.24 45.5 189.625 10111101.101 275.5 ...
Q: Having generated and saved a bitmap and vector-based image, explain why the files of these documents...
A: I have answer this question in step 2.
Q: Android Studio project Using Java language to Design a game to find the difference between images in...
A: CompareTwoImages.java import java.awt.Color; import java.awt.Graphics2D; import java.awt.image.Buf...
Using C# create a console app doing the following
- Write a method that takes two integers and displays their sum.
- Write a method that takes five doubles and returns their average.
- Write a method that returns the sum of two randomly generated integers.
- 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 an array of doubles and returns the largest value in the array.
- Write a method that generates and returns an array of fifty integer values.
- 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 method that takes a two-dimensional array of integers and returns the average of the entries.
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images
- Use Java programming language Write a program that asks the user to enter 5 test grades (use an array to store them). Output the grades entered, the lowest and highest grade, the average grade, how many grades are above the average and how many are below and the letter grade for the average grade. Create a method that returns the lowest grade. Create a method that returns the highest grade. Create a method that returns the average grade. Create a method that returns how many grades were above the average. Create a method that returns how many grades were below the average. Create a method that returns the letter grade of the average (90-100 - A, 80-89 - B, 70-79 - C, < 70 - F)Use Java programming language Write a program that asks the user to enter 5 test grades (use an array to store them). Output the grades entered, the lowest and highest grade, the average grade, how many grades are above the average and how many are below and the letter grade for the average grade. Create a method that returns the lowest grade. Create a method that returns the highest grade. Create a method that returns the average grade. Create a method that returns how many grades were above the average. Create a method that returns how many grades were below the average. Create a method that returns the letter grade of the average (90-100 – A, 80-89 – B, 70-79 – C, < 70 – F)Design an application that declares an array of 10 StockTransactionobjects. Prompt the user for data for each object, and then display all the values. Design an application that declares an array of 10 StockTransactionobjects. Prompt the user for data for each object, and then pass the array to a method that determines and displays the two stocks with the highest and lowest price per share.
- cerat javaFX 9-Rock, Paper, Scissors GameCreate a JavaFX application that lets the user play the game of rock, paper, scissors againstthe computer. The program should work as follows.1. When the program begins, a random number in the range of 1 through 3 is generated. If the number is 1, then the computer has chosen rock. If the number is 2, thenthe computer has chosen paper. If the number is 3, then the computer has chosenscissors. (Do not display the computer’s choice yet.)2. The user selects his or her choice of rock, paper, or scissors by clicking a Button. Animage of the user’s choice should be displayed in an ImageView component. (Youwill find rock, paper, and scissors image files in the book’s Student Sample Files.)3. An image of the computer’s choice is displayed.4. A winner is selected according to the following rules:l If one player chooses rock and the other player chooses scissors, then rock wins.(Rock smashes scissors.)l If one player chooses scissors and the other player…Travel Tickets Company sells tickets for airlines, tours, and other travel-related services. Because ticket agents frequently mistype long ticket numbers, Travel Tickets has asked you to write an application that indicates invalid ticket number entries. The class prompts a ticket agent to enter a six-digit ticket number. Ticket numbers are designed so that if you drop the last digit of the number, then divide the number by 7, the remainder of the division will be identical to the last dropped digit. Accept the ticket number from the agent and verify whether it is a valid number. Test the application with the following ticket numbers: . 123454; the comparison should evaluate to true . 147103; the comparison should evaluate to true . 154123; the comparison should evaluate to false Save the program as TicketNumber.java.JAVA Include Code Comments create a public class named ArrayUtility In ArrayUtility class, create a public static method toString that receives an array of int's, a start string, a separator string and an end string. It returns a String starting with the start string, followed by the array elements separated by the separator and ending with the end string. create a public class named ArrayUtilityTest In ArrayUtilityTest class, create a public static method toStringTest that prints the results for the following 5 lengths of arrays, using different types of brackets and separators for each: empty, singleton, two elements, 5 elements and 20 elements. Call only this class in the main method and check the results. In ArrayUtility class, create a public static method equals that receives two arrays of int's and returns true if they have the same length and equal corresponding elements. In ArrayUtilityTest class, create a public static method equalsTest that prints the results for the…
- Using C# Language and Visual Studio.Create a guessing game that shows hint everytime you guess the correct letter using ArrayList and StringBuilder. FOR EXAMPLE THE WORD IS MATH IF THE PLAYER GUESS THE RIGHT LETTER SHOW THE RIGHT LETTER FOR EXAMPLE HE GUESSED THE RIGHT LETTER "A" THE OUTPUT MUST SHOW YOU GUESS THE CORRECT LETTER _A_ _See the sample outputs for more clarification. Project Specifications Input for this project: Values of the grid (row by row) Output for this project: Whether or not the grid is magic square Programmer's full name Project number Project due date Processing Requirements Use the following template to start your project: #include using namespace std; // Global constants // The number of rows in the array // The number of columns in the array // The value of the smallest number // The value of the largest number const int ROWS = 3; const int COLS = 3; const int MIN = 1; const int MAX = 9; // Function prototypes bool isMagicsquare(int arrayRow1[], int arrayRow2 [], int arrayRow3[], int size); bool checkRange (int arrayRow1[], int arrayRow2[], int arrayRow3[], int size, int min, int max); bool checkUnique(int arrayRow1[], int arrayRow2[], int arrayRow3[], int size); bool checkRowSum (int arrayrow1[], int arrayrow2[], int arrayrow3[], int size); bool checkColiSum(int arrayrow1[], int…JavaDriver Program Write a driver program that contains a main method and two other methods. Create an Array of Objects In the main method, create an array of Food that holds at least two foods and at least two vegetables. You can decide what data to use. Method: Print Write a method that prints the text representation of the foods in the array in reverse order (meaning from the end of the array to the beginning). Invoke this method from main. Method: Highest Sugar Food Write a method that takes an array of Food objects and finds the Food that has the most sugar. Note that the method is finding the Food, not the grams of sugar. Hint: in looping to find the food, keep track of both the current highest index and value. Invoke this method from main.
- Greetings. The programming language to be used is: JAVA Please write a GUI that implements a game, where the user has to click the buttons in the order of their numbering. * The 9 buttons are arranged in a grid of 3 by 3. Each one has a different number from 1 to 9. * If the user selects the correct button, it should turn green and become disabled. The score should beincremented by 1. * If the user selects the incorrect button, it should turn red and all the buttons should become disabled. * If the user selects the “Reset” button, all buttons should be white and become enabled, their random numbers should be reassigned and the score set to 0. Thank you.JAVAA7-Write a class with a constructor that accepts a String object as its argument. The class should have a method that returns the number of vowels in the string, and another method that returns the number of consonants in the string. Demonstrate the class in a program by invoking the methods that return the number of vowels and consonants. Print the counts returned.3. Magic Square: Create a class MagicSquare that prompts the user for a positive odd integer size, generates a normal magic square of order size, and prints it with numbers right-justified and aligned in evenly-spaced columns. You may assume the numbers in the square are 3 digits or less (i.e. size ≤31). However, each space-separated column should have a width equal to the largest integer in the magic square. (See example transcripts below.) To generate the magic square, use the following algorithm: Assign 1 to our initial current position: the bottom row, middle column. Place each successive value (up to size * size) in the first of the following positions that is unoccupied: (1) one space down and to the right, or (2) one space up. Positions wrap around the sides, top and bottom, as shown in the following example transcripts (user input underlined): Please enter a positive odd integer: 3 492 357 8 16 Please enter a positive odd integer: 5 11 18 25 2 9 10 12 19 21 3 4 6 13 20 22 23 5…