As part of the discussion forum for this unit, you will be solving a programming problem from the book. This assignment will have you calculating the chapter and the number of the programming problem that you will solve for the online discussion forum. To calculate the chapter from which you solve the programming exercise: • Divide the integer number representing your student ID by 3, consider the remainder and increment it by 3. The result you obtain represents the chapter number, and it should be either 2, 3, 4, or 5. Depending on the chapter number obtained above, consider the following rules in calculating the problem number to solve: • If the chapter number is 3, divide your student ID by 34, consider the remainder and increment it by 1. The result you obtain represents the number of the programming exercise you will solve for online discussions, which should be from chapter 3. • If the chapter number is 4 (you need to go to chapter 6), divide your student ID by 38, consider the remainder and increment it by 1. The result you obtain represents the number of the programming exercise you will solve for online discussions, which should be from chapter 6. • If the chapter number is 5, divide your student ID by 46, consider the remainder and increment it by 1. The result you obtain represents the number of the programming exercise you will solve for online discussions, which should be from chapter 5. After calculating the number of the chapter, and the number of the programming exercise to solve, ask the user to enter the page number where the specific problem is located in the textbook. Display the requirement for the programming exercise using the following format: "Please solve programming exercise number of the exercise) from chapter ... (include here the number of the chapter), from page ... (include here the page number)." (include here the ...

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

Java Prog

Programming Problem 1 – Calculating a
Number
As part of the discussion forum for this unit, you will be
solving a programming problem from the book. This
assignment will have you calculating the chapter and the
number of the programming problem that you will solve for
the online discussion forum.
To calculate the chapter from which you solve the
programming exercise:
• Divide the integer number representing your student ID by
3, consider the remainder and increment it by 3. The
result you obtain represents the chapter number, and it
should be either 2, 3, 4, or 5.
Depending on the chapter number obtained above, consider the
following rules in calculating the problem number to solve:
• If the chapter number is 3, divide your student ID by 34,
consider the remainder and increment it by 1. The result
you obtain represents the number of the programming
exercise you will solve for online discussions, which
should be from chapter 3.
• If the chapter number is 4 (you need to go to chapter 6),
divide your student ID by 38, consider the remainder and
increment it by 1. The result you obtain represents the
number of the programming exercise you will solve for
online discussions, which should be from chapter 6.
• If the chapter number is 5, divide your student ID by 46,
consider the remainder and increment it by 1. The result
you obtain represents the number of the programming
exercise you will solve for online discussions, which
should be from chapter 5.
After calculating the number of the chapter, and the number of
the programming exercise to solve, ask the user to enter the
page number where the specific problem is located in the
textbook. Display the requirement for the programming
exercise using the following format:
"Please solve programming exercise
number of the exercise) from chapter
number of the chapter), from page . (include here the page
пиmber)."
(include here the
(include here the
...
...
Transcribed Image Text:Programming Problem 1 – Calculating a Number As part of the discussion forum for this unit, you will be solving a programming problem from the book. This assignment will have you calculating the chapter and the number of the programming problem that you will solve for the online discussion forum. To calculate the chapter from which you solve the programming exercise: • Divide the integer number representing your student ID by 3, consider the remainder and increment it by 3. The result you obtain represents the chapter number, and it should be either 2, 3, 4, or 5. Depending on the chapter number obtained above, consider the following rules in calculating the problem number to solve: • If the chapter number is 3, divide your student ID by 34, consider the remainder and increment it by 1. The result you obtain represents the number of the programming exercise you will solve for online discussions, which should be from chapter 3. • If the chapter number is 4 (you need to go to chapter 6), divide your student ID by 38, consider the remainder and increment it by 1. The result you obtain represents the number of the programming exercise you will solve for online discussions, which should be from chapter 6. • If the chapter number is 5, divide your student ID by 46, consider the remainder and increment it by 1. The result you obtain represents the number of the programming exercise you will solve for online discussions, which should be from chapter 5. After calculating the number of the chapter, and the number of the programming exercise to solve, ask the user to enter the page number where the specific problem is located in the textbook. Display the requirement for the programming exercise using the following format: "Please solve programming exercise number of the exercise) from chapter number of the chapter), from page . (include here the page пиmber)." (include here the (include here the ... ...
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Knowledge Booster
ADT and Class
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.
Recommended textbooks for you
Database System Concepts
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)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education