answersLogoWhite

0


Best Answer

start

Declarations

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

endif

stop

User Avatar

Wiki User

βˆ™ 11y 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...
Submit
Still have questions?
magnify glass
imp
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?

Bug


How do you design a web browser?

With an actual programming language


Programming logic and design review questions?

anjum


How do you do glade manual chapter 4 exercise 1?

To complete Glade manual chapter 4 exercise 1, follow the instructions provided in the manual for that specific exercise. Typically, you will be required to design a user interface using Glade by adding widgets, arranging them on the window, and setting their properties. Make sure to save your work as you progress through the exercise. If you encounter any specific issues or have questions, refer back to the manual or seek help from an instructor.


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?

Programming