You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SDEV 2210 Project. Create a project that calculates miles per gallon for a given trip, and accumulates the miles and gallons to calculate an overall MPG for the vehicle. Create a class named MPG that includes private instance variables for miles, gallons, and mpg, which are doubles. Add class variables for totalMiles, totalGallons, and totalMPG,…
Using app from 2-2, this updates the fields to calculate tip and total based on user entry. It also takes into consideration rotation of smartphone and changes the launch icon. Taken from Murach's Android Programming, 2nd Edition by Joel Murach. Page 91, Exercise 3-1.
Create an application named Multiplication whose Main() method asks the user to input an integer and then calls a method named DisplayMultiplicationTable(), which displays the results of multiplying the integer by each of the numbers 2 through 10. Taken from Microsoft Visual C# 2015: An Introduction to Object-Oriented Programming 6th Edition by …
Create a program named TestFileAndDirectory that allows a user to continually enter directory names until the user types end. If the directory name exists, display a list of the files in it; otherwise, display a message indicating the directory does not exist. If the directory exists and files are listed, prompt the user to enter one of the file…
The Saffir-Simpson Hurricane Scale classifies hurricanes into five categories numbered 1 through 5. Write an application named Hurricane that outputs a hurricane’s category based on the user’s input of the wind speed. Category 5 hurricanes have sustained winds of at least 157 miles per hour. The minimum sustained wind speeds for categories 4 thr…
SDEV 2210 Project. This project simulates the inventory for a fleet of cars. The fleet is an array of Car objects. A Car has a name and an ArrayList of Miles Per Gallon (MPG) objects. An MPG object has variables for miles, gallons, and miles per gallon, which is calculated in the constructor. The driver class will instantiate 3 Car objects and s…
In a “You Do It” section of this chapter, you created a tipping table for patrons to use when analyzing their restaurant bills. Now, create a modified program named TippingTable3 in which each of the following values is obtained from user input: - The lowest tipping percentage - The highest tipping percentage - The lowest possible restaurant bil…
Create an application named TestHockeyPlayer that instantiates and displays a HockeyPlayer object. The HockeyPlayer class contains fields for a player’s name (a string), jersey number (an integer), and goals scored (an integer). Taken from Microsoft Visual C# 2015: An Introduction to Object-Oriented Programming 6th Edition by Joyce Farrell. Page…
The Chat-A-While phone company provides service to six area codes and charges the per-minute rates for phone calls shown in Figure 6-25. Write a program named ChatAWhile that stores the area codes and rates in parallel arrays and allows a user to enter an area code and the length of time for a call in minutes, and then display the total cost of …
Write a program named SubscriptExceptionTest in which you declare an array of 20 doubles and store values in the array. Write a try block in which you place a loop that prompts the user for a subscript value and displays the value stored in the corresponding array position. Create a catch block that catches any IndexOutOfRangeException and displ…
Create a program for The Cactus Cantina named FoodOrder that accepts a user’s choice from the options in the accompanying table. Allow the user to enter either an integer item number or a string description. Pass the user’s entry to one of two overloaded GetDetails() methods, and then display a returned string with all the order details. The met…
Modified the Tip Calculator app that’s presented in chapter 6, so it uses the OnKeyListener interface to handle Key events instead of using the OnEditorActionListener interface to handle Key events. Taken from Murach's Android Programming, 2nd Edition by Joel Murach. Page 195, Exercise 6-2
Create a project named FiveColors2. Its Form contains at least five RadioButton objects, each labeled with a color. When the user clicks a RadioButton, change the BackColor of the Form appropriately. Taken from Microsoft Visual C# 2015: An Introduction to Object-Oriented Programming 6th Edition by Joyce Farrell. Page 603, Exercise 3.
Add the seven TextView widgets and one EditText widget to the layout. Set the id and text properties of each widget. The app should allow you to enter a subtotal, but that shouldn’t cause the discount percent, discount amount, or total values to change. Taken from Murach's Android Programming, 2nd Edition by Joel Murach. Page 53, Exercise 2-2.