Question: Write a JavaScript function on the following: a.) Parse and evaluate simple math word problems returning the answer as an integer. Example: What is 10

Write a JavaScript function on the following: a.) Parse and evaluate simple math word problems returning the answer as an integer. Example: What is 10 plus 20? Ans: 30 What is 10 minus 5? Ans: 5 What is 30 divided by 3? Ans: 10 What is 5 multiplied by 15? Ans: 75 What is 10 plus 5 plus 3? Ans: 18 (It should be able to handle a set of operations and evaluate from left to right.) Function should reject invalid syntax and non-math questions. b.) Create a function that will implement a shift cipher like Caesar. -Include space into your cipher. -Function should accept a key that will determine the shift distance of your cipher. -Your key is a representation of a value that should be randomly generated from range 0 - 10. -Function should have a validation if the correct key was supplied. -Function should output the message after cipher ABCDEFGHI XIYIZ ABCDEF
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
