Friday, December 14, 2018

Sum of Digits in a String

Write a program that by command of button click read from a file a big integer number.
The program should display this number and the sum of all the single digits of the inputted number.
For example, if the program reads the integer number 2514, the program should display 2514 in the one text-box and 12 in another text-box, which is the sum: 2+5+1+4 = 12.
The program should also display the highest and lowest single digits of the integer number in the two more text boxes.
For the example number 2514, these single digits are 5 and 1.

Main Rules of Final Examination

The final exam in the course “Computer Methods in Science” SCI 120 is the development of a C ++ program in Microsoft Visual Studio. The programming challenge for each student will be selected randomly from a given set of programming challenges. Be sure to use a graphical user interface. An additional plus if the student shows in his program input from a data file or output to a data file. When developing it is allowed to use any educational and reference materials on programming and program libraries, paper, electronic or websites, to use programs prepared in advance. But programming during the exam must occur individually, without the help of another person.

Thursday, December 13, 2018

Character Analysis

Examination Programming Challenge

Write a program that reads a file’s contents and determines the following:
  • The number of uppercase letters in the file
  • The number of lowercase letters in the file
  • The number of digits in the file
  • The number of words in the file
The graphical user interface of this program must include:
  • a text field for input the name of the file
  • the 4 text fields to output data
  • and one button to the command "Start to read a file and to count".

Pig-Latin Converter

Examination Programming Challenge

Write a program that has an option to read a sentence as input and converts each word to “Pig-Latin.”
To convert a word to “Pig-Latin” you has to remove the first letter and place that letter at the end of the word. Then you append the string “ay” to the word.

Here is an example:
English: I SLEPT MOST OF THE NIGHT
Pig Latin: IAY LEPTSAY OSTMAY FOAY HETAY IGHTNAY

Program also should have the inverse option to convert any “Pig Latin” sentence back to correct sentence. The graphical user interface of this program must include at least two text fields for input and output and two buttons for direct and inverse conversion commands.

Morse Code Converter

Examination Programming Challenge

Morse code is a code in which each letter of the English alphabet, each digit and various punctuation marks are represented by a series of dots and dashes. The table shows part of the code. (https://computermethodsinscience.blogspot.com/2018/12/morse-code.html)
Write a program that can convert the entered alphanumeric string to a string in Morse code or convert the entered string in Morse code to the appropriate alphanumeric string.
The graphical user interface of this program must include at least two text fields for input and output and two buttons for direct or inverse transformation commands.

Table. Morse Code
Character     Code
A        .-
B        -...
C        -.-.
D        -..
E        .
F        ..-.
G        --.
H        ....
I        ..
J        .---
K        -.-
L        .-..
M        --
N        -.
O        ---
P        .--.
Q        --.-
R        .-.
S        ...
T        -
U        ..-
V        ...-
W        .--
X        -..-
Y        -.--
Z        --..
0        -----
1        .----
2        ..---
3        ...--
4        ....-
5        .....
6        -....
7        --...
8        ---..
9        ----.
comma        --..—
period        .-.-.-
question mark    ..--..
space        space

Morse Code

A    .-
B    -...
C    -.-.
D    -..
E    .
F    ..-.
G    --.
H    ....
I    ..
J    .---
K    -.-
L    .-..
M    --
N    -.
O    ---
P    .--.
Q    --.-
R    .-.
S    ...
T    -
U    ..-
V    ...-
W    .--
X    -..-
Y    -.--
Z    --..
0    -----
1    .----
2    ..---
3    ...--
4    ....-
5    .....
6    -....
7    --...
8    ---..
9    ----.
,    --..—
.    .-.-.-
?     ..--..

Tuesday, December 11, 2018

Women's T-Shirts & Tops "Binomial" Contrast Tanks

Women's T-Shirts & Tops

"Binomial" Contrast Tanks

Binomial Coefficient #Binomial #Coefficient #BinomialCoefficient Contrast Tank$23.33
 
Binomial theorem Contrast Tank$23.33
 
Visualisation of binomial expansion up to the 4th power Contrast Tank$23.33
Visualization of binomial expansion up to the 4th power, binomial theorem Contrast Tank$23.33
 
Visualisation of binomial expansion up to the 4th power Contrast Tank$23.33
 
Visualization of Binomial Expansion for the 2nd Power Contrast Tank$23.33
Visualization of Binomial Expansion to the 2nd Power Contrast Tank$23.33
 
Quadratic Formula, Binomial Expansion, Other expansions, #Quadratic #Formula, #Binomial #Expansion, #Other #expansions,  Contrast Tank$23.33




General Astronomy: Shop "Chess" Women's T-Shirts & Tops: Shop "Chess" Women's T-Shirts & Tops SORT BY  Department Women's Product T-Shirts Style All T-Shirts All T-Shirt...

NaCl.xyz Generator with Interactive 3D Visualization

NaCl.xyz Generator with Interactive 3D Visualization NaCl.xyz Generator with Interactive 3D Visualization ...