Jump to content

Welcome to Geeks to Go - Register now for FREE

Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.

Create Account How it Works
Photo

Creating a software that prints a book VL


  • Please log in to reply

#1
mel143

mel143

    New Member

  • Member
  • Pip
  • 5 posts
This is our 5th lab for my intro to programming class. I haven't had any issues with the previous labs, but I'm lost with this one. I just need help getting started in the right direction. Of course I don't need the story made up for me, I can do that part :) Any help is appreciated.


Create a program that prints a book. The book consists of the following components:

•A title and author
•Three chapters

Each chapter consists of:

A title

Text – you decide the text per chapter. Keep each chapter short (just a few lines
of text per chapter is sufficient – for example 3 lines of text per chapter). The
text is written in a professional style.

Program Requirements

•The user of the program is allowed to specify how m
any copies of the book should be printed
(e.g., 0, 1, 6, or 10, etc).

•The prompt for data input is user-friendly (i.e., t
he user of the program does not see the
program’s variable names).

•Each chapter starts with a new line number (e.g.,
Line Number:1 for Chapter 1, Line Number: 2 for Chapter 2 ... etc). The line number is displayed
first, then the chapter itself.
Hint for keeping track of the line number: Given that for every copy of the book, each chapt
er starts with its corresponding line number (1, 2 ... etc.), the progra
m can define a variable whose value is reset
right before the book is about to be printed, and t
hen the variable value is incremented when
the chapter is about to be printed.

•The program must implement multiple modules. The bo
ok itself must be implemented in
modules (one module for the title/author and each c
hapter is implemented in its own module).

•The copies of the book are displayed on the
Visual Logic
console.
  • 0

Advertisements







Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP