solution

Amanda is a recent college graduate, and has just started her first job. She would like to know if she saves $5,000 per year out of her salary over the next 30 years, whether she can accumulate at least 1 million dollars. What can you say about the probability of her meeting the goal value of 1 million dollars in her retirement fund after 30 years. She has decided that she will invest all her money in the stock market that she estimates has a return that is normally distributed with mean 12% per year and standard deviation 25%. HINT: Simulate Amanda’s portfolio over the next 30 years and determine how much she can expect to have in her account at the end of that period. At the beginning of each year, compute the beginning balance in Amanda’s account. Note that this balance is either 0 (for year 1) or equal to the ending balance of the previous year. The contribution of $5,000 is then added to calculate the new balance. The market return for each year is given by a normal random variable with the parameters above (assume the market returns in each year are independent of the other years). The ending balance for each year is then equal to the beginning balance, augmented by the contribution, and multiplied by (1+Market return). To generate the normally distributed market returns feel free to use @RISK function RiskNormal O a Between 30 to 40% b. Less than 30% Oc More than 60% Od Between 50 to 60% O e. Between 40 to 50%
 
"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"

solution

Purpose:

  • Practice using the following logic using a Flow Chart tool.
    • Declare and use variables
    • Simple IF / ELSE statement
    • Use Calculations in a program
    • Create and apply decision logic using an If / Else structure

Requirements:

Create a flow chart of a Currency Conversion that converts the cryptocurrency Ethereum (ETH) to dollars or dollars to Ethereum (ETH) .

Ask the user if they want to convert:

  • Option 1. ETH to Dollars
  • Option 2. Dollars to ETH

Based on the user’s answer (1 or 2) use an IF statement to process the conversion. You will need to lookup and use the actual current exchange rate for your calculation.

The output should include:

    • Some literal text ( write this in ” “)
    • The type of conversion they selected ( ETH-Dollar, or Dollar-ETH)
    • The amount to convert
    • The resulting converted amount
    • Any other message you would like (ie. Thank you)
    • Add an output that reads, “Programmed By : ” to every program you submit.
    • Comment your code.
 
"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"

solution

(C++)

We are given a file that contains encrypted text called “encrypted.txt” using the Caesar cypher. Each lowercase alphabetic character has been modified by “rotating” it through the alphabet some number of steps. The program is to decrypt this file given certain constraints.


To address the problem of what to do when the letter to be encrypted is too close to the end of the alphabet. For example, what should we do if we have to encrypt the letter ‘y’, again with the number of steps specified as three. The first step takes us to ‘z’. What about the second step? We wrap around, back to ‘a’. The third and final step then is easy, it will take us on to ‘b’.


The first item in the file will be an int, the number of steps that was used in the rotation. Yes, it could be negative.


The following lines will contain the text that you are to decode. Only lowercase alphabetic characters have been encrypted. The rest, e.g. uppercase, digits and punctuation all appear in the encrypted file the same way they did in the original.


Oh, one other thing. To make the encoded file more difficult, they thought it would be clever to reverse the lines in the file. So what should be the first line shows up last, etc.

An example. Suppose this is the contents of the file you were asked to decrypt:

Asi ymj rtrjwfymjx tzylwfgj.

Aqq rnrxd bjwj ymj gtwtlwtajx

Dni ldwj fsi ldrgqj ns ymj bfgj.

Tbfx gwnqqnl fsi ymj xqnymjd ytajx

  • That says that the original file was encoded with a Caesar cypher using a rotation of five. Remember that the lines have also been reversed meaning that the first line of text we see is the encoded version of what was the last line of code in the original file, etc. When we decrypt it, we should get:

Twas brillig and the slithey toves

Did gyre and gymble in the wabe.

All mimsy were the borogroves

And the momerathes outgrabe.

Functions to provide.

  • First, write a function that takes an encrypted character and the rotation distance, and returns the corresponding decrypted character. Note that only lowercase characters will result in a change. For all other characters, the function will return the input value. (Note that the function’s return type will need to be char.)

  • Second, write a function that takes a string and the rotation distance. It will modify the string that is passed in, using the above function, changing it into its unencrypted form. This function is passed the string to be modified along with the rotation distance and changes the string in place. It does not return anything, i.e. it has a void return type.

  • Neither of the above functions prints anything. That will be the task of main, or another function if you see some merit in further breaking up the program.

 
"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"

solution

Warning of consequences if the person does something is the second roadblock. Workers who do this do not want their clients to follow certain lines of action, often out of concern for the client. Rather than discuss their clients’ inclination to act in a particular way, they warn the client instead. In this next series of responses, the workers here sound as if they know better what is good for the client than the client does:

•             “If you take that suggestion, I think you will be sorry!”

•             “You’d better not do that.”

•             “I can tell you from experience that something like that won’t work!”

•             “You won’t get your medications if you don’t attend group regularly.”

 
"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"