Absolute Java (6th Edition)
Absolute Java (6th Edition)
6th Edition
ISBN: 9780134041674
Author: Walter Savitch, Kenrick Mock
Publisher: PEARSON
bartleby

Videos

Textbook Question
Book Icon
Chapter 2, Problem 11PP

Write a program that calculates the total grade for three classroom exercises as a percentage. Use the DecimalFormat class to output the value as a percent. The scores should be summarized in a table. Input the assignment information in this order: name of assignment (may include spaces), points earned (integer), and total points possible (integer). The percentage is the sum of the total points earned divided by the total points possible. Sample input and output are shown as follows:

Name of exercise 1: Group Project Score received for exercise 1: 10 Total points possible for exercise 1: 10 Name of exercise 2: Homework Score received for exercise 2: 7 Total points possible for exercise 2; 12 Name of exercise 3: Presentation Score received for exercise 3: 5

Total points possible for exercise 3: 8 Exercise Score Total Possible Group Project 10 10 Homework 7 12 Presentation 5 8 Total 22 30

Your total is 22 out of 30, or  73.33 % .

Blurred answer
Students have asked these similar questions
The Café Noir Coffee Shop wants some market research on its customers. When a customer places an order, a clerk asks for the customer’s zip code and age. The clerk enters that data as well as the number of items the customer orders. The program operates continuously until the clerk enters a 0 for zip code at the end of the day. When the clerk enters an invalid zip code (more than 5 digits) or an invalid age (defined as less than 10 or more than 110), the program reprompts the clerk continuously. When the clerk enters fewer than 1 or more than 12 items, the program reprompts the clerk two more times. If the clerk enters a high value on the third attempt, the program accepts the high value, but if the clerk enters a negative value onthe third attempt, an error message is displayed and the order is not counted. At the end of the program, display a count of the number of items ordered by customers from the same zip code as the coffee shop (54984), and a count from other zip codes. Also…
Write a program to take input name, ID and marks of 4 Courses (Physics111,Math120, English102 & CSE162) obtained by you and your group members.Display the Name, ID, grade in each of the courses and also the result of totalmarks and percentage obtained with his/her rank in the class.
Write a program to calculate the total final marks for a subject. There are four assessment types for the subject. Below are the percentages of the marks that will be taken into account for the Total Finall Marks (refer Table 1). Table 1 : Total Finall Marks Percentages Assessment Type Original Marks Percentage taken from original marks Finalll Eexam 100 50% Quiz 50 20% Lab 50 20% Assignment 20 10%   Total Final Marks 100%

Chapter 2 Solutions

Absolute Java (6th Edition)

Knowledge Booster
Background pattern image
Computer Science
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
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Text book image
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Text book image
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
Text book image
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Text book image
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Text book image
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education
Java random numbers; Author: Bro code;https://www.youtube.com/watch?v=VMZLPl16P5c;License: Standard YouTube License, CC-BY