Best Answer



string name

double pricePerPound

double poundsSold

double POUNDS_MIN = 2000

display "Enter the name of the candy: "

get name

display "Enter the price per pound of this candy in Dollars: "

get pricePerPound

display "Enter the number of pounds of this candy that was sold: "

get poundsSold

if poundsSold > POUNDS_MIN then

display "This is a best selling candy! Name: ", name, "Price per pound: ", pricePerPound, "Pounds sold:", poundsSold



User Avatar

Wiki User

10y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Chapter 4 exercise 2a on Programming Logic and Design Introductory?
Write your answer...
Still have questions?
magnify glass
Related questions

What are the answers for Programming logic and design chapter 6?

program calculates

What are the release dates for Divine Design - 1999 Exercise by Design?

Divine Design - 1999 Exercise by Design was released on: USA: 3 January 2008

What has the author Andrew Rollings written?

Andrew Rollings has written: 'Andrew Rollings and Ernest Adams on game design' -- subject- s -: Computer games, Design, Programming 'Game architecture and design' -- subject- s -: Computer games, Design, Object-oriented programming - Computer science -, Programming

What is textual programming?

Textual programming is normally referred to as syntax programming. It is a low-level format for drawing the design of the program.

What is extreme programming?

Extreme Programming: Extreme Programming is when you design the test cases first, and then program backwards. This creates an easier to use programming flow.

What is best described as an error in design or programming?


How do you design a web browser?

With an actual programming language

Programming logic and design review questions?


Is rf design better than mechatronics?

this depends on where your interests lie. are you interested in electronics or programming. mechatronics has far more programming and rf design has more maths and electronics.

How can you design a flight simulator with no programming experience?

paper and pen

Translating design specifications into computer software is called?


What is grammar in compiler design?

Is a specification for the syntax of a programming language.