
Concept explainers
JAVA
Create a program using JAVA that asks the user to enter the amount that he or she has budgeted for a month. A loop should then prompt the user to enter each of his or her expenses for the month and keep a running total. When the loop finishes, the program should display the first and last name, each entry, and the total amount that the user is over or under budget.
EXAMPLE:
Paul Rudd
Monthly Budget
Starting Balance: $1,000.00
Restaurant: - $300.00
Remaining balance: $800.00
Electric: -$100.00
Remaining balance: $600.00
Final Balance: $600.00

Trending nowThis is a popular solution!
Step by stepSolved in 2 steps with 2 images

This is great but lets say I wanted to print the final balance how would I do that?
This is great but lets say I wanted to print the final balance how would I do that?
- Search Chapter 3 Project Project Name: Chpt3_Project Class Name: Chpt3_Project Write a Java program that generates a random number between 50 and 150 that represents the temperature in Celsius of a pot of boiling water on a stove, and determine if the water is hot enough cook the following vegetable: Beans: cook at 100 degrees Celsius Inputs: The program must prompt the user for the temperature that beans cook at. Enter the temperature in Celsius that beans cook at: Output: The program should tell the user if the water is hot enough to cook the beans. The water temperature is Celsius and is enough to cook beans. Example of a program run: Run the program three times and take a screen snipit after each run. Step 1. Create an algorithm (either flowchart or pseudocode) that you will use to write the program. Place the algorithm in a Word document. Step 2. Code the program in Eclipse and test the program to verify it works correctly. Be sure to run the program three times. Step 3. Use the…arrow_forwardPlease Help Java Programming HospitalPlaylist also wants to rebuild their sales system. You are also tasked to create this program using Java programming language with following concepts: The following are the specifications for the program: First, the program will display main menu consists of: Add Song Rent Song Exit If the user chooses menu 1 (“Add Song”), the program will prompt the user to input: Song Name. The input must be between 5 and 10 characters. Song Genre. The input must be either “Pop”, “Classic” or “Jazz” (case sensitive). Song Rating. The input must be between 1 and 5 Song Type. The input must be either “Band” or “Solo” (case sensitive) After that, the program will generate the Server ID in the following format: If Song Type is “Band” then these is the following format : BDXX (X= random, number from 0 -- 9) If Song Type is “Solo” then these is the following format : SLXX (X= random, number from 0 -- 9) Then the program will insert the song data, show a success…arrow_forwardC#arrow_forward
- This is for Programming chapter 4 exercise 9arrow_forwardProgram Description: PasswordGenerator.java You have to implement a program that creates three buttons to display the digits of a password a button to generate a password a button to reset the password Additional Requirements: The top three digit buttons are not interactive as they are only used to display numbers from 0 to 9. The text size of the buttons should be 30 pixels and font should be Arial. There should be 5 pixels distance between the buttons.arrow_forwardA Java for loop has the following general form: for(start; test; increment) { statements } in the parentheses after the keyword "for", _____ provides the starting point for the loop, _____tells what to adjust before the next loop iteration, and _____ is a boolean expression that when true, lets the loop to continue and when false, causes the loop to terminate.arrow_forward
- PEN AND PAPER FLOWCHART. Hand write the correct pseudocode using pen and paper. DEBUG03-03 // This pseudocode is intended to display// employee net pay values. All employees have a standard// $45 deduction from their checks.// If an employee does not earn enough to cover the deduction,// an error message is displayed.// This example is modularized.start Declarations string name string EOFNAME = ZZZZ while name not equal to EOFNAME housekeeping() endwhile while name not equal to EOFNAME mainLoop() endwhile while name not equal to EOFNAME finish() endwhilestop housekeeping() output "Enter first name or ", EOFNAME, " to quit "return mainLoop() Declarations num hours num rate num DEDUCTION = 45 num net output "Enter hours worked for ", name input hours output "Enter hourly rate for ", name input rate gross = hours * rate net = gross - DEDUCTION if net > 0 then output "Net pay for ", name, " is ", net…arrow_forwardC#arrow_forwardPayment = Principal [rate ((1 + rate)months)] [(rate + 1)months - 1] For the formula to compute monthly payment, see Listing 2.9, ComputeLoan.java. (Financial application: loan amortization schedule) The monthly payment for a given loan pays the principal and the interest. The monthly interest is computed by multiplying the monthly interest rate and the balance (the remaining princi- pal). The principal paid for the month is therefore the monthly payment minus the monthly interest. Write a program that lets the user enter the loan amountarrow_forward
- JAVA PROGRAM Chapter 5. PC #2. Retail Price Calculator (page 312) Write a program that asks the user to enter an item’s wholesale cost and its markup percentage. It should then display the item’s retail price. For example: • If an item’s wholesale cost is 5.00 and its markup percentage is 100 percent, then the item’s retail price is 10.00. • If an item’s wholesale cost is 5.00 and its markup percentage is 50 percent, then the item’s retail price is 7.50. The program should have a method named calculateRetail that receives the wholesale cost and the markup percentage as arguments, and returns the retail price of the item. Class name: RetailPriceCalculator PLEASE MODIFY THIS JAVA PROGRAM SO WHEN I UPLOAD IT TO HYPERGRADE IT PASSES ALL TEST CASSES PLEASE. RIGHT NOW IT SAYS 0 OUT 5 PASSED. THE PROGRAM IS NOT WORKING IN HYPERGRADE FIX IT SO IT WILL WORK IN HYPERGRADE. THANK YOU. import java.util.Scanner;public class Main { public static double calculateRetail(double…arrow_forwardThis pseudocode segment is intended to compute and display the average grade of three tests for any number of students. The program executes until the user enters a negative value for the first test score. Debug the pseudocode by rewriting it to achieve its intended purpose. start Declarations num test1 num test2 num test3 num average housekeeping() while test1 >= 0 mainLoop() endwhile endOfJob() stop housekeeping() output "Enter score for test 1 or a negative number to quit" return mainLoop() output "Enter score for test 2" input test2 average = (test1 + test2 + test3) / 3 output "Average is ", average output "Enter score for test 1 or a negative number to quit" input tesst1 return endOfJob() output "End of program" returnarrow_forward**using C# and visual studio design a program to satisfy the below problem** Create an application that generates two random integers, each in the range of 100 through 500. The numbers should be displayed as addition problems on the application’s form, such as The form should have a text box for the user to enter the problem’s answer. When a button is clicked, the application should do the following: Check the user’s input and display a message indicating whether it is the correct answer. Generate two new random numbers and display them in a new problem on the form.arrow_forward
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education





