
use C#
1, Write a program that displays the table show in the
* sample executable.
*
* the relationship is given by the quadratic equation
* y = 2 + 3x - 2x2
*
* Type of loop-> your favorite (you MUST use a loop)
* Hints:
* 1) Generate the first column of all the rows using a
* Console.WriteLine() statement and a single expression
* (use increment = 0.25)
* 2) Generate successive columns one at a time by adding
* another expression
* 3) Format using a column specifier (do not use tabs)

Step by stepSolved in 2 steps with 1 images

you did not use the hint
* 1) Generate the first column of all the rows using a
* Console.WriteLine() statement and a single expression
* 2) Generate successive columns one at a time by adding
* another expression
you did not use the hint
* 1) Generate the first column of all the rows using a
* Console.WriteLine() statement and a single expression
* 2) Generate successive columns one at a time by adding
* another expression
- PYTHON PORGRAM - Write the syntax for defining a for loop (loop index j) that counts backwards from 10 to -10 in steps of 2 and prints the current loop index to screen.arrow_forwardWhat is the primary difference between a foreach loop and a traditional for loop in programming?arrow_forwardShow what the program segment would display on the screen. int count = 5; while (count > 2) { cout << count << endl; --count; cout << count << endl;arrow_forward
- in C++ use this function to calcul the range: function range step Specified value of y y = 0.05*x3+6sin(3x)+4 From -2.5 to 2.5 0.5 -2 The program will calculate average value of y for the given range. To find the average, usestd::accumulate using algorithm header and divide by the number of elements. The output must be write with the result:Average value of function y for the given range is : ;arrow_forwardHello! I am having trouble writing this code! It is in Python! Any help is appreciated! program7_1.pyFollow instructions carefully to avoid point deductions. The text file is not required. It will be created when your program is graded. Write a program that begins by calling a custom function named as you wish. This function must create and return a list of 8 random integers, all in the range from 10-100. use a for loop to display the 8 random integers all on one line separated by a single space. print the highest number in the list. print the lowest number in the list. print the total of all list elements. sort the list in descending order. use another loop to display the sorted numbers in descending order, all on the same line, separated by a single space. This loop should also contain code to count the number of even integers and the number of odd integers. report both counts when the loop above has ended. use slicing syntax to make another list holding the middle 2 elements of…arrow_forwardThis is for r Regarding a for loop, which of the following is not true? The for keyword must be followed by parentheses. Following the for statement, the code to be executed is recognized by it being indented. The number of times the loop will be performed is determined by the length of the vector passed to the for keyword. The for loop can contain other for loops.arrow_forward
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education





