Can someone help me convert C++ to Matlab

1 Ansicht (letzte 30 Tage)
Omar Rodriguez Hernandez
Omar Rodriguez Hernandez am 3 Dez. 2019
Bearbeitet: James Tursa am 3 Dez. 2019
Help please
I've tried how to do it but I don't get it
  1 Kommentar
Raj
Raj am 3 Dez. 2019
Looks straightforward. You have mentioned that you have tried something. Can you post that? It doesn't matter if its wrong. We'll take it from there.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

James Tursa
James Tursa am 3 Dez. 2019
Bearbeitet: James Tursa am 3 Dez. 2019
The += and *= operators behave as follows:
total_salary += daily_salary;
becomes
total_salary = total_salary + daily_salary;
and
daily_salary *= INCREMENTAL_AMOUNT;
becomes
daily_salary = daily_salary * INCREMENTAL_AMOUNT;
The rest is just putting in the value checks and displaying values using MATLAB syntax.

Kategorien

Mehr zu Introduction to Installation and Licensing finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by