Char error for a list and input

just a simple grade calulator i cant seem to fix. i keep getting 'char' error. heres the script.
A=14;
Am=13;
Bp=12;
B=11;
Bm=10;
Cp=9;
C=8;
Cm=7;
Dp=6;
D=5;
Dm=4;
St= input ('Sum of tests')
HWG= input ('Homework Grade')
GPG= input ('Group Project Grade')
T=.17*(St);
HW= .1*(HWG);
GP= .05*(Dm);
TOT=(T+HW+GP)

3 件のコメント

Azzi Abdelmalek
Azzi Abdelmalek 2012 年 11 月 6 日
編集済み: Azzi Abdelmalek 2012 年 11 月 6 日
your code is fine. which line causes problem?
Matt Fig
Matt Fig 2012 年 11 月 6 日
And what are you giving as inputs?
Walter Roberson
Walter Roberson 2012 年 11 月 6 日
Note that when you use variable names to define grade values and enter the variable name in response to input(), then the names are case-sensitive.

サインインしてコメントする。

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeSymbolic Math Toolbox についてさらに検索

タグ

質問済み:

2012 年 11 月 6 日

Community Treasure Hunt

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

Start Hunting!

Translated by