# ARSD Chapter 4 Serendipity Booksellers Computer Program Questions Response

User Generated

zndhrra

Programming

Atma Ram Sanatan Dharma College

### Description

This assignment consists of a series of five problems, each worth 20 points, that can be solved by writing a computer program. For each problem, design an algorithm using a series of comments and then implement the program using the Ruby language. Use RubyMine to create a project named Asg4 and, for each problem, add a file to the project named Asg4Exn.rb, where n is the problem number. For example, the filename of the first problem should be Asg4Ex1.rb. Within each file, add a comment block at the top that contains the program’s name, your name, date, the course title, your instructor’s name, the assignment number, the problem number, and a brief description of the program’s purpose.

### Unformatted Attachment Preview

Chapter 4 Assignment This assignment consists of a series of ﬁve problems, each worth 20 points, that can be solved by writing a computer program. For each problem, design an algorithm using a series of comments and then implement the program using the Ruby language. Use RubyMine to create a project named Asg4 and, for each problem, add a ﬁle to the project named Asg4Exn.rb, where n is the problem number. For example, the ﬁlename of the ﬁrst problem should be Asg4Ex1.rb. Within each ﬁle, add a comment block at the top that contains the program’s name, your name, date, the course title, your instructor’s name, the assignment number, the problem number, and a brief description of the program’s purpose. Problem #1 Serendipity Booksellers needs a program to determine the cost to ship a package based on it’s weight. Using the rates shown in the table to the right, write a program to ask the user for the weight of a package and display the shipping cost to the user. If the user enters a value of zero or less for the package weight, inform the user that the weight is invalid and do not show a cost. Weight Per Pound
Purchase answer to see full attachment
User generated content is uploaded by users for the purposes of learning and should be used following Studypool's honor code & terms of service.

Hello, Every pro...

Review
Review

Anonymous
Excellent resource! Really helped me get the gist of things.

Studypool
4.7
Trustpilot
4.5
Sitejabber
4.4