Browse W
Alphabetical listing with fast deep pagination.
66619 items • Page 1102 / 1333
Write a program that reads in the lengths of the three sides of a triangle. Firs
Write a program 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 number that exce…
Write a program that reads in the name of a file and prints out the number of ch
Write a program that reads in the name of a file and prints out the number of characters, words, and lines in the document. Include the end-of-line character in the number of char…
Write a program that reads in the name of a file and prints out the number of ch
Write a program that reads in the name of a file and prints out the number of characters, words, and lines in the document. Include the end-of-line character in the number of char…
Write a program that reads in the name, hourly rate and number ofhours worked fo
Write a program that reads in the name, hourly rate and number ofhours worked for 5 people. Print the name of each person, thenumber of hours worked, their weekly pay based on the…
Write a program that reads in the names and scores of students and then computes
Write a program that reads in the names and scores of students and then computes and displays the names of the students with the highest and lowest scores. A simple method of carr…
Write a program that reads in the names and scores of students and then computes
Write a program that reads in the names and scores of students and then computes and displays the names of the students with the highest and lowest scores. A simple method of carr…
Write a program that reads in the size of a square and thenprints a hollow squar
Write a program that reads in the size of a square and thenprints a hollow square of that size out of asterisks and blanks. Your program should work forsquares of all sizes betwee…
Write a program that reads in the size of the side of a squarethen prints a holl
Write a program that reads in the size of the side of a squarethen prints a hollow square of the size out of the asterisks andblanks. Your program should works for squqresof all s…
Write a program that reads in three floating-point numbers and prints the three
Write a program that reads in three floating-point numbers and prints the three inputs in sorted order. For example: Please enter three numbers: 4 9 2.5 The inputs in sorted order…
Write a program that reads in three integers and determines and prints the small
Write a program that reads in three integers and determines and prints the smallest number numerically in the group. The values are NOT necessarily entered in numeric order. The p…
Write a program that reads in three integers, then uses the function sort3( int&
Write a program that reads in three integers, then uses the function sort3( int& a, int& b, int& c) that swaps its three arguments to arrange them in ascending sorted …
Write a program that reads in three integers, then uses the function sort3(int&
Write a program that reads in three integers, then uses the function sort3(int& a, int& b, int& c) that swaps its three arguments to arrange them in ascending sorted o…
Write a program that reads in three strings and sorts them lexicographically. Sh
Write a program that reads in three strings and sorts them lexicographically. Show at least three testing results of your program. example: Enter three strings: Charlie Able Baker…
Write a program that reads in two floating-point numbers and tests whether they
Write a program that reads in two floating-point numbers and tests whether they are the same up to two decimal places. here are two sample runs. Enter two floating-point numbers: …
Write a program that reads in two hexadecimal numbers from a file, hex.dat, and
Write a program that reads in two hexadecimal numbers from a file, hex.dat, and prints out the sum of the two numbers in hexadecimal. (As noted in class, first do this without usi…
Write a program that reads in two hexadecimal numbers from a file, hex.dat, and
Write a program that reads in two hexadecimal numbers from a file, hex.dat, and prints out the sum of the two numbers in hexadecimal. (As noted in class, first do this without usi…
Write a program that reads in two integer vectors, computes the dot product of t
Write a program that reads in two integer vectors, computes the dot product of the vectors, and displays the results. The dot product of two vectors is calculated by summing the p…
Write a program that reads in two set of positive Integers. One set goes into an
Write a program that reads in two set of positive Integers. One set goes into an ArrayList int1 and second set goes into another ArrayList int2. Create a third arrayList of Intege…
Write a program that reads in twodates (using three integers for each) and displ
Write a program that reads in twodates (using three integers for each) and displays a messageshowing the date that comes first. Use the followingalgorithm: if the first date's yea…
Write a program that reads information about movies from a file named movies.txt
Write a program that reads information about movies from a file named movies.txt. Each line of this file contains the name of a movie, the year the movie was released, and the rev…
Write a program that reads input for occupied hotel rooms and using the Java AP,
Write a program that reads input for occupied hotel rooms and using the Java AP, sorts the rooms, then search for a particular room to see if it is occupied or not. The program wi…
Write a program that reads integers , one per line, and displays their sum. Also
Write a program that reads integers , one per line, and displays their sum. Also, display all the numbers read, each with an annotation giving its percentage contribution to the s…
Write a program that reads integers , one per line, and displays their sum. Also
Write a program that reads integers , one per line, and displays their sum. Also, display all the numbers read, each with an annotation giving its percentage contribution to the s…
Write a program that reads integers , one per line, and displays their sum. Also
Write a program that reads integers , one per line, and displays their sum. Also, display all the numbers read, each with an annotation giving its percentage contribution to the s…
Write a program that reads integers from the keyboard and place them in an array
Write a program that reads integers from the keyboard and place them in an array- The program then will sort the array into ascending and descending order and print the sorted lis…
Write a program that reads integers from the keyboard and place them in an array
Write a program that reads integers from the keyboard and place them in an array. The program then will sort the array into ascending and descending order and print the sorted lis…
Write a program that reads integers, find the largest of them, and counts its oc
Write a program that reads integers, find the largest of them, and counts its occurrences. Assume that the input ends with number 0. Suppose that you entered 3 5 2 5 5 5 0; the pr…
Write a program that reads integers, finds the largest of them, and counts its o
Write a program that reads integers, finds the largest of them, and counts its occurrences. Assume that the input ends with number 0. Suppose that you entered 3 5 2 5 5 0; the pro…
Write a program that reads integers, finds the largest of them, and counts its o
Write a program that reads integers, finds the largest of them, and counts its occurrences. Assume that the input ends with number 0. Suppose that you entered 3 5 2 5 5 5 0; the p…
Write a program that reads integers, finds the smallest of them and counts its o
Write a program that reads integers, finds the smallest of them and counts its occurences. Assume that the input ends with 0. (Hint: Maintain two variables, min and count. Min sto…
Write a program that reads integers, finds the smallest of them and counts its o
Write a program that reads integers, finds the smallest of them and counts its occurences. Assume that the input ends with 0. (Hint: Maintain two variables, min and count. Min sto…
Write a program that reads its input into an array and then uses selection sort
Write a program that reads its input into an array and then uses selection sort to sort the array. In selection sort, we first find the smallest element in the array and exchange …
Write a program that reads its input into an array and then uses selection sort
Write a program that reads its input into an array and then uses selection sort to sort the array. In selection sort, we first find the smallest element in the array and exchange …
Write a program that reads lines of input from the user and converts each line i
Write a program that reads lines of input from the user and converts each line into "Pig Latin." Pig Latin is English with the initial consonant sound moved to the end of each wor…
Write a program that reads multiple lines of text from the user, until the user
Write a program that reads multiple lines of text from the user, until the user enters the single word "quit". The program should keep track of the total number of appearances of …
Write a program that reads names (from an input file) in the following format (y
Write a program that reads names (from an input file) in the following format (you can assume names are no more than 30 characters if you are using C-string): First_name Middle_na…
Write a program that reads one or more sets of numbers from the user. Each set o
Write a program that reads one or more sets of numbers from the user. Each set of numbers consists of an integer N followed by N integer values (N is guaranteed [by you] to be >…
Write a program that reads one or more sets of numbers from the user. Each set o
Write a program that reads one or more sets of numbers from the user. Each set of numbers consists of an integer N followed by N integer values (N is guaranteed [by you] to be >…
Write a program that reads product Information into an Item structure and calcul
Write a program that reads product Information into an Item structure and calculates inventory Information (See Sample Output below). Each Item should have a name, cost, and a qua…
Write a program that reads radius of a circle where its center is located on the
Write a program that reads radius of a circle where its center is located on the origin. Then it prompts the user to enter x and y coordinates of several points and displays the d…
Write a program that reads radius of a circle where its center is located on the
Write a program that reads radius of a circle where its center is located on the origin. Then it prompts the user to enter x and y coordinates of several points and displays the d…
Write a program that reads records containing an employee number and an hourly r
Write a program that reads records containing an employee number and an hourly rate for several employees, and stores these in a heap, using employee number as a key. The program …
Write a program that reads several lines from a data file and prints each word o
Write a program that reads several lines from a data file and prints each word of the file on a separate line of an output file followed by the number of letters in that word. Als…
Write a program that reads several lines from a data file and prints each word o
Write a program that reads several lines from a data file and prints each word of the file on a separate line of an output file followed by the number of letters in that word. Als…
Write a program that reads strings from the user and writes them to an output fi
Write a program that reads strings from the user and writes them to an output file called userStrings.txt. Stop processing when the user enters the string "DONE". Do not write the…
Write a program that reads student information and computes the average of cours
Write a program that reads student information and computes the average of courses for each student and the average grade of each course. List.txt is an input file that has studen…
Write a program that reads student information from a file. The information incl
Write a program that reads student information from a file. The information includes the students’ name (first and last name) followed by their test scores. The student data wil…
Write a program that reads student information from a file. The information incl
Write a program that reads student information from a file. The information includes the students’ name (first and last name) followed by their test scores. The student data wil…
Write a program that reads student information from a file. The information incl
Write a program that reads student information from a file. The information includes the students’ name (first and last name) followed by their test scores. The student data wil…
Write a program that reads student names from a file followed by their test scor
Write a program that reads student names from a file followed by their test scores. The program should then output each student’s name followed by the test score and the relevant …