need help writing pseudocode
input origprice
set discount = price * 0.20
set finalprice = origprice - discount
output final
stop
marylw24
0
Newbie Poster
Recommended Answers
Jump to PostOh, the mods would have moved it for you! (or you could have PM'd one)
As I said in my last post:
The only problem I see with your pseudocode is that price should be written as origprice.
Jump to Postneed help writing pseudocode
You've already done it. Barring a minor inconsistency where you create one variable name but use another (ie. origprice/price and finalprice/final), what you've posted is legitimate pseudocode.
All 5 Replies
Hiroshe
499
Posting Whiz in Training
deceptikon
1,790
Code Sniper
Team Colleague
Featured Poster
marylw24
0
Newbie Poster
marylw24
0
Newbie Poster
deceptikon
1,790
Code Sniper
Team Colleague
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.