Jump to content

Arrays & Modularization

- - - - -

  • Please log in to reply
4 replies to this topic

#1
Garrettx

Garrettx

    Newbie

  • Members
  • PipPip
  • 11 posts
Greetings everyone am seeking some help on a ?. but is their anyone that familiar with Arrays..?

#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
In which language? It varies quite a bit.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#3
Garrettx

Garrettx

    Newbie

  • Members
  • PipPip
  • 11 posts
i dont know reallly. i will post the question shortly.

---------- Post added at 11:11 AM ---------- Previous post was at 10:36 AM ----------

Mr. Benson has opened a company that sells cars. He has found that at the end of the days his sale representative spend hours calculating the earnings from sales. he is planning to have a Christmas sale which from experience , usually attract a lot of customers. he is seeking to purchase a customize software for his company to keep track of the day to day business earnings to reduce the number of hours his sales representative has to work after the company close.

Auto sales Merchant has hired you and your team to design an algorithm for their company. The input to the system will be the customer name, price of the car and the brand of the car purchase. The only brands sold by Mr. Benson are Toyota, Honda, Suzuki and Hyundai. Create an Array of size 20 to store the cost price of each car sold.
Your system needs to calculate and display the following details below.
a. Display the cost price for each car sold
b. Use the table below to calculate the discount price.

?...continues

#4
Garrettx

Garrettx

    Newbie

  • Members
  • PipPip
  • 11 posts
Pseudocode is the language..

#5
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
Pseudocode is not a language. You immediately raise the concern of whether you are learning arrays as 0-based or 1-based, for example.

Your general approach: solve the problem by hand. Think of your array as a list of entries, with the index as the entry number.

Write instructions for what you did, then formalize them up to pseudocode.
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