Jump to content

Need help for Pseudocode

- - - - -

  • Please log in to reply
1 reply to this topic

#1
YoganRaj

YoganRaj

    Newbie

  • Members
  • Pip
  • 1 posts
Helo hi, My name is Yogan.I am a I.T student, im having problem with pseudocode .
Could you explain the question ?
The question is a bit tricky.
Can you show me the strategy to answer this Question ?

Write a pseudocode to accept the following details for 10 movies and 10 music shows.

The details for movies are :
(a) Movie number
(b) Duration
© Category (Fiction(F) / Romance® / Adventure(A)/ Horror(H) )
(d) Rating ( 12 / 15 / 18)

The details for music shows are:

(a) Show number
(b) Duration
© Type ( Hard Rock(H) / Country music © / Rhythm ® )

The pseudocode should do the following :


(A) accept details for all the music shows and then accept all details for the movies.
(B) Separate out the movie numbers of all the movies in the Fiction and Horror categories and store them in
an array " interesting" .
© Separate out the movie numbers of all the movies with the rating 15 or 18 in an array "above 15".
(D) Store the shiow numbers of all the shows that have a duration of 3 hours in an array

#2
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
  • Location:Upstate, South Carolina
  • Programming Language:C, C++, PL/SQL, Delphi/Object Pascal, Pascal, Transact-SQL, Others
  • Learning:Java, C#, PHP, JavaScript, Lisp, Fortran, Haskell, Others
A) sounds like two for loops, probably using arrays

What do you have so far? What part of it is causing you issues?
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users