2

Pseudocode is still somewhat confusing and I've been reading and this assignment for the a while now and I wanted to make sure I am understanding what's being asked of me. Could someone please tell me if my pseudocodes are correct?

Question:

1. Using pseudocode declare a Real number named temperature.

2. Using pseudocode declare a variable to store the Julian day (1-366) named JDay

3. Write pseudocode that asks a user to enter string variables to store a person’s lastname and birthdate. Then output the lastname and birthdate separated by a comma.


My pseudocode:

1. Declare temperature as double

2. Declare JDay as Integer

3. Declare LastName as string
Declare BirthDate as string
Write “Enter your last name”
Input LastName
Write “Enter your birthdate”
Input BirthDate
Set UserInfo = LastName = “ , “ + Birthdate

3
Contributors
3
Replies
4
Views
7 Years
Discussion Span
Last Post by Tales
0

>Set UserInfo = LastName = “ , “ + Birthdate
My brain has trouble parsing this line. Perhaps you meant:

Set UserInfo = LastName + “ , “ + Birthdate

Edited by Narue: n/a

0

I apologize, yes that's what I meant. Did you find any other issues with my pseudocode?

0

I apologize, yes that's what I meant. Did you find any other issues with my pseudocode?

Your code is good :D

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.