Question: CSC 1230 Problem solving and Programming Due Fri. March 3rd by 5:00pm Tip: this assignment is great practice for Exom a2 Part 1-Program Description and
CSC 1230 Problem solving and Programming Due Fri. March 3rd by 5:00pm Tip: this assignment is great practice for Exom a2 Part 1-Program Description and Reguirements Problem: You are to create a program that outputs table and a set of calculations performed on them. the for a starting point and the number of ines they like to indude in the table. You are to output the following table of values n'.increasing n by01 each time for each n nz n' vn Vn ceiling floor(n) For example, here is the output for 8 lnes starting at 2.0. lease enter the desired number of 11nes in your table: 10.613 1,5LEE 13.8 40 15.6050 1.6432 19.6830 Requirements: about what input parameters and return 1. You will write the following functions. Think carefully values (if any these functions need to have to work correctly assignment. Do not use global variables, global voriables 0 points on the a. get Startingvalue (a double which must be atleast 0.0. i. Prompt the user for the starting point later use. Return this value from the function for ii. Perform input validation inside the function to ensure thatanegative number is not entered. do...while loop while for validation. ifa loop) negative number is entered, ask for a new input for the starting point b. um Lines lines to print (an int) which must be greater i. Prompt the user for the number of f is than 0, Return this value from the function that a positive number ii. Perform input validation inside the function to ensure validation. If a lines entered. Use a do...while loop (not a while loop) for input the number of negative number or zero is entered, ask for a new input for n'2.etc) c. the header for the table, including the labels for each column (n, i. Print and bottom of the table. d, printBorder the that appear at the top i. Print border will e, print Table
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
