![]() Each displayed item is to be on a separate line. ![]() Where is says “display” it means output a line to standard out. Declare a constant of type byte named sample1 with an initial value of 0x3A Declare a variable of type byte named sample2 with an initial value of 58 Declare a variable of type int named heartRate with an initial value of 85 Declare a variable of type double named deposits that has an initial value of 135002796 Declare a constant float named acceleration that has an initial value of 9.800 Declare a variable float named mass that has an initial value of 14.6 Declare a variable double named distance that has an initial value of 129.763001 Declare a variable bool named lost that has an initial value of true Declare a variable bool named expensive that has an initial value of true Declare a variable int named choice with an initial value of 2 Declare a constant of type char named integral that has a value of ∫ Create a constant String named greeting that has an initial value of “Hello” Create a variable String named name that has an initial value of “Karen” Using the constants and variables declared and initialized based on the above, do the following. ![]() Declare the following constants and variables and set their initial values as indicated. Requirements: Project Name: Csharp Basics Target Platform: Console Application Programming Language: C# Write the code necessary to do the following inside the Main function of the C# program. A good thing to always do with a new language is to build test applications where you experiment with these language features to make sure you understand how they work. ![]() It is important when working with a new language to understand how it handles its constants, variables, data types, operators, expressions, statements, blocks, and control flow. Purpose: This application provides experience in working with basic language features of C#. NET Core that utilizes constants, variables, data types, operators, expressions, statements, blocks, and control flow. ![]() GitHub - sebantu1181/C-Basic: Challenge: C# Basics Description: Write a C# console application using. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |