Browse W
Alphabetical listing with fast deep pagination.
66619 items • Page 1087 / 1333
Write a program that inputs a string that represents a binary number. The string
Write a program that inputs a string that represents a binary number. The string can contain only 0s and 1s and no other characters, not even spaces. Validate that the entered num…
Write a program that inputs a string that represents a binary number. The string
Write a program that inputs a string that represents a binary number. The string can contain only 0s and 1s and no other characters, not even spaces. Validate that the entered num…
Write a program that inputs a time from the console. The time should be in the f
Write a program that inputs a time from the console. The time should be in the format "HH:MM AM" or "HH:MM PM". Hours may be one or two digits, for example, "1:10 AM or "11:30 PM"…
Write a program that inputs an integer N followed by N number of doubles that sh
Write a program that inputs an integer N followed by N number of doubles that should be stored in an array. Then call the function sum to calculate the sum of odd index and even …
Write a program that inputs an integer greater than 0 and calculates the sum of
Write a program that inputs an integer greater than 0 and calculates the sum of the squares from 1 to that integer. For example, if the integer equals 4, the sum of the squares is…
Write a program that inputs an odd number from 1 to 35 and prints a diamond of a
Write a program that inputs an odd number from 1 to 35 and prints a diamond of asterisks.You may only use output statements that print a single asterisk (*) or a single blank. q6x…
Write a program that inputs data on the command line stock.x runs normal program
Write a program that inputs data on the command line stock.x runs normal program stock.x 13 is on command line stock.x 13 26 13 is on command line but with spaces stock.x 13, 2…
Write a program that inputs data on the command line stock.x runs normal program
Write a program that inputs data on the command line stock.x runs normal program stock.x 13 is on command line stock.x 13 26 13 is on command line but with spaces stock.x 13, 26, …
Write a program that inputs ten double-precision numbers into an array named raw
Write a program that inputs ten double-precision numbers into an array named raw. After ten user-input numbers are entered into the array, your program should cycle through raw te…
Write a program that inputs the amount of the purchase and calculates the shippi
Write a program that inputs the amount of the purchase and calculates the shipping charge based on the following table: $0.00 - $250.00: $5.00 $250.01 - $500.00: $8.00 $500.01 - $…
Write a program that inputs three different integers from the keyboard, then pri
Write a program that inputs three different integers from the keyboard, then prints the sum, the average, the product, the smallest and the largest of these numbers. Use only the …
Write a program that inputs two integers from the user (we will refer to this as
Write a program that inputs two integers from the user (we will refer to this as x and y in the rest of the handout) and outputs all numbers between zero and the x counting by y. …
Write a program that inputs two numbers anddetermines which of the two numbers i
Write a program that inputs two numbers anddetermines which of the two numbers is the smallest. If the numbers are equal, display a message that they are equal. Sample Output from…
Write a program that inputs two string variables, first and last, each of which
Write a program that inputs two string variables, first and last, each of which the user should enter with his or her name. First, convert both strings to all lowercase. Yourprogr…
Write a program that inputs two string variables, first and last, each of which
Write a program that inputs two string variables, first and last, each of which the user should enter with his or her name. First, convert both strings to all lowercase. Your prog…
Write a program that inputs two string variables, first and last, each of which
Write a program that inputs two string variables, first and last, each of which the user should enter with his or her name. First, convert both strings to all lowercase Your progr…
Write a program that instead of you guessing the computers number, the computer
Write a program that instead of you guessing the computers number, the computer tries to guess your number from 1 to 100. you think of a number. computer takes a guess. you type "…
Write a program that interacts with the user like this: (1) Carbon monoxide (2)
Write a program that interacts with the user like this: (1) Carbon monoxide (2) Hydrocarbons (3) Nitrogen oxides (4) Nonmethane hydrocarbons Enter the pollutant number>> 2 E…
Write a program that interacts with the user like this: (1) Carbon monoxide (2)
Write a program that interacts with the user like this: (1) Carbon monoxide (2) Hydrocarbons (3) Nitrogen oxides (4) Nonmethane hydrocarbons Enter the pollutant number>> 2 E…
Write a program that is able to calculate the answer to an integer division prob
Write a program that is able to calculate the answer to an integer division problem without using the division, integer division, mod, or multiplication operators. The program sho…
Write a program that is able to compute circumferences of circles, given the rad
Write a program that is able to compute circumferences of circles, given the radius of the circle. Use three macros: one that defines Pi another one that computes the circumferenc…
Write a program that is able to store an employee’s information. An employee can
Write a program that is able to store an employee’s information. An employee can have a first name, last name, address and a boss. It is possible for an employee to not have a bos…
Write a program that is capable of replaying the moves in a chess match. The use
Write a program that is capable of replaying the moves in a chess match. The user will first enter the number of moves, then they will type in moves of the form: [a][#]-[a][#] whe…
Write a program that is composed of one source file named Lab5b.cpp and two othe
Write a program that is composed of one source file named Lab5b.cpp and two other textbook source files. The program uses a linked list to manipulate a sequence of numbers. The pr…
Write a program that is designed as a calculator for elementary school children.
Write a program that is designed as a calculator for elementary school children. It will calculate addition, subtraction, multiplication, and division. The program will ask for …
Write a program that is similar to cond1.c except that: thread1: increments coun
Write a program that is similar to cond1.c except that: thread1: increments count only when count is currently an even number thread2: increments count only when count is currentl…
Write a program that keeps a count of the lines in the input and prints out the
Write a program that keeps a count of the lines in the input and prints out the line number, the number of characters in the line followed by the line itself. Input -- The input w…
Write a program that keeps a map in which the keys of the map are objects of cla
Write a program that keeps a map in which the keys of the map are objects of class Employee. An employee should have a first name, a last name, and a unique integer ID. For the pe…
Write a program that keeps an appointment calendar in a database. An appointment
Write a program that keeps an appointment calendar in a database. An appointment includes a description, a date, the starting time, and the ending time; for example, Dentist 2007/…
Write a program that keeps an employee database in a random-access file. Impleme
Write a program that keeps an employee database in a random-access file. Implement functions for adding and removing employees. You need not keep employees in sorted order. To rem…
Write a program that keeps asking the user to enter students\' grades until he e
Write a program that keeps asking the user to enter students' grades until he enters -1, then your program should display how many entered grades and the average of these grades. …
Write a program that keeps prompting the user to input weight in pounds and heig
Write a program that keeps prompting the user to input weight in pounds and height in inches, and then calculates and prints the body mass index (BMI) and health message based on …
Write a program that keeps track of a list of contacts, consisting of names and
Write a program that keeps track of a list of contacts, consisting of names and telephone numbers. The program should use a structure (call it ContactInfo) for each contact, stori…
Write a program that keeps track of the players in a 3x3 basketball game. Your p
Write a program that keeps track of the players in a 3x3 basketball game. Your program should have the following classes: A Player class. A Player has instance variables for name,…
Write a program that keeps track of the players in a 3x3 basketball game. Your p
Write a program that keeps track of the players in a 3x3 basketball game. Your program should have the following classes: A Player class. A Player has instance variables for name,…
Write a program that keeps track of the players in a 3x3 basketball game. Your p
Write a program that keeps track of the players in a 3x3 basketball game. Your program should have the following classes: A Player class. A Player has instance variables for name …
Write a program that keeps track of the sales for different types of salsa. The
Write a program that keeps track of the sales for different types of salsa. The program should use two arrays, one being an array of strings to hold the types of the salsa, and th…
Write a program that keeps track the Lemonade sales for five weekdays: Monday, T
Write a program that keeps track the Lemonade sales for five weekdays: Monday, Tuesday, Wednesday, Thursday, and Friday. It should use two parallel five-element arrays: an array o…
Write a program that keeps track the Lemonade sales for five weekdays: Monday, T
Write a program that keeps track the Lemonade sales for five weekdays: Monday, Tuesday, Wednesday, Thursday, and Friday. It should use two parallel five-element arrays: an array o…
Write a program that keeps track the Salsa sales at a local food store. The prog
Write a program that keeps track the Salsa sales at a local food store. The program should output each salsa name, the number of jars sold, and the percentage of the total jars so…
Write a program that lets a user enter the rainfall for each of the 12 months in
Write a program that lets a user enter the rainfall for each of the 12 months into an array of doubles, and then print some info about the rainfall over the year. The program shou…
Write a program that lets the user click the Refresh button to display four card
Write a program that lets the user click the Refresh button to display four cards from a deck of 52 cards, (see the hint in Programming below on how to obtain four random cards.) …
Write a program that lets the user continuously guess whether the flip of a coin
Write a program that lets the user continuously guess whether the flip of a coin results in heads or tails until the user wins. The program randomly generates an integer 0 or 1, w…
Write a program that lets the user enter a charge accoutnnumber. THe program sho
Write a program that lets the user enter a charge accoutnnumber. THe program should determing if the number is valid bychecking for it in the following list: 5658845, 4520125, …
Write a program that lets the user enter a range of prehistoric dates (in millio
Write a program that lets the user enter a range of prehistoric dates (in millions of years), and then outputs the periods that are included in that range. Each time this output i…
Write a program that lets the user enter a string into a character array. The pr
Write a program that lets the user enter a string into a character array. The program should then convert all the lowercase letters to uppercase. (If a character is already upperc…
Write a program that lets the user enter four quarterly sales figures for 3 divi
Write a program that lets the user enter four quarterly sales figures for 3 division of a company. (you may want to use a file or an intialize list instead of inputting from the k…
Write a program that lets the user enter four quarterly sales figures for six di
Write a program that lets the user enter four quarterly sales figures for six divisions of a company. The figures should be stored in a two-dimensional array. Once the figures are…
Write a program that lets the user enter four quarterly sales figures for six di
Write a program that lets the user enter four quarterly sales figures for six divisions of a company. The figures should be stored in a two-dimensional array. Once the figures are…
Write a program that lets the user enter four quarterly sales figures for six di
Write a program that lets the user enter four quarterly sales figures for six divisions of a company. The figures should be stored in a two-dimensional array. Once the figures are…