Completed

Reporting and Javascript Training

Kementerian Dalam Negeri

Date
26 โ€“ 30 Aug 2024
Organised by
Two Bytes Sdn Bhd
Trainer
Azman Zakaria
Attendees
7

Reporting dan Javascript Training

Date : 26 - 30 September 2024

Training Materials

Javascript Book

Trainer Profile

 Nama : Azman bin Zakaria
 Umur : 52 tahun
 Pengalaman Dalam Bidang IT : 21 Tahun
 Syarikat : Favourite Trainer Sdn Bhd
 Kelulusan :

  • Bachelor IT UiTM
  • Diploma Computer Science UiTM
  • HRDF Certified Instructor

Azman merupakan senior programmer yang passionate dalam bidang pengaturcaraan komputer dari awal mulai beliau bekerja pada tahun 2000 sehingga hari ini. Beliau mempunyai pengalaman bekerja yang luas di agensi kerajaan, swasta dan sebagai freelancer.
Antara pengaturcaraan yang selalu digunakan adalah seperti :

  • PHP (sejak tahun 2000)
  • PHP dan Laravel Framework
  • PHP dan Yii Framework
  • Coldfusion
  • Java 
  • Java dan Spring Boot Framework
  • Javascript
  • jQuery
  • Vuejs
  • Angular
  • Flutter

 

Notes

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Investment Calculator</title>
</head>
<body>
    <input type="number" placeholder="Amount to Invest" id="invest_amount">
    <br>
    <input type="number" id="duration" placeholder="Duration">
    <br>
    <button onclick="doCalculate()">Calculate</button>

    <table id="output" border="1">
        <tr>
            <td>Year</td>
            <td>Amount</td>
            <td>Rate</td>
            <td>Profit</td>
            <td>Total</td>
        </tr>
    </table>

    <script>
        function doCalculate() {
            // read input data
            let invest_amount = document.getElementById('invest_amount').value;
            invest_amount = parseInt(invest_amount); // convert string to int
            let duration = document.getElementById('duration').value;
            duration = parseInt(duration);

            let year = 2024;
            let table = document.getElementById('output');
            for(i=0; i<duration; i++) {
                // generate dividend rate (5 - 10)
                let rate = Math.random() * 5 + 5;
                let profit = rate / 100 * invest_amount;
                let total = profit + invest_amount;

                let row_cell = document.createElement('tr');
                
                let col_cell = document.createElement('td');
                col_cell.textContent = year;
                row_cell.appendChild(col_cell);

                let col_cell2 = document.createElement('td');
                col_cell2.textContent = invest_amount.toLocaleString('en-us', {style: 'currency', currency:'USD'});
                row_cell.appendChild(col_cell2);

                let col_cell3 = document.createElement('td');
                col_cell3.textContent = rate.toLocaleString('en-us');
                row_cell.appendChild(col_cell3);

                let col_cell4 = document.createElement('td');
                col_cell4.textContent = profit.toLocaleString('en-us', {style: 'currency', currency:'USD'});
                row_cell.appendChild(col_cell4);

                let col_cell5 = document.createElement('td');
                col_cell5.textContent = total.toLocaleString('en-us', {style: 'currency', currency:'USD'});
                row_cell.appendChild(col_cell5);
                
                table.appendChild(row_cell);
                year++;
                invest_amount = invest_amount + profit;
            }
        }
    </script>
</body>
</html>

 

Borang Penilaian Keberkesanan Latihan

Training evaluation ยท Reporting and Javascript Training

Log in with the account you registered for this training to fill in the survey.

Log in to fill in the survey

Attendance

Registration closed
This training ended on 30 Aug 2024, so new attendance can no longer be registered.

Students (7)

# Name
1. ROHAYU BINTI NAYAN
2. Suria Mohamad Sukri
3. NOOR AZLINA BINTI SAMSUDIN
4. Norazizah Binti Zainal Abidin
5. NORFADHILA BINTI MOHD AZIAN
6. Mohamad Faiz Hakimi bin Mohamad
7. MUHAMMAD SYAKIR BIN MUHAMAD FARID