Write a program that produces the given sequence nos. (in alternate arrangement) using
the three looping statements: 1, 5, 2, 4, 3,3, 4, 2, 5, 1,
1st Solution – using for loop
2nd Solution – using
while loop
3rd Solution-‐ using do while loop
Create a C program and a flowchart that will generate a table of chosen mathematical operations. The user has to be prompted first for the math operation and then enter a value that will be used to add, subtract, multiply or divide from 1 to 10 to complete the table. A sample run is provided below to illustrate the output.
M A T H O P E R A T I O N S:
[M] – Multiplication
[D] – Division
[A] – Addition
[S] - Subtraction
Enter your choice: M
Enter your desired value to be multiplied: 7
7*1=7
7*2=14
7*3=21
7*4=28
7*5=35
7*6=42
7*7=49
7*8=56
7*9=63
7*10=70
Continue [Y/N]? Y
M A T H O P E R A T I O N S:
[M] – Multiplication
[D] – Division
[A] – Addition
[S] - Subtraction
Enter your choice: A
Enter your desired value to be added:4
4+1=5
4+2=6
4+3=7
4+4=8
4+5=9
4+6=10
4+7=11
4+8=12
4+9=13
4+10=14
Continue [Y/N]? N
Thank you for choosing my program
Create a Javascript code to display date and time
Create a Javascript block validates username and password
Converting lowercase to uppercase using javascript
10. The text is given. Determine the sum of the numbers in the text.
1. Change the value of "0" in the input file to "1" and the value of "1" to "0" and write to the output file
13. The text is given. Identify the numbers in the text.
13. Find the product of the negative elements of the string K of any two-dimensional array.
2. Create a program that determines the number of the smallest element of a given one-dimensional array.