CMSC 430 Programming Discussion Essay Assignment
Order ID:89JHGSJE83839 Style:APA/MLA/Harvard/Chicago Pages:5-10 Instructions:
CMSC 430 Programming Discussion Essay Assignment
Provide a program in the target language(cygwin)of our compiler/interpreter that incorporates all elements of the language. It must include all of the following:
Integer, Real and Boolean literals
Every arithmetic operator: + – * / rem **
Every relational operator: = /= > >= < <=
Every logical operator: and or not
An if statement
A case statement
A reduce statement
Multiple variable declarations
Multiple parameter declarations
In addition, your program should be written in a such a way that it test the associativity and precedence of all operators. It should also include nested statements.
Also provide several sets of input (values for the parameters) to the program, enough so that every line of code within the program is executed at least once. For each input supplied, provide the corresponding output.
This is the professors example. As you can see it compiles successfully and will need an input as a test case for the test compiler. Please use the test compiler and the files in the zip attached to do this. This is the target language that the question is asking for. Please do an original answer and don’t take from another website. Please do it from scratch. Thank you so much for the help.
Example:
function main age: integer, salary: real, isMeaningful: boolean, commuteTime: integer, isNotFun: boolean, hasLotsOfWorkFriends: boolean returns real;
ageRanking: real is
if age <= 35 and age /= 0 and age > 18 and age < 100 then
0.5 * 100 / age * 100 ** 2;
else
if age >= 65 then
2.0 * 100 / age * 100 ** 2;
else
1.25 * 100 / age * 100 ** 2;
endif;
endif;
commuteRanking: integer is
case commuteTime is
when 1 => 3 – commuteTime;
when 2 => 2 – commuteTime;
when 3 => 1 – commuteTime;
others => 0 – commuteTime;
endcase;
satisfactionRanking: real is
if not isNotFun and isMeaningful and hasLotsOfWorkFriends then
100;
else
0;
endif;
salaryRanking: real is
reduce +
salary;
(0.2 * salary);
12000;
endreduce;
booleanFun: boolean is
isMeaningful and ( 1 <= 2 or 2 >= 3 or not 5 > 2 * 1 rem 1 + 4 ** 4 – 2 / 2 or 3 /= 4 and not 4 < 3 or 5 = 1 * 2 + 3 – 5 / 5 rem 2 ** 4);
begin
if booleanFun then
(salaryRanking / 1000 + ageRanking / 10000 + commuteRanking * 10 + satisfactionRanking ) / 10;
else
0;
endif;
end;
RUBRIC
Excellent Quality
95-100%
Introduction 45-41 points
The background and significance of the problem and a clear statement of the research purpose is provided. The search history is mentioned.
Literature Support
91-84 points
The background and significance of the problem and a clear statement of the research purpose is provided. The search history is mentioned.
Methodology
58-53 points
Content is well-organized with headings for each slide and bulleted lists to group related material as needed. Use of font, color, graphics, effects, etc. to enhance readability and presentation content is excellent. Length requirements of 10 slides/pages or less is met.
Average Score
50-85%
40-38 points
More depth/detail for the background and significance is needed, or the research detail is not clear. No search history information is provided.
83-76 points
Review of relevant theoretical literature is evident, but there is little integration of studies into concepts related to problem. Review is partially focused and organized. Supporting and opposing research are included. Summary of information presented is included. Conclusion may not contain a biblical integration.
52-49 points
Content is somewhat organized, but no structure is apparent. The use of font, color, graphics, effects, etc. is occasionally detracting to the presentation content. Length requirements may not be met.
Poor Quality
0-45%
37-1 points
The background and/or significance are missing. No search history information is provided.
75-1 points
Review of relevant theoretical literature is evident, but there is no integration of studies into concepts related to problem. Review is partially focused and organized. Supporting and opposing research are not included in the summary of information presented. Conclusion does not contain a biblical integration.
48-1 points
There is no clear or logical organizational structure. No logical sequence is apparent. The use of font, color, graphics, effects etc. is often detracting to the presentation content. Length requirements may not be met
You Can Also Place the Order at www.collegepaper.us/orders/ordernow or www.crucialessay.com/orders/ordernow CMSC 430 Programming Discussion Essay Assignment
CMSC 430 Programming Discussion Essay Assignment