Start Discovering Solved Questions and Your Course Assignments
TextBooks Included
Active Tutors
Asked Questions
Answered Questions
Write a program that will allow two users to play tic-tac-toe. The program should ask for moves alternately from player X and player O. The program displays the game positions as follows:
Gamestop wants you to write a program that will automatically give shoppers a 15% discount on their total bill if they buy more than 3 games and a 25% discount if they buy more than 5 games.
Write a program that lets the user enter 2 numeric values, and an arithmetic operator: +, -, * and /. Write a switch statement that displays the result of the calculation using the operator and two nu
Write a program to compute the power loss in a transmission line with a resistance of 0.05 ohms/mile. Compute the power loss if 500 kW of power is transmitted from a power generating station to cities
Plot the function y = 10(1-e^(-x/4)) over the interval 0<=x<=xmax, using a while loop to determine the value of xmax such that y(xmax)=9.8. Properly label the plot. The variable y represents for
What is the output after the following is executed?
Design an application program that declares an array of 10 pizzas. Prompt the user for data for each of the pizzas, and then display the values.
Secondhand Rose Resale Shop is having a seven-day sale during which the price of any unsold item drops 10 percent each day.For example,an item that costs $10.00 on the first day costs 10 percent less,
Wwrite a java program to take input of 5 marks and print the average and grade of a student where average(>90 grade1 >70 grade2 >60 grade3 >50 grade4 )
Write a programme using function gross pay(); that calculates the gross pay of a person where allowance and house rent are 30% and 20% respectively of the basic pay.
Write a program to input an infix expression, convert to postfix, and then evaluate. Converting to postfix isn't the problem, but evaluating the expression is giving me odd answers. Simple expression
Watson Elementary School contains 30 classrooms numbered 1 through 30. Each classroom can contain any number of students up to 35. Each student takes an achievement test at the end of the school year
Write a program to decide about the product and its price by taking the product code from the user Code Name of Product and its price
Assume that an ArrayList of Integer s named a that contains exactly five elements has been declared and initialized. In addition, an int variable j has also been declared and initialized to a value so
Read in 5 numbers. As each number is read, display it only if it is not a duplicate of a number that has already been read (i.e. it's unique). Provide for all cases including 5 unique number
Use the program pieces developed in a) and b) to write a function that inputs an integer between 1 and 32767 and prints it as a series of digits, with two spaces between each digit.For example, the in
The following is what type of loop?
Write a program that accepts an integer from the user and displays all prime numbers from 1 to that number.
Write a program to accept 2 numbers and tell whether the product of the number is equal to or greater than 1000.
Thus, each salesperson passes in between 0 and 5 sales slips per day. Assume that the information from all the slips for last month is available
A company has a number of employees. The attributes of employee include employeeID (primary key), name, address, and birthdate. The company also has several projects.
Write a program to display the duplicate values in an array.
Write a program that asks the user to enter 2 integers, obtain the number from the user, and then print the smaller number. If the numbers are equals, print "Numbers are equal."
Write an application that displays the following patterns separately. Use for loop to generate the patterns. All asterisks (*) should be displayed