• Sign in to Neowin Faster!

    Create an account on Neowin to contribute and support the site.

  • 0

Pseudocode help.

Question

00000000Anon    0

Hi everyone, I'm really struggling with some pseudocode problems, I really can't figure this stuff out for the life of me. I'm the type of person who has to have this kind of stuff worked out for me step by step or otherwise my brain will just shut down. So I was wondering if anyone could help me out with this problem or explain it to me a little more. 

 

User asks you to develop a program that calculates and then prints interest earned on a bank

balance. Program should print interest earned for the same balance when interest is accumulated

annually, semiannually and quarterly.

Interest earned yearly=balance * rate /100 for annual

Interest earned semiannually =balance*rate/2/100 for semi annual

Interest earned quarterly= balance*rate/4/100 for quarterly

 

Thanks in advance!

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0
adrynalyne    11,835
36 minutes ago, QLC said:

Hi everyone, I'm really struggling with some pseudocode problems, I really can't figure this stuff out for the life of me. I'm the type of person who has to have this kind of stuff worked out for me step by step or otherwise my brain will just shut down. So I was wondering if anyone could help me out with this problem or explain it to me a little more. 

 

User asks you to develop a program that calculates and then prints interest earned on a bank

balance. Program should print interest earned for the same balance when interest is accumulated

annually, semiannually and quarterly.

Interest earned yearly=balance * rate /100 for annual

Interest earned semiannually =balance*rate/2/100 for semi annual

Interest earned quarterly= balance*rate/4/100 for quarterly

 

Thanks in advance!

As you said. Break it down step by step. 
what will the user first see? How will they interact? How will the program get it’s data? 
 

Once you determine that, treat the user input as a module. Once you have the input, do the math on it and display back to user as output. 
 

Now write that in pseudocode. 

  • Like 1

Share this post


Link to post
Share on other sites
  • 0
Dermot    75
On 9/10/2019 at 12:30 AM, 00000000Anon said:

Hi everyone, I'm really struggling with some pseudocode problems, I really can't figure this stuff out for the life of me. I'm the type of person who has to have this kind of stuff worked out for me step by step or otherwise my brain will just shut down. So I was wondering if anyone could help me out with this problem or explain it to me a little more. 

 

User asks you to develop a program that calculates and then prints interest earned on a bank

balance. Program should print interest earned for the same balance when interest is accumulated

annually, semiannually and quarterly.

Interest earned yearly=balance * rate /100 for annual

Interest earned semiannually =balance*rate/2/100 for semi annual

Interest earned quarterly= balance*rate/4/100 for quarterly

 

Thanks in advance!

Start program

   Request User's ID

   Request User's Password

   Login to bank

   Show user their balance

   Show user option to pick interest Criteria, A,B or C

     'A' will be interest yearly

     'b' will be interest semi yearly

     'C' will be quarter yearly

   Get inputted Choice

   Show calculated Result to User

End program

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.