Write a program that calculates number of characters in line

Assignment Help Basic Computer Science
Reference no: EM131396419

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 doublespaced or single-spaced, the top and bottom margin, 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 the width is 8.5 inches, then the maximum length of a line is 8.5 inches. 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:

a. The length and width, in inches, of the paper.

b. The top, bottom, left, and right margins.

c. The point size of a line.

d. If the lines are double-spaced, then double the point size of each character.

Reference no: EM131396419

Questions Cloud

Provide a detailed summary of 21st century solutions : Your duties at 21st Century Solutions Health Care Hospital require you to interface with many different professionals, including physicians, nurses, and allied professionals in various areas of health care. The facility also has a new information ..
Choose a method of sampling and give the reasons : The investigator would like to make estimates for each class as well as the total body of undergraduates. Choose a method of sampling and give the reasons for your choice.
Review the developmental model of intercultural sensitivity : For this discussion, review the Developmental Model of Intercultural Sensitivity on pages 81-85 of the Learning through Serving text. Which one of these six stages do you find yourself in?
What consequences are there to having a long copyright term : What reasons are there for having copyright terms last this long? What consequences are there to having a long copyright term?
Write a program that calculates number of characters in line : 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 doublespaced or single-spaced, the top and bottom margin, and the left and right margins of the paper.
Java classes to model a small plane flying passengers : In this assignment, you will be creating several Java classes to model a small plane flying passengers from State College, PA to Orlando, FL.
Take a sample of 25 students from a freshman medical class : You are asked to take a sample of 25 students from a freshman medical class of 180 students in order to find out what specialty they wish to enter.
Discuss the impact of quality improvement on legal aspects : Analyze the pros and cons of the quality improvement program that you are proposing for the organizational process that you identified.Justify the need for this program, and detail all of the program specifics, including a time line from launch to ..
Calculates and prints bill for a cellular telephone company : Your program should prompt the user to enter an account number, a service code (type char), and the number of minutes the service was used. A service code of r or R means regular service; a service code of p or P means premium service. Treat any o..

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Determine the primary number of turns

The secondary of a 750 KVA, 11000/ 400 V, 50 Hz transformer has 160 turns. Determine the primary number of turns, primary and secondary full load current neglecting losses. If the area of cross section of the core is 100 cm2, what will be flux dens..

  Print the file to hand in to your instructor

Modify the Savings Account Balance program described in Programming Challenge 16 so that it writes the final report to a file. After the program runs, print the file to hand in to your instructor.

  Introduction to networking course

You have just completed 10 weeks of an introduction to networking course. Imagine you have been asked to create a one-day training course that highlights the important elements of what you have just learned within the past ten (10) weeks.

  What the different between j2me vs android

In your opinion identify and describe any five aspects which ensure the existence of M Commerce in long run

  Research and the development of a summary of 5 it

Clarification: These systems are out of date, are not running virus software, and users all have administrative rights to the server and workstations. The website is also out of date and the website front end allows users to input data.

  Creating a new course registration system

Suppose that your university were interested in creating a new course registration system that could support Web-based registration.

  The args designate the range

The args designate the range [lo, hi]. If lo > hi, then that designates the empty range (no numbers), in which case outputA returns without outputting any numbers. Otherwise, outputA outputs all the numbers in the range that are interesting.

  Fundamental characteristics and components

Select an organization you are familiar with. Write a 1-page paper that includes the following based on your chosen Local Organization: Explain the network's fundamental characteristics and components.

  Explain file containing sporting goods which are sold online

You have file containing sporting goods which are sold online. Each item record contains item id, item name, item description, item category, item price, and units in stock.

  Draw the corresponding class diagram

From the sequence diagram Figure 2-34, draw the corresponding class diagram. Hint: Start with the participating objects in the sequence diagram.

  Describe four different kinds of wireless technologies in a

bull discuss four different types of wireless technologies in a 350- to 700-word paper in apa format.bull describe the

  Analysis comparing and contrasting the systems

Analysis comparing and contrasting the systems

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd