Web development and programming
191828 questions • Page 264 / 3837
1. Write a class and a tester that reads students scores, gets the best score an
1. Write a class and a tester that reads students scores, gets the best score and then assign grades based on the following scheme: Grade is A if score is >= best - 10; Grade i…
1. Write a class called House to hold details of the location (street number, st
1. Write a class called House to hold details of the location (street number, street name, town) and the year of construction and the property tax. Write the appropriate contructo…
1. Write a class called House to hold details of the location (street number, st
1. Write a class called House to hold details of the location (street number, street name, town) and the year of construction and the property tax. Write the appropriate contructo…
1. Write a class called House to hold details of the location (street number, st
1. Write a class called House to hold details of the location (street number, street name, town) and the year of construction and the property tax. Write the appropriate contructo…
1. Write a class called House to hold details of the location (street number, st
1. Write a class called House to hold details of the location (street number, street name, town) and the year of construction and the property tax. Write the appropriate contructo…
1. Write a class called House to hold details of the location (street number, st
1. Write a class called House to hold details of the location (street number, street name, town) and the year of construction and the property tax. Write the appropriate contructo…
1. Write a class called Lab9.java with the following static methods: (a) int[][]
1. Write a class called Lab9.java with the following static methods: (a) int[][] random(int N, int start, int end): returns an N-by-N matrix of random integers ranging from start …
1. Write a class called Process which stores the ID, arrival time, and CPU burst
1. Write a class called Process which stores the ID, arrival time, and CPU burst length of a process, all are integers. You can also add data members to keep track of information …
1. Write a class called Rectangle that maintains two attributes to represent the
1. Write a class called Rectangle that maintains two attributes to represent the length and width of a rectangle. Provide suitable get, set, and toString methods plus two methods …
1. Write a class called Rectangle that maintains two attributes to represent the
1. Write a class called Rectangle that maintains two attributes to represent the length and width of a rectangle. Provide suitable get, set, and toString methods plus two methods …
1. Write a class called TelDirectory that implements the Comparable interface. T
1. Write a class called TelDirectory that implements the Comparable interface. The class should contain two fields name (String) and phone number (String). Write the necessary con…
1. Write a class called TelDirectory that implements the comparable interface. T
1. Write a class called TelDirectory that implements the comparable interface. The class should contain tow fields name (String) and phone number (String). Write the necessary con…
1. Write a class calledEMPLOYEE with 3 PRIVATE data members:NAME, SALARY, ID (a
1. Write a class calledEMPLOYEE with 3 PRIVATE data members:NAME, SALARY, ID (a 4digit number). In the body of the program, declare an instance of the class Have the user enter va…
1. Write a class named Month. The class should have an integer field named month
1. Write a class named Month. The class should have an integer field named monthNumber that holds the number of the month (January is 1, February is 2, etc.). Also provide the fol…
1. Write a class named PrintNumbers that implements the Runnable interface. Add
1. Write a class named PrintNumbers that implements the Runnable interface. Add a field of type boolean called keepGoing and a constructor that initializes keepGoing to true. 2. A…
1. Write a class named Rational to represent Rational numbers. The UML represent
1. Write a class named Rational to represent Rational numbers. The UML representation of the class is: Rational __________________________________________ -numerator: long -denomi…
1. Write a class named Strict that has the method equals as specified in the boo
1. Write a class named Strict that has the method equals as specified in the book on page 316 (ALL CORRESPONDING ELEMENTS ARE THE SAME.) 2. The class named Strict should also have…
1. Write a class that prompts the user to enter the edge of a square, then use a
1. Write a class that prompts the user to enter the edge of a square, then use asterisks to displays it (hollow with an empty body). The edge must be a number from 1 to 30. I…
1. Write a class that prompts the user to enter the edge of a square, then use a
1. Write a class that prompts the user to enter the edge of a square, then use asterisks to displays it (hollow with an empty body). The edge must be a number from 1 to 30. If edg…
1. Write a code for reversing a singly linked list L using only a constant amoun
1. Write a code for reversing a singly linked list L using only a constant amount of additional space and not using any recursion. What is the time complexity of your code? Write …
1. Write a code segment using class queueClass that creates a queue of the integ
1. Write a code segment using class queueClass that creates a queue of the integers 1-5. 2. Write a member function called Display that displays the elements of an object of type …
1. Write a command that removes the file junk and save any error messages in a f
1. Write a command that removes the file junk and save any error messages in a file name errors. 2. Write a command that will print the number of lines in the file shortlist that …
1. Write a command to show how much space on the disk your current directory and
1. Write a command to show how much space on the disk your current directory and its subdirectories are using. The output should also include stats for files in addition to direct…
1. Write a command to show how much space on the disk your current directory and
1. Write a command to show how much space on the disk your current directory and its subdirectories are using. The output should also include stats for files in addition to direct…
1. Write a complete C++ program with the two alternate functions specified below
1. Write a complete C++ program with the two alternate functions specified below, of which each simply triples the variable count defined in main. Then compare and contrast the tw…
1. Write a complete Java method called sumNums that takes no parameters and retu
1. Write a complete Java method called sumNums that takes no parameters and returns an integer. The method uses a do-while loop to ask the user to enter a series of positive integ…
1. Write a complete Java method called sumNums that takes no parameters and retu
1. Write a complete Java method called sumNums that takes no parameters and returns an integer. The method uses a do-while loop to ask the user to enter a series of positive integ…
1. Write a complete Java method called sumNums that takes no parameters and retu
1. Write a complete Java method called sumNums that takes no parameters and returns an integer. The method uses a do-while loop to ask the user to enter a series of positive integ…
1. Write a complete Java program called Finder that declares an array of Strings
1. Write a complete Java program called Finder that declares an array of Strings of length 5 (call it names) and then populates the array with user input from the command li…
1. Write a complete XML file named textbooks.xml, in which you describe at least
1. Write a complete XML file named textbooks.xml, in which you describe at least a partial list of the textbooks you are using this semester. You should include at least two disti…
1. Write a complete method at the client level called countMultipleOf. The metho
1. Write a complete method at the client level called countMultipleOf. The method counts how many items in a bag are multiples of some number. For example, if a bag contains (8, 9…
1. Write a complete program with comments and sample run Ask the user for a numb
1. Write a complete program with comments and sample run Ask the user for a number . Your program will read and compute the average for that many (numbers) integers, display the r…
1. Write a computer code ( in MATLAB ), for BOTH part c and d, that contans the
1. Write a computer code (in MATLAB), for BOTH part c and d, that contans the following assignment statements exactly as shown. Analyze the results. c. What values would the follo…
1. Write a computer program that prompts the user for a number, creates an array
1. Write a computer program that prompts the user for a number, creates an array for that number of random integers, and then uses the bubble sort to order the array. The program …
1. Write a computer program that prompts the user for a number, creates an array
1. Write a computer program that prompts the user for a number, creates an array for that number of random integers, and then uses the bubble sort to order the array. The program …
1. Write a conditional that assigns true (1) to the variable fever if the variab
1. Write a conditional that assigns true (1) to the variable fever if the variable temperature is greater than 98.6 2.Assume that isIsosceles is an int variable, and that the vari…
1. Write a constructor for the Car class that will accept two input arguments as
1. Write a constructor for the Car class that will accept two input arguments as the initial values of the attributes. 2. Write an overloaded constructor for the Car class that wi…
1. Write a cout statement to display the ASCII value of the character stored in
1. Write a cout statement to display the ASCII value of the character stored in a char variable called ch. Assume that ch has been properly declared and contains a value. 2. What …
1. Write a file named 4a.php. This file should create a form that send
1. Write a file named <lastname>4a.php. This file should create a form that sends its action to <lastname>4b.php. The form should contain a select whose options contai…
1. Write a full Java program that asks the user to type in 5 words, prompting th
1. Write a full Java program that asks the user to type in 5 words, prompting the user for each word with a number. The program then reports the longest and the shortest word the …
1. Write a function U row-echelon (A, tol), which reduces the input matrix A in
1. Write a function U row-echelon (A, tol), which reduces the input matrix A in the row echelon form U using the algorithm described in class. Note for this function, you will nee…
1. Write a function bool IsEvenDigit( char ch ); that takes a character and retu
1. Write a function bool IsEvenDigit( char ch ); that takes a character and returns true if the character is one of the even digits { '0', '2', '4', '6', '8' } otherwise false. Wr…
1. Write a function bool yes( ) which reads a string from the keyboard and retur
1. Write a function bool yes( ) which reads a string from the keyboard and returns true if the string begins with 'Y' or 'y'; otherwise it returns false. Now write a main to play …
1. Write a function called Insert that takes in four parameters: an integer arra
1. Write a function called Insert that takes in four parameters: an integer array, the size of the array, the new value to be inserted into the array, the index at which to insert…
1. Write a function called add_to_array. The function is passed 3 parameters: an
1. Write a function called add_to_array. The function is passed 3 parameters: an array of integers x, the length of the array len, and an incrementing value i. The function modifi…
1. Write a function called arrangeThree that swaps the values of three integers,
1. Write a function called arrangeThree that swaps the values of three integers, given as three separate parameters. This function should not have any return value, but, like swap…
1. Write a function called censor. The function is passed a string as a paramete
1. Write a function called censor. The function is passed a string as a parameter, which consists of words separated by blanks and/or punctuation marks, newlines, etc. censor retu…
1. Write a function called changeLetter that can directly alter the value of a c
1. Write a function called changeLetter that can directly alter the value of a character variable. It takes one argument: a reference to a character. It returns nothing. If the pa…
1. Write a function called ev5 that takes as input an integer array a1 and its l
1. Write a function called ev5 that takes as input an integer array a1 and its length l1, and returns true if the number of even elements in the array is more than 5. Test your co…
1. Write a function called find_min_max() that accepts an array of doubles and t
1. Write a function called find_min_max() that accepts an array of doubles and the number of items in the array as input parameters, and returns the minimum and maximum values in …
Subject
Web development and programming
Use Browse or pick another subject.