zybooks return code


After a student creates an account and signs in at zybooks.com, the student is taken to their library, where a box appears to enter a zyBook code: Invoking a function's name, known as a function call, causes the function's statements to execute. double interestRate, int The checking that zy Books does is very exacting and you must match it exactly. Once you have the values you need to call your presentValue. 10/10/2017 zyBooks 1/76 6.1 User-de±ned function basics A function is a named list of statements. Note that the order of the values will be future value, annual interest rate, and number of years. The function needs to display the interest rate as %, SO.05 would display as 5.000%. cout << "The future value must be greater At the bottom of the card is an option to run a similarity check. The presentValue needs to calculate the present value and return that back to the calling function. A zyBook code looks like: SpringfieldUnivCS101HomerSimpsonSpring2014 (just an example). View desktop site. Right now zyBooks has a problem with this when your int main() statement has a comment on it. Your program will be run on a server in the cloud. Here are the prompts for the three values you need to read in: Enter future value Enter annual interest rate Enter number of years Note that the interest rate will be a number such as 10 or 12.5. \setlength{\parindent}{5em} % some paragraph skip to better distinguish lines of different paragraphs \setlength{\parskip}{.8em} \begin{document} This is the \texttt{document} environment. double readFutureValue() { double futureVal; while (true) {cout << "Enter future value"<> futureVal; if (futureVal <= 0) { cout << "The future value must be greater than zero" << endl; continue;} else { break;} } return futureVal;} // This function will read the valid annual interest rate Jobs. General overview In part 2 you will be creating multiple functions to calculate the present value. They keep prices as low as possible, provide the best support, and make the platform easy for students and teachers to use. interestRate, noOfyears); cout << "\nPresent value: $" << For the following sample run assume the input is as follows: 1000000.0 5.0 25 Your program should output the following: Enter future value Enter annual interest rate Enter number of years Present value: $295302.77 Future value: $1000000.00 Annual interest rate: 5.000% Years: 25 Here is an example with some invalid data Input values: -100 1000000.0 5.0 25 Output: Enter future value The future value must be greater than zero Enter future value The future value must be greater than zero Enter future value 6.3 def largest(a,b,c): if ab: return greater equal=str("equal") if a>=b: return equal 6.5 def middle(a,b,c): if a < b and b < c: return b if c < b: return a if a>=c: return c 6.6 def is_sorted(a,b,c): if a<=b<=c: return True else: return False 6.7 def print_highway_info(x): if x in range(1,99): if x %2==0: … More information about what the yellow highlighting means can be found in course "How to use zyBooks' - especially section "1.4 zyLab basics". Your task is to modify the program from the Java Text files programming assignment to contain several methods for different parts of the program.I suggest you save a copy of the original before modifying the software. This will cause your verification steps to fail. You may be asking what a "present value' is. GitHub Gist: instantly share code, notes, and snippets. Code Tracing Quiz The code tracing quiz is in Canvas, and is one the first things you should work on. << endl; cout << "Future value: $" << This conversion needs to be done before you call the present Value function (see below). Failure to follow the C++ requirements could reduce the points received from passing the tests. Note that the annual interest would be 08 for 8%. /* Type your code here. // calcAverage () takes in an int array and returns the average value of elements in the array as a double. greater than zero" << endl; // This function will read the valid no of years. Your program will only be processing one set of valid values for future value, annual interest rate and number of years. double(pow((1 + r), noOfyears)); You are getting this error because you are using wrong function name. There are 46 March 2021 Zybooks Coupon Codes and deals. A "While" Loop is used to repeat a specific block of code an unknown number of times, until a condition is met. If we want to store Float values, then the Data Type will be float. If the input is: 28 3.1599 the output 3.16 11.85 79.00 Note: Real per-mile cost would also include maintenance and depreciation ACTIVITY 2.27.1: LAB: Driving costs 10/10 main.cpp Load default template 1 include 3 using namespace std; //For setprecision 5 int main() { / Type your code here. Scores range from 0-10. "); System.out.println("Answer with:"); System.out.println(" l (your num is lower)"); System.out.println(" h (your num is higher)"); System.out.println(" any other key (guess is right). Including main this is six functions. C++ requirements You are not allowed to use any global variables. Use of global variables will result in a grade of zero for part 1. Grab the Zybooks promotions and save immediately. At the end of the 12 years you want to have $15,000 in the account. P=F/((1+r)^n) In the above expression the value (1 + r) needs to be raised to the nth power. post (url, json = payload) return r. json def send_get (url, params): r = requests. Copy and paste code 2. return the wrong variable 3. fail to return a value for the function