Bid Again - Keep Going Until You Say 'n'!

  • Context: MHB 
  • Thread starter Thread starter BJ2017
  • Start date Start date
  • Tags Tags
    Software
Click For Summary
SUMMARY

The discussion focuses on creating a bidding system that continues to accept bids until the user inputs 'n'. Participants emphasize the use of while loops in programming to implement this functionality effectively. The conversation highlights the importance of user input handling and loop control structures in languages such as Python or JavaScript. Key examples and code snippets demonstrate how to structure the loop to ensure it terminates correctly upon receiving the 'n' input.

PREREQUISITES
  • Understanding of while loops in programming
  • Basic knowledge of user input handling
  • Familiarity with programming languages like Python or JavaScript
  • Concept of loop control structures
NEXT STEPS
  • Learn how to implement user input validation in Python
  • Explore JavaScript event handling for user inputs
  • Study advanced loop control techniques in programming
  • Research best practices for creating interactive command-line applications
USEFUL FOR

Beginner programmers, software developers, and anyone interested in creating interactive bidding systems or command-line applications.

BJ2017
Messages
1
Reaction score
0
Write an expression that continues to bid until the user enters 'n'.
 
Technology news on Phys.org
BJ2017 said:
Write an expression that continues to bid until the user enters 'n'.

What have you tried so far?

Have you learned about while loops?
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
12K
  • · Replies 15 ·
Replies
15
Views
3K
  • · Replies 8 ·
Replies
8
Views
4K
  • · Replies 14 ·
Replies
14
Views
34K
  • · Replies 11 ·
Replies
11
Views
4K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
4K
Replies
1
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K