Question (1) Write for statements that print the following sequences of values
a) 30, 20, 10, 0, –10, –20, –30
b) 15, 23, 31, 39, 47, 55
Question (2) Write a function call it cube to find the cube of each number.
Please write this in programming C language and please explain what we are doing in each step.
a)
#include<stdio.h>
int main()
{
int i;
for(i=30;i>=-30;i-=10) //from i=30 to -30 each time
decrease i value by 10
printf("%d ",i);
}

b)
#include<stdio.h>
int main()
{
int i;
for(i=15;i<=55;i+=8) //from i=15 to 55 each time increase i
value by 8
printf("%d ",i);
}

Question 2:
#include<stdio.h>
void cube(int);//function declaration
int main()
{
int num=5; //declare a variable num
cube(num);//call function cube
}
void cube(int n)
{
int c;
c=n*n*n;
printf("Cube of %d = %d ", n , c);
}

Question (1) Write for statements that print the following sequences of values a) 30, 20, 10,...
Question: Define a class to find the third root of your B[15]. Please write this in programming C or C++ language and please explain what we are doing in each step.
RANGES
FREQUENCY
RELATIVE FREQUENCY
CUMULATIVE REL. FREQ.
1 - 10
11 - 20
21 - 30
31 - 40
41 - 50
51 - 60
61 - 70
71 - 80
81 - 90
91 - 100
'= 100 DATA
VALUES??
SO, WHAT DOES A FREQUENCY TABLE TELL US?
If
you wrote each of the above data values on a ping pong ball,, put
them in a jar and blindly pulled one out:
What is the probability that this ball...
6. (1 0 points) Using a for loop and the range function, write Python statements to print the following sequences: i. 036912 iii. 124 8 12 iv. 11, 15, 19, 23, 27 v. 40, 20, 10, 5 Student 10 162 o32 6
daily21. Computing 1. C programming
Please provide comments and write pre-condition and
post-condition for the function.
Description Create a project called Daily21. Add a source file called daily21.c into the project. In this exercise, you will practice working with an array of integers. In the main function, you first need to create an integer array with 10 elements in t. Use a loop to read 10 integers from the user and store the values to the array (in the order...
Write a C++ program to check the upper and lower limits of different data types: int, unsigned int, long long data type, unsigned long long data type, Bits in char data type, char data type signed char data type, unsigned char data type. Please write this in programming C++ language and please explain what we are doing in each step.
Write a program to create an array with 5 integer values: 10, 20, 30, 40, 50. And then print the array data to monitor. Using NetBeans
programming language
Write a program that will generate 5 random numbers between 20 and 80 and assign each to a variable of datatype double. You should use a random number generator seeded with time Using a series of if statements, determine which of the 5 variables contains the smallest value generated Print all five random numbers to the screen and print out the value that you determined was the smallest. All values should be printed with zero decimal places. 2.
Task 2 Write a shell script program call cal3.sh to do the following. 1. Print the output "you must provide at least one month" when there is no argument 2. Print the calendar with specified month matching the argument when there is one argument $ ./cal3.sh 1 January 2016 Su Mo Tu We Th Fr Sa 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 24 25 26 27...
Please write individual functions solving each of the following problems: Print your name Print numbers 1 → 10 Print numbers N → M, where N and M are parameters to the function .Calculate and return a base B to an exponent E. B and E should be parameters to the function Convert Celsius to Fahrenheit Convert Fahrenheit to Celsius Take a numeric score as a parameter and return the associated letter grade Note, the functions that perform calculations should NOT...
Step 1. Write a program in assembly language (using macros) to print out the following messages on the screen [20 marks]: Hello, programmers! Welcome to the world of, Linux assembly programming! Step 2. Write a C function to passed two numbers to the function and calculate the sum of all the numbers between them (both inclusive). [50 marks] a. Make a version with for loop b. Make a version with while loop c. Make a version with do.. while loop...