1 – Give an example of three valid identifiers.

2 – Give three examples of invalid identifiers and explain why they are not correct.

3 – Declare the variables which you used in question #1 with the correct data type.

Change these two numbers written in scientific notation to decimal notation:

1.234e-4 5.689e 3

Change these two numbers written in decimal notation to scientific notation.

.012 975,000

Chapter 3B

1- Give three examples of predefined functions. In your own words, explain the calculation that each function provides.

2- In your own words, explain the principle of code reuse.

3 What is a formal parameter? Give an example.

## Chapter 1 1 – Name three input devices, three storage devices and three output devices. 2 – Name three

Chapter 1

1 – Name three input devices, three storage devices and three output devices.

2 – Name three functions of the operating system.

3 – Name three ethical standards of conduct regarding computers.

Chapter 1

Find a short poem that you like and write a program to display it on the monitor.

## Programming Question

Programming Assignment Help 1. In the class, I had shown you with a Java program calculating n! when n = 50 (or = 200 etc.) can

have very different results when data type is int, long, float, or double.

In the class, you also noted that the calculated answer for double precision through calculator is different from that through Java in the last digit (I don’t remember which n! since I forgot to save the output).Below are the results for 50! when calculated using 4 different tools / means:MATLAB 3.041409320171338e 64Calculator 3.0414093201713378043612608166065e 64Java 3.0414093201713376E64Excel 3.04141E 64Write some observations of your ten n! calculated with 4 different tools when comparing these results. For example, for 50!, we can say that the results for all 4 tools agree with 4 digits after decimal point (the Excel result in the 5th digit differs, but agrees in the so called significance), and the first 3 tools MATLAB, calculator, and Java agree up to 14 digits after decimal point.

2. ) Convert my smallfact.java to at least one other computer language that your group is familiar with such as C / C# / C / Python / Javascript, etc. Show the results of 50!. Do you have the same precision like 16 digits of precision, or you have more, or you have less with another computer language? Do you have magnitude E64, or higher, or lower? What data type did you use in this programming language: short, int, long, float, double, or anything else?

3. Enhance your program of question 3, so that it can run in several data types: int, long, float, and double.Use your program to run 20!, 30!, 40!, 50!, and 80! And tabulate them.

4. Generalize Nyhoff’s Figure 2_1 to use different programming languagesThere is Nyhoff’s Figure2_1, a C file that computes 2, 20, 200, 2000, etc. until it overflows (this will be demoed on 8/31/21 Tuesday briefly)(a) (15% *) Covert Nyhoffs Figure 2_1 code to C#, Java, Visual Basic and show the outputs. You can earn up to 12% for this question for conversion to two different computer programming language. Do you see any overflow for this different code (also does overflow happen at different index I for different computer languages?)(b) (15% *) Repeat part (d) for the computer languages Python and Javascript.(Python and Javascript are generally known as computer languages without strong data type). What do you observe?

## Programming Question

1. In the class, I had shown you with a Java program calculating n! when n = 50 (or = 200 etc.) can

have very different results when data type is int, long, float, or double.

In the class, you also noted that the calculated answer for double precision through calculator is different from that through Java in the last digit (I don’t remember which n! since I forgot to save the output).Below are the results for 50! when calculated using 4 different tools / means:MATLAB 3.041409320171338e 64Calculator 3.0414093201713378043612608166065e 64Java 3.0414093201713376E64Excel 3.04141E 64Write some observations of your ten n! calculated with 4 different tools when comparing these results. For example, for 50!, we can say that the results for all 4 tools agree with 4 digits after decimal point (the Excel result in the 5th digit differs, but agrees in the so called significance), and the first 3 tools MATLAB, calculator, and Java agree up to 14 digits after decimal point.

2. ) Convert my smallfact.java to at least one other computer language that your group is familiar with such as C / C# / C / Python / Javascript, etc. Show the results of 50!. Do you have the same precision like 16 digits of precision, or you have more, or you have less with another computer language? Do you have magnitude E64, or higher, or lower? What data type did you use in this programming language: short, int, long, float, double, or anything else?

3. Enhance your program of question 3, so that it can run in several data types: int, long, float, and double.Use your program to run 20!, 30!, 40!, 50!, and 80! And tabulate them.

4. Generalize Nyhoff’s Figure 2_1 to use different programming languagesThere is Nyhoff’s Figure2_1, a C file that computes 2, 20, 200, 2000, etc. until it overflows (this will be demoed on 8/31/21 Tuesday briefly)(a) (15% *) Covert Nyhoffs Figure 2_1 code to C#, Java, Visual Basic and show the outputs. You can earn up to 12% for this question for conversion to two different computer programming language. Do you see any overflow for this different code (also does overflow happen at different index I for different computer languages?)(b) (15% *) Repeat part (d) for the computer languages Python and Javascript.(Python and Javascript are generally known as computer languages without strong data type). What do you observe?