Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Web development and programming

191828 questions • Page 169 / 3837

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 bubble sort to order the array. The program shou…
1) Write a constructor that takes no parameters and initializes all of the field
1) Write a constructor that takes no parameters and initializes all of the fields so the new PiggyBank represents an empty PiggyBank. 2) Write the insertPenny, insertNickel, inser…
1) Write a function called TwoRand that generates two random numbers (ints) betw
1) Write a function called TwoRand that generates two random numbers (ints) between 1 and 25 and returns them to the calling function. Now show how TwoRand would be called: write …
1) Write a function in assembly language. Input a sequence of positive numbers e
1) Write a function in assembly language. Input a sequence of positive numbers ending with 0. Find the minimum and maximum. For example, input 4, 6, 2, 99, 21, 10, 0. min = 2 and …
1) Write a function int reverseDigits(int x); that will return the integer x wit
1) Write a function int reverseDigits(int x); that will return the integer x with the digits reversed. For example, the statement int y = reverseDigits(1234); should assign the nu…
1) Write a function named fact to calculate the factorial of a number. 2)The inf
1)Write a function named fact to calculate the factorial of a number. 2)The infinite Maclaurin series to calculate the sine of an angle in radians is:    (sin(x) = x-x^{3}/3! + x^…
1) Write a function that accepts three numbers as parameters and returns their s
1) Write a function that accepts three numbers as parameters and returns their sum. Don't use any other functions for this. 2) Write a function that accepts two numbers as paramet…
1) Write a function that prints to the screen the odd numbers from 1 to 99. 2) W
1) Write a function that prints to the screen the odd numbers from 1 to 99. 2) Write a function called isPrime that takes a positive integer and returns True if the number is prim…
1) Write a function that reverses the given string. 2) Write a function that rea
1) Write a function that reverses the given string. 2) Write a function that reads a sentence and prints all the words in the sentence. 3) Write a function that returns the grade …
1) Write a function to find the smallest value in an array. The prototype declar
1) Write a function to find the smallest value in an array. The prototype declaration for the function is: int * findMin (int * arr, int size); See that this function takes an int…
1) Write a function, to be included in a sorted linked list class, called betwee
1) Write a function, to be included in a sorted linked list class, called betweenltems, that will receive two T arameters called start and end. The function will return how many i…
1) Write a java program that formsa calculator. You are suppose to have the 4 ma
1)      Write a java program that formsa calculator. You are suppose to have the 4 main operations (add,subtract, multiply, divide) as methods that take two arguments (ex.Add(10,3…
1) Write a java program to implement a queue using ArrayList and then reverse th
1) Write a java program to implement a queue using ArrayList and then reverse the array elements and print them out. Finally perform the queue operations and print the results. 2)…
1) Write a loop that fills an array values with ten random numbers between 1 and
1) Write a loop that fills an array values with ten random numbers between 1 and 100. Write code for two nested loops that fill values with ten different random numbers between 1 …
1) Write a matlab scripts for the following to accept two numbers from the user
1) Write a matlab scripts for the following to accept two numbers from the user and display Prime number between these two number 2) Write a matlab scripts for the following to ac…
1) Write a method called randomInRange that takes in two numbers representing a
1) Write a method called randomInRange that takes in two numbers representing a range. Print an error message and return zero if the second parameter is less than the first. Other…
1) Write a method for an array-based implementation of the Listclass that remove
1) Write a method for an array-based implementation of the Listclass that removes the largest item in the list. Do no useany other methods from the List class. Assume thatNodeItem…
1) Write a method named average3 that accepts three integers as parameters and r
1) Write a method named average3 that accepts three integers as parameters and returns the average of the three values. For example, the call average3(15, 22, -1) should return 12…
1) Write a method that is passed in a String and returns a new String with every
1) Write a method that is passed in a String and returns a new String with every pair of characters reversed. If there are an odd number of characters, the last character is uncha…
1) Write a method that is passed in a full array of integers and shifts all the
1) Write a method that is passed in a full array of integers and shifts all the data in the list down one index. The first value in the array should be stored at the end. {5, 8, 9…
1) Write a method that takes an integer value and returns the numberwith the dig
1)     Write a method that takes an integer value and returns the numberwith the digits reversed. For example, given the number 7631, themethod should return 1367. Incorporate thi…
1) Write a method to convert from Celsius to Fahrenheit using the following meth
1) Write a method to convert from Celsius to Fahrenheit using the following method header: // convers form Celsius to Fahrenheit public static double celsiusToFahrenheit (double c…
1) Write a program FindFactorial that computes and displays the factorial of a n
1) Write a program FindFactorial that computes and displays the factorial of a non-negative integer. For example, the factorial of 4 is computed as 4 * 3 * 2 * 1 = 24. The factori…
1) Write a program as described, but include a loop so the user can perform as m
1) Write a program as described, but include a loop so the user can perform as many calculations as desired. Present a menu of options; prompt for: a)ir, w)water, s)teel and q)uit…
1) Write a program for your Computer Science Laboratory (H113) to keep log (reco
1) Write a program for your Computer Science Laboratory (H113) to keep log (record) of students who entered in laboratory and to calculate the average number of hours each student…
1) Write a program tat reads a four digit integer, such as 1998 ,and then displa
1) Write a program tat reads a four digit integer, such as 1998 ,and then displays it, one digit per line so: 1 9 9 8 Your prompt should tell the user to enter a four-digit intege…
1) Write a program that asks a user for a file name and prints the number of cha
1) Write a program that asks a user for a file name and prints the number of characters, words (separated by whitespace), and lines in that file. Then, it replaces each line of th…
1) Write a program that asks the user to enter the names of three salesmen. The
1) Write a program that asks the user to enter the names of three salesmen. The program should then accept the sales produced for each quarter of the year. Display the name, and t…
1) Write a program that creates a vector of string called “Vec”. Vector “Vec” gr
1)      Write a program that creates a vector of string called “Vec”. Vector “Vec” grows and shrinks as the user processes the transactions from a data file called “Transaction.tx…
1) Write a program that has an Asteroid class. The class has private data member
1) Write a program that has an Asteroid class. The class has private data members of size and speed. It has set functions for the size and speed data members. The class also has a…
1) Write a program that inputs a five-digit integer, separates the integer into
1) Write a program that inputs a five-digit integer, separates the integer into its individual digits and prints the digits separated from one another by tab length. Hint: Use int…
1) Write a program that prompts (the user) for and reads a double value represen
1) Write a program that prompts (the user) for and reads a double value representing a monetary amount. Then determine the fewest number of each bill and coin needed to represent …
1) Write a program that reads a string containing exactly four words (separated
1) Write a program that reads a string containing exactly four words (separated by * symbols) into a single string object. Next, extract each word from the original string and sto…
1) Write a program that reads a string of characters, pushing each character ont
1) Write a program that reads a string of characters, pushing each character onto a stack as it is read and simultaneously adding it to a queue. When the end of the string is enco…
1) Write a program that uses while loops to perform the following steps: a) prom
1) Write a program that uses while loops to perform the following steps: a) promot the user to input two integers: firstNum and secondNum (firstNum must be less than secondNum) b)…
1) Write a program that will print out all perfect numbers from 1 to n. To deter
1) Write a program that will print out all perfect numbers from 1 to n. To determine if a number is perfect add up all the factors of the number that are less than the number . If…
1) Write a program that will simulate FCFS, SJN, SRT, and Round Robin scheduling
1) Write a program that will simulate FCFS, SJN, SRT, and Round Robin scheduling algorithms. For each algorithm, the program should compute waiting time and turnaround time of eve…
1) Write a program that will simulate FCFS, SJN, SRT, and Round Robin scheduling
1) Write a program that will simulate FCFS, SJN, SRT, and Round Robin scheduling algorithms. For each algorithm, the program should compute waiting time and turnaround time of eve…
1) Write a program that will take the information from two data files and produc
1) Write a program that will take the information from two data files and produce an output file 2) The script will be called project2.sh and the output files will be called proje…
1) Write a program the contains an array of 1000 elements named rolls. The rolls
1) Write a program the contains an array of 1000 elements named rolls. The rolls array should be populated using a for loop and assigned a random number simulating the roll of a p…
1) Write a program to count the lines in a file. An example file is attached. Th
1) Write a program to count the lines in a file. An example file is attached. The program will take one argument - the name of the file to be opened and read. 2) Average the numbe…
1) Write a program to count the lines in a file. An example file:1.txt is attach
1) Write a program to count the lines in a file. An example file:1.txt is attached. The program will take one argument - the name of the file to be opened and read. 2) Average the…
1) Write a program to print thefollowing : (a) * (b) ***** ** **** * ** *** * *
1)      Write a program to print thefollowing :               (a)         *                                                         (b)          *****                             …
1) Write a program to produce all four triangles and the one pyramid similar to
    1) Write a program to produce all four triangles and the one pyramid similar to the output shownbelow. Your program should ask the user to enter the height of the triangle/pyr…
1) Write a program using the switch statement name GradeReport that reads a grad
1) Write a program using the switch statement name GradeReport that reads a grade from the user and prints the comments accordingly. Instruction: Prompt the user to enter their gr…
1) Write a program using the switch statement name GradeReport that reads a grad
1) Write a program using the switch statement name GradeReport that reads a grade from the user and prints the comments accordingly. Hint Prompt the user to enter their grade user…
1) Write a query that uses the CONCAT function to concatenate the last name with
1) Write a query that uses the CONCAT function to concatenate the last name with the first_name from the Customers table so that a customer name appears in the format example: Fre…
1) Write a query to show the list of number of orders for customers located in e
1) Write a query to show the list of number of orders for customers located in each country. Your query results should show Country name, and number of orders from the customers o…
1) Write a queue class using linked list to implement the queue. Do not us the l
1) Write a queue class using linked list to implement the queue. Do not us the link list from STL. The queue class should be a template class and must implement enqueue and dequeu…
1) Write a scanf statement to read in one number (int), and another statement to
1) Write a scanf statement to read in one number (int), and another statement to print out that number. 2) Write a for loop to read in a series of 5 numbers (int), each iteration …