Create a program named Table that displays the following table:
a a^2 a^3 1 1 1 2 4 8 3 9 27 4 16 64
Copyable Code
/* Table.cpp */
#include<iostream> /* for inputs */
using namespace std;
/* main code */
int main()
{
/* declarations of variables */
int a;
/* output display */
cout<<"a"<<"\t"<<"a^2"<<"\t"<<"a^3"<<endl;
/* for-loop for computing squares and cubes */
for(a = 1; a <= 10; a++)
{
cout << a << "\t" << a*a << "\t" << a*a*a << endl;
}
getchar();
return 0;
}
Create a program named Table that displays the following table: a a^2 a^3 1 1 1...
USING PYTHON LANGUAGE. QUESTION I: Write a program that displays the following table: a a^2 a 3 a14 1 1 1 1 2 4 8 16 3 9 27 81 4 16 64 256 QUESTION II: An approximate value of a number can be computed using the following formula: 7 ) Write a program that displays the result of 4 X + 7 • H) and 4 X - 를 7 tis). 9 QUESTION III: Write a program that prompts...
SQL Create an access database named student11. Create a table named student12 and insert the following records in it. ID StudentName Grade 1 John 90 2 Jim 70 3 Larry 85 4 Sally 20 5 Sam 60 6 Sandra 100 7 Runa 55 8 Simran 35 9 Seema 65 10 Ramu 75 Create a query to find students whose grade are more than or equal to 80.
Write a Visual Basics program that calculates the squares and cubes of the numbers 0 through 5 and displays the resulting values in table format as follow: Number Square Cube 0 0 0 1 1 1 2 4 8 3 9 27 4 16 64 5 25 125
use SAS to solve it plz 2. Create the following dataset, named work.xw, using a datalines statement 5 a 6 b 7 b 9 z 8 a 9 e 2 f Prepare a printed report which (a) displays the rows of the dataset where w is a or b (b) displays the title 'Listing Report (c) uses column headings 'Explanatory variable' for x and 'Category' for w 2. Create the following dataset, named work.xw, using a datalines statement 5 a...
Write a JAVA program to create a table named FoodItem that contains the following columns : ID (number), Name(varchar), calories(number). Now create an insert statement to insert a record into this database table. Finally using a select statement print the record that you entered into the database.
C++ program Write a program which: 1. Enters data into the 2D array of integers which is 5x5 The data should be entered with an assignment statement using nested for loops that is do not scan in the data. The data should be: 1 2 4 8 16 1 3 9 27 81 1 4 16 64 256 1 5 25 125 625 1 6 36 216 1296 2. Print out the following using a nested for loop Row 0:...
Can someone help me with a c++ program Create a program that displays a measurement in either inches or centimeters. If necessary, create a new project named Introductory 18 Project, and save it in the Cpp8\Chap09 folder. The program should allow the user the choice of converting a measurement from inches to centimeters or vice versa. Use two program-defined functions: one for each different conversion type. Enter your C++ instructions into a source file named Introductory 18.cpp Also enter appropriate...
Write a program that displays the following pattern: Write a program that displays the following table: Assume a runner runs 14 kilometers in 45 minutes and 30 seconds. Write a program that displays the average speed in miles per hour. (Note that 1 mile is 1.6 kilometers) The U.S. Census Bureau projects population based on the following assumptions: One birth every 7 seconds One death every 13 seconds One new immigrant every 45 seconds Write a program to display the...
in Java programming Using IF statement, write a program that prints multiplication table for 1-10. Sample Program Output. 1 2 3 4 5 6 7 8 9 10 1 1 2 3 4 5 6 7 8 9 10 2 2 4 6 8 10 12 14 16 18 20 3 3 6 9 12 15 18 21 24 27 30 4 4 8 12 16 20 24 28 32 36 40 5 5 10 ...
Using java E6.17 Write a program that prints a multiplication table, like this: 1 2 3 4 56 7 8 9 10 2 4 6 8 10 12 14 16 18 20 3 6 9 12 15 18 21 24 27 30 10 20 30 40 50 60 70 80 90 100