This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # ========================================================== | |
| # Write a shell script base on below requirements: | |
| # | |
| # a) Script prompt user to enter a password | |
| # | |
| # b) Script then checks the password entered with the given | |
| # password. (Assume that the system password is "secret") | |
| # |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/ruby | |
| # ========================================================== | |
| # Write a shell script base on below requirements: | |
| # | |
| # a) Script prompt user to enter a password | |
| # | |
| # b) Script then checks the password entered with the given | |
| # password. (Assume that the system password is "secret") | |
| # |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/perl | |
| # ========================================================== | |
| # Write a shell script base on below requirements: | |
| # | |
| # a) Script prompt user to enter a password | |
| # | |
| # b) Script then checks the password entered with the given | |
| # password. (Assume that the system password is "secret") | |
| # |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # ========================================================== | |
| # Write a shell script, which will ask you for input 'yes' | |
| # or 'no' and based on that will give you what is your | |
| # input; | |
| # | |
| # a) If you enter yes as your input, it will echo you have | |
| # entered yes. | |
| # |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/ruby | |
| # ========================================================== | |
| # Write a shell script, which will ask you for input 'yes' | |
| # or 'no' and based on that will give you what is your | |
| # input; | |
| # | |
| # a) If you enter yes as your input, it will echo you have | |
| # entered yes. | |
| # |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/perl | |
| # ========================================================== | |
| # Write a shell script, which will ask you for input 'yes' | |
| # or 'no' and based on that will give you what is your | |
| # input; | |
| # | |
| # a) If you enter yes as your input, it will echo you have | |
| # entered yes. | |
| # |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ////////////////////////////////////////////////////////////////////// | |
| // // | |
| // This program will display a simple GUI, asking for input. // | |
| // // | |
| ////////////////////////////////////////////////////////////////////// | |
| package mainprogram; | |
| import javax.swing.JFrame; | |
| import javax.swing.JButton; | |
| import javax.swing.JLabel; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ////////////////////////////////////////////////////////////////////// | |
| // // | |
| // This program will display receipt using read-only TextArea // | |
| // // | |
| ////////////////////////////////////////////////////////////////////// | |
| package mainprogram; | |
| import javax.swing.JFrame; | |
| import javax.swing.JButton; | |
| import javax.swing.JLabel; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| using namespace std; | |
| double x = 1.25; | |
| double result = 0.00; | |
| int main() | |
| { | |
| asm( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ////////////////////////////////////////////////////////////////////// | |
| // // | |
| // Convert integer to string without using any library. // | |
| // // | |
| ////////////////////////////////////////////////////////////////////// | |
| #include <iostream> | |
| #include <string> | |
| using namespace std; |