The number of lines that can be printed on a paper depends on: • The paper size The point size of each character in a line Whether lines are double-spaced or single-

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
Summary
The number of lines that can be printed on a paper
depends on:
• The paper size
• The point size of each character in a line
• Whether lines are double-spaced or single-
spaced
• The top and bottom margins and the left and
right margins of the paper.
Assume that all characters are of the same point
size, and all lines are either single-spaced or
double-spaced. Note that 1 inch = 72 points.
Moreover, assume that the lines are printed along
the width of the paper. For example, if the length of
the paper is 11 inches and width is 8.5 inches, then
the maximum length of a line is 8.5 inches.
Transcribed Image Text:Summary The number of lines that can be printed on a paper depends on: • The paper size • The point size of each character in a line • Whether lines are double-spaced or single- spaced • The top and bottom margins and the left and right margins of the paper. Assume that all characters are of the same point size, and all lines are either single-spaced or double-spaced. Note that 1 inch = 72 points. Moreover, assume that the lines are printed along the width of the paper. For example, if the length of the paper is 11 inches and width is 8.5 inches, then the maximum length of a line is 8.5 inches.
Instructions
Write a program that calculates the number of
characters in a line and the number of lines that
can be printed on a paper based on the following
input from the user:
1. The length and width, in inches, of the paper
2. The left, right, top, and bottom margins
3. The point size of a line
4. An 's' or 'S' if the lines are single-spaced, or a 'd'
or 'D' if the lines are double-spaced (If the lines
are double-spaced, then double the point size
of each character)
Transcribed Image Text:Instructions Write a program that calculates the number of characters in a line and the number of lines that can be printed on a paper based on the following input from the user: 1. The length and width, in inches, of the paper 2. The left, right, top, and bottom margins 3. The point size of a line 4. An 's' or 'S' if the lines are single-spaced, or a 'd' or 'D' if the lines are double-spaced (If the lines are double-spaced, then double the point size of each character)
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Rendering
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