
Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
expand_more
expand_more
format_list_bulleted
Question
Create a Java
Write statements that will output:
Hello, my name is “put your name here.”, and the sentence “I am grateful for (fill in your response)”.
Output should print on two separate lines, gratitude statement and name should be in quotation marks.
Put a blank line between each statement.
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by stepSolved in 2 steps with 2 images

Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Similar questions
- Write a Java program to calculate a gamer's total XP score with a bonus per level. The program should: 1. Prompt and read the user’s input for the gamer's name, Level 1 XP (L1), Level 2 XP (L2), Level 3 XP (L3), and Engagement score (ES). User Scanner to read input. 2. Each XP score input should be in whole numbers between 10-100 and in increments of 5. The total XP score with bonuses should be calculated as follows: L1+L1*0.20+L2+L2*0.30+L3+L3*0.50+ES+ES*0.60 3. Output the gamer's information and the total calculated XP score (including bonuses). 4. Prompt the user as to whether they want to calculate total XP for another gamer and repeat the input/output processing. 5. Allow the user to exit the program without inputting the gamer's data Documentation o Include header comments that include your name, date, and description of the program. o Include body comments. o Consistent indentations o Consistent white line spaces.arrow_forwardWrite a Java code that gets student exam scores from the user. Each exam score will be an integer in the range 0 to 100. Input will end when the user enters -1 as the input value. After all scores have been read, display the number of students who took the exam, the minimum score, the maximum score, the average score, and the number of As where an A is a score in the range 90-100. Make sure your average a decimal point. Only count A’s, not other grades. Note that you do not need to do any error checking on the input for this problem. This should be done as a standard sentinel-controlled while loop.arrow_forward1. Write a java program: Your program should have 6 lines of output listing five colors. The sample output will likethis:Five colors are:BlueGreenRedPurpleOrangeYour output should have the first line exactly as shown above. The following 5 lines shouldbe your own. 2.Write a java program: Your program should take one command-line argument, a person's name, and create outputusing that name. For example, if you enter the name: Alex, the output should be:Hello Alex, how are you?Use String concatenation to create your output statement. 3.Write a java program: This program should take two command line arguments and create the following output. Forexample, if the command line values were Bob and Alice, the output would be:Hello Bob, my name is Alice.Use String concatenation to create your output statement. 4.Write a java program: Using a single print() method [i.e., System.out.print()], create output of the first 6 lines(including the title) of the following poem. Include quotations and…arrow_forward
- Create a Java program that can be used to calculate the average weekly and monthly grocery bill for a family of four: Prompt the user for the coupon amount as a decimal (example, .10). Ensure the value is set to 10% if the value exceeds 100% or is less than or equal to zero. Prompt the user for 2-4 weeks of grocery bills. Calculate the monthly and weekly average for groceries. Display monthly total and weekly average without the coupon. Display monthly total and weekly average with the coupon.arrow_forwardWrite a Java program that: Ask user to enter the last two digits of the Student ID number and store it in a variable of type integer; Use a while loop to print all the positive odd numbers smaller than the inputted number. After the while loop, make a for loop to print all the positive even numbers smaller than the inputted Note: Your answer should have the code as text, as well as a screenshot of the code with the output. The inputted number should be the last two digits of your Student ID number. ID is : 190058401arrow_forwardWrite a java program called Sales considering the following directions and the sample run. Practice here first the write answer on the answer sheet. Also, make sure to distinguish high and low caps as Java is case - sensitive. - import and declare a Scanner class - declare three floating – point variables named price, discount, and discountPrice - ask the user for the price (print statement) and get the price (Scanner) from the user - calculate the discount if price is less than 100, then the discount is 10% of price, else discount is 14% of price - print the discounted prices for the item Sample Run Enter the price 90.0 The discount price is 81.0 Enter the price 200.0 The discount price is 172.0arrow_forward
- Create a Java program that prompts the user to input a date in the format MM/DD/YYYY. The program should convert the entered date into its verbal representation according to the following guidelines: Print the English name of the month. Print the English representation of the day (e.g., first, second, ..., thirty-first). Display the English representation of the year, which consists of two parts: a century part ranging from 10 to 99, and a year part in the range from 0 to 99. Ensure to include a "zero" suffix when printing single-digit years. For example: The year 2003 should be represented as twenty zero three. The year 1992 should be represented as nineteen ninety-two. While this may seem like an unconventional programming task, it can be beneficial if you intend to use the resulting string with a text-to-voice converter to audibly communicate the result.Now use my code and rewrite the java program so that it includes what is missing in the assignment. import java.util.Scanner;…arrow_forwardAssume the int variable number has been properly declared and initialized (with some value unknown to you). Write a Java code fragment that will do the following: (a) If the number is positive, print "plus" (no quotations marks, just the word plus) (b) If the number is negative, print “minus" (c) If the number is zero, print "zero". 2.arrow_forward
arrow_back_ios
arrow_forward_ios
Recommended textbooks for you
- 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

Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON

C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON

Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning

Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education