For this assignment, you will create a calculator that collects information from the user with prompts

Our academic experts are ready and waiting to assist with any writing project you may have. From simple essay plans, through to full dissertations, you can guarantee we have a service perfectly matched to your needs.

GET A 40% DISCOUNT ON YOU FIRST ORDER

ORDER NOW DISCOUNT CODE >>>> WELCOME40

Topic % Excellent (100%) Good (75%) Fair (30%) Poor (0%) Calculation 20 Some type of math is used an a calculation and includes at least 2 factors as variables, not hard-coded values, and at least 2 arithmetic operators (total, not in one place). Calculation is used, but only with1 factors, or 1 different arithmetic operators. Numbers are used, but calculation is not present or meaningful, or hard-coded values are used. No calculation is present, or is the same as the examples in the course material. (Zero for the entire project.) Prompts 10 The user is prompted for at least 3 values by a WriteLine and information is stored in a variable. The user is prompted for 2 values by a WriteLine and information is stored in a variable. The user is prompted for 1 value by a WriteLine and information is stored in a variable. No prompts. Casting 10 All user prompted variables are correctly parsed or casted. User variables are cast/converted but there are minor errors User variables are cast/converted but there are major errors User prompted variables are not correctly parsed Data Types 10 At least one of each variable with meaningful names: 1. Array 2. String 3. Number(double, int, long, decimal, etc..) Missing one of the previous list, or bad variable names. Missing two. Variables are not present or not meaningful. Output 15 Console.WriteLine must contain: 1. Calculated values 2. Supporting descriptive narrative text 3. String concatenation Missing one of the previous list. Missing two. Output not present or not meaningful. Assignment Operator 5 No assignment operators other than the equal sign is used in code. Test Values 5 No test values are present Naming 5 Files are not named properly. Warning Message Errors 10 There are warning errors in the submitted code. Completeness 5 All required elements from the assignment are included. One or two minor elements missing. Major pieces missing. Not even close to complete. Investment 5 Presentation is impersonal or disconnected. Little to no forethought, personalization, or relevance. Expressions Assignment Rubric Scalable Data Infrastructures: MDV2330 Bare Minimum Requirements These requirements must be satisfied before any points are awarded. Failing to meet these requirements will result in a zero (0) grade. 1. Working C# file with no major syntax errors and no runtime errors. Programming Fundamentals Technical Professionalism Presentation is well thought out, coherent, and includes personal relevance. Test values are present in a comment at the end of code and are correct. At least one assingment operator (+=, -=,*=,/=, ++, –) is used in the code. The submitted files follow the correct naming convention of LastName_FirstName_Expressions_Assignment. There are no warning errors in the submitted code. Activity: Expressions OVERVIEW: For this assignment, you will create a calculator that collects information from the user with prompts, calculates some sort of useful result from that information, and prints the result to the console. LEVEL OF EFFORT: This activity should take approximately 240m to complete. It will require: • 0m Research • 15m Prep & Delivery • 225m Work If you find that this activity takes you significantly less or more time than this estimate, please contact me for guidance. READING & RESOURCES: Instructional Expressions – Rubric (necessary) The rubric on the first page of this document outlines the points for the assignment. Make sure you check off each one as done before submitting your assignment! OBJECTIVES: Successful completion of this activity will show that you can do the following: • Determine appropriate assignment operators. • Employ mathematical operators to create an expression. • Implement variables and constants. • Recognize when to use parentheses for the order of operations. • Translate and summarize code with comments. INSTRUCTIONS: 1. Before you begin, you should read the rubric on page 1. This is extremely important, as it will tell you exactly how this assignment will be graded. 2. In your class folder, create a solution called Lastname_Firstname_Expressions_Assignment. 3. Brainstorm an original idea for a calculator of some kind. Keep in mind that your final project must contain the following: a. An example of 2 different arithmetic operators (addition and subtraction, addition and multiplication, subtraction and division, etc.). b. An example of an array. This array must be used as part of the calculation. c. A final output to the Console using descriptive text and concatenating in your result variable(s). d. At least 1 assignment operators, not including the = symbol (++,–,+=, etc). 4. Place your name, date, and assignment at the top of your code in a multi-lined comment. 5. Make sure to comment every important line of code so that you are explaining exactly what you are trying to do. 6. Your code should give the user meaningful output. So, after your calculations are complete, your code should report back to the user the final values with a Console.WriteLine(). This should contain the variables that you calculated and a concatenation text string that describes the value. e.g. Console.WriteLine (“The area of the rectangle is “ +calcArea+ ”!”); 7. After your code is complete, make sure you test your final files. Try typing in different values to see what you get. Put these test values in a multi-lined comment at the bottom of your c# file. e.g. /* I typed in 5 for length and 6 for height and my calculator gave me 30 for the area. */ CRITERIA: Make sure your project follows this list of criteria: • You will need to create code that calculates a solution based on the values entered by a user. The actual values don’t matter; you should be able to type in any numbers in the prompts, which change the values of your variables, and the calculation should still be accurate. • If you want the user to type in a integer then make sure you ask for an integer. If you just say number the user could type in a decimal! • Decide on what your code will calculate. This should be an original calculation. In other words, you may not use any of the examples mentioned in this class. This will result in an automatic 0. • Your calculation should use a minimum of three factors or givens. o Good example: Using width, height and depth to calculate volume. o Bad example: Using time and distance to calculate speed. • All three factors must be essential for the calculation. If one of the factors (the data you are collecting with the prompts) is not needed in order to calculate the result, then it is not essential. • There should be a minimum of 3 prompts to collect user information. Use Console.ReadLine() to gather these prompts. But remember to include a Console.WriteLine asking the question so the user knows what information they need to enter. These prompts should assign the information collected into variables you have set up. • You should have a minimum of four variables: o Three variables to hold the prompt values (one for each prompt). o One variable to hold the calculation result. • Variable names should be descriptive of the values they are assigned. • The variables should also be the correct datatype for the information you are asking for. • Calculate the result using the variables in an expression (NOT literal values or numbers). • Assign the calculation to the fourth variable. • The result should appear in the browser’s console and include an explanation of the result. o Good example of console print out: The volume of the sphere is 26 feet cubed. o Bad example of console print out: 26 • Final output should use string concatenation. • Comment every line of code (describe what each line is doing in English). Do NOT just label sections of your code. TURNING IT IN: • Double-check that you’ve commented your code (You can’t comment too much). • Compress your Lastname_Firstname_Expressions_Assignment folder into one zipped file. It should be named Lastname_Firstname_Expressions_Assignment.zip • Upload this zipped file to FSO. This is the file I will unzip and run to verify it works and revi
ew your code. • You must zip the whole folder and not just the one individual C# file. DON’T FORGET: • Test your code. Do the calculations on your own calculator, and check that the computer is producing the same result. • This is not a “calculator” in the sense of a device with number buttons. This is meant to collect information from the user, use that information in a very specific way, and deliver a result.

Our academic experts are ready and waiting to assist with any writing project you may have. From simple essay plans, through to full dissertations, you can guarantee we have a service perfectly matched to your needs.

GET A 40% DISCOUNT ON YOU FIRST ORDER

ORDER NOW DISCOUNT CODE >>>> WELCOME40

 

 

Posted in Uncategorized