Web development and programming
191828 questions • Page 268 / 3837
1. Write a program that will read in an integer number 2. It will recursively sh
1. Write a program that will read in an integer number 2. It will recursively show the conversion between the decimal number and the Hexadecimal number (base 16). 3. Example progr…
1. Write a program that would ask the user to input marks of N (define as a prep
1. Write a program that would ask the user to input marks of N (define as a preprocessor integer constant) number of quizzes in an array of size N. After getting the input from th…
1. Write a program to accept inputs (10 numbers in a type int or double ) from t
1. Write a program to accept inputs (10 numbers in a type int or double) from the user at the command line, and store in an ArrayList. (40 points) 1) These numbers must be …
1. Write a program to accept inputs (10 numbers in a type int or double ) from t
1. Write a program to accept inputs (10 numbers in a type int or double) from the user at the command line, and store in an ArrayList. (40 points) 1) These numbers must be …
1. Write a program to add all integers n in the range of N1 and N2 that are mult
1. Write a program to add all integers n in the range of N1 and N2 that are multiples of “M”. Save the program as a file named “myadd.cpp” and upload the file “myadd.cpp”. • If N1…
1. Write a program to add all integers n in the range of N1 and N2 that are mult
1. Write a program to add all integers n in the range of N1 and N2 that are multiples of “M”. Save the program as a file named “myadd.cpp” and upload the file “myadd.cpp”. • If N1…
1. Write a program to ask the user to input an ASCII character. Remember 0 throu
1. Write a program to ask the user to input an ASCII character. Remember 0 through 9 are numeric ASCII characters as well. If the user enters any character other than the numeric …
1. Write a program to calculate and display the average of three integers. Your
1. Write a program to calculate and display the average of three integers. Your program will prompt the user with the message "Enter three numbers". Your program must support floa…
1. Write a program to check if the following condition satisfies for a user inpu
1. Write a program to check if the following condition satisfies for a user input number: ABC = A! + B! + C! Example: 145 = 1! + 4! + 5! = 1+24+120 = 145 (5 points) 2. Suppose we …
1. Write a program to display the student information (First name, Study Major,
1. Write a program to display the student information (First name, Study Major, and ID #) that you have just entered. For this problem, you need to create an ArrayList < xyz>…
1. Write a program to enter a positive integer number and count how many places
1. Write a program to enter a positive integer number and count how many places the number has. This does NOT require use of an array. Use integer division and modulus in a loop. …
1. Write a program to find the integer square root of a given number. That is th
1. Write a program to find the integer square root of a given number. That is the largest integer whose square is less than or equal to the given number. 2. Apply the Babylonian A…
1. Write a program to find the largest odd number in a 50-element array of integ
1. Write a program to find the largest odd number in a 50-element array of integers. You must use two functions or procedures, one to input values into the array and another to fi…
1. Write a program to find the sum of the elements of an array called list1. The
1. Write a program to find the sum of the elements of an array called list1. The size of list1 is four bytes. The values of list1 are $FF, $1, $FE, and $02. To check your work, th…
1. Write a program to implement steepest descent using line search. Terminate th
1. Write a program to implement steepest descent using line search. Terminate the line search when the length of the interval is less than 10-6. Apply the program to Rosen brock's…
1. Write a program to maintain a list of number operations. You will declare a s
1. Write a program to maintain a list of number operations. You will declare a struct named Number which has the following member components. a. int firstNum b. int secondNum c. i…
1. Write a program to output the area of a rectangle, circle, and triangle. Ask
1. Write a program to output the area of a rectangle, circle, and triangle. Ask the user which is desired, ask the parameters needed to compute the results. Allow the user to cont…
1. Write a program to remove an element from an array at the given position k an
1. Write a program to remove an element from an array at the given position k and push the rest of the array elements one position up front. Then append the removed element a…
1. Write a program to repeat the following tasks continuously. - Turn all four L
1. Write a program to repeat the following tasks continuously. - Turn all four LED lights OFF. - Wait in a loop until one of the switches is pressed. - Use the C-language %u201Csw…
1. Write a program to request the user enter a desired number of values. Create
1. Write a program to request the user enter a desired number of values. Create a loop to load the desired number of user-specified values into a list. Create two lists with the s…
1. Write a program to request the user enter a desired number of values. Create
1. Write a program to request the user enter a desired number of values. Create a loop to load the desired number of user-specified values into a list. Create two lists with the s…
1. Write a program to use a subroutine to find the sum of the array elements. Fo
1. Write a program to use a subroutine to find the sum of the array elements. For simplicity, assume that the sum of the data values is less than $FF. You do not need to use …
1. Write a program triangles.c that reads in the lengths of the three sides of a
1. Write a program triangles.c that reads in the lengths of the three sides of a triangle. First, verify that the lengths do form a triangle: adding any two sides should yield a n…
1. Write a program using a for loop that will produce each of the following sequ
1. Write a program using a for loop that will produce each of the following sequences: a. 72, 70, 68, 66,……..6 b. The sum of the odd numbers between 21 and 51 inclusive 2. Wri…
1. Write a program using if/else if statement that prompts the user for their qu
1. Write a program using if/else if statement that prompts the user for their quarterly water bill for the last four quarters. The program should find and output their average mon…
1. Write a program using switch statement that computes and assess the tuition f
1. Write a program using switch statement that computes and assess the tuition fee of the students in one trimester based on the given mode of payment plans below: Plans (key) – D…
1. Write a program which gives the insurance premium to be paid each year on a l
1. Write a program which gives the insurance premium to be paid each year on a life insurance policy under these rules: a. The rate in dollars per $1000 insured changes with age: …
1. Write a program which populates an array with integer values read from a file
1. Write a program which populates an array with integer values read from a file. The program must take the items in the array and reverse them. You may use one array only to solv…
1. Write a program which reads a text file and counts the numberof words and lin
1. Write a program which reads a text file and counts the numberof words and lines in the file. 2. Your program should be able to get the file name from eitherthe command line (if…
1. Write a program which reads as input a single character followed (on the next
1. Write a program which reads as input a single character followed (on the next line) by one or two real numbers (depending on the character input). (There will be no more than o…
1. Write a program, which prints a table of contents. Use the following data str
1. Write a program, which prints a table of contents. Use the following data structure: public class TocEntry // Specify the needed methods private String chapter private int page…
1. Write a pseudocode algorithm that reads in three values and writes out the re
1. Write a pseudocode algorithm that reads in three values and writes out the result of subtracting the second value from the sum of the first and the third values. 2. Write a pse…
1. Write a public method called triple, which is passed an int as a parameter an
1. Write a public method called triple, which is passed an int as a parameter and returns its triple. Example: 4 --> 12 2. Write a method called averageOfTwo, which is passed t…
1. Write a public static method named q1 that takes no parameters and has return
1. Write a public static method named q1 that takes no parameters and has return type HashMap of String to String. In this method, you may assume there is a file named "monthly.cs…
1. Write a python function called calcMonthlyPmt that accepts THREE parameters (
1. Write a python function called calcMonthlyPmt that accepts THREE parameters (interest rate, loan amount and number of years) and should return the monthly payment. Use this for…
1. Write a python program that computes the fuel efficiency of a multi-leg journ
1. Write a python program that computes the fuel efficiency of a multi-leg journey. The program will first prompt for the starting odometer reading and then get information about …
1. Write a python program to play “Three Button Monte”. Your program should draw
1. Write a python program to play “Three Button Monte”. Your program should draw three buttons labeled “Door 1”, “Door 2”, and “Door 3” in a window and randomly select one of the …
1. Write a query to count the number of customers with a balance of more than $5
1. Write a query to count the number of customers with a balance of more than $500. 2. Create a query to produce the total purchase per invoice sorted by invoice number. The invoi…
1. Write a query to display all customers with a grade above 100. 2. Write a que
1. Write a query to display all customers with a grade above 100. 2. Write a query statement to display all customers in New York who have a grade value above 100. 3. Write a SQL …
1. Write a query to display all the columns of employees table. 2. Write a query
1. Write a query to display all the columns of employees table. 2. Write a query to display first name, last name and their salary of employees where column headings will be speci…
1. Write a recursive function for OurList of integers that returns the largest v
1. Write a recursive function for OurList of integers that returns the largest value of them. 2. Write a recursive function for OurList of characters that reverses their order. 3.…
1. Write a recursive function printTriangle () that takes two integers as parame
1. Write a recursive function printTriangle() that takes two integers as parameters and prints a triangle of asterisks based on those parameters. The first integer represents the …
1. Write a recursive function that accepts a string and returns the number of vo
1. Write a recursive function that accepts a string and returns the number of vowels in provided string. Output should look like: Type a sentence My name is Alihan There are 6 vow…
1. Write a recursive function that computes the sum of all numbers from 1 to n,
1. Write a recursive function that computes the sum of all numbers from 1 to n, where n is given as parameter. Here is the method header: public static int sum (int n){...} 2. Wri…
1. Write a recursive function that computes the sum of all numbers from 1 to n,
1. Write a recursive function that computes the sum of all numbers from 1 to n, where n is given as parameter. Here is the method header: public static int sum (int n){...} 2. Wri…
1. Write a recursive function that computes the sum of all numbers from 1 to n,
1. Write a recursive function that computes the sum of all numbers from 1 to n, where n is given as parameter. Here is the method header: public static int sum (int n){...} 2. Wri…
1. Write a recursive function that takes as a parameter a nonnegative integer an
1. Write a recursive function that takes as a parameter a nonnegative integer and generates the following pattern of stars. If the nonnegative integer is 4, then the pattern gener…
1. Write a recursive function to calculate double factorial a, n!, where n is in
1. Write a recursive function to calculate double factorial a, n!, where n is input by users. Please check slides for definition of double factorial 2. Assume a set {x: x is an ev…
1. Write a recursive int function that returns the position of a given value in
1. Write a recursive int function that returns the position of a given value in an array. If the value is not in the array, return -1. Call this function from main and output the …
1. Write a recursive method that accepts an integer n and prints the first n pos
1. Write a recursive method that accepts an integer n and prints the first n positive integers to the Java console. For example: n, (n – 1), (n – 2), ..., 3, 2, 1 For example, if …
Subject
Web development and programming
Use Browse or pick another subject.