Question: Please include a screenshot of script file. C++ Only C++ Only C++ Only C++ Only Question 1 10 out of 10 points View RL Write

Please include a screenshot of script file. C++ Only C++ Only C++ Only C++ Only

Please include a screenshot of script file. C++ Only C++ Only C++

Only C++ Only Question 1 10 out of 10 points View RL

Write a C++ program with the following specifications: a. Define a C++

Question 1 10 out of 10 points View RL Write a C++ program with the following specifications: a. Define a C++ function (name it function StudentID where StudentiD is your actual student ID number) that has an integer input (N) and a double input (x) and returns a double output y, where N 03 XN+ N XN+ 03 N+1 The value of N should be positive. b. In the main function, i. Read user input N from the command window (console), while ensuring that N is positive (>0). If the user enters a negative number, the program should request the user to re-enter a positive (>0) number until a valid number is entered. ii. Use the above function (function_StudentID) to determine the value of y for the user input N when x=2.0. Display the result using 4 decimal values. iii. Using the above function and a for loop, display the values of y for N values from 1 to 4 (1,2,3,4) when x=2.0. Display the results using 4 decimal values. Save your C++ program as quiz3_studentID.cpp where studentiD is your actual 8-digit student ID Upload your C++ file (Quiz3_StudentiD.cpp) to VUWS. The program should perform appropriate input validation when necessary. 1. Program Assumptions: All inputs are assumed to be numeric. 2. Coding Save your C++ program as quiz3_studentID.cpp where studentID is your actual 8-digit student ID. Upload your C++ file (Quiz3_StudentiD.cpp) to VUWS. The program should perform appropriate input validation when necessary. 1. Program Assumptions: All inputs are assumed to be numeric. 2. Coding: Include an identification section in the program (at the beginning). This is important and should include the following information. // Student Name: // Student Number: 1/ Lab Session (Day, time and location): (e.g. Wed 16-18 // XA103) Add appropriate comments. Friday, 10 July 2020 6:35:40 PM AEST

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!