Declare variables of different data types (at least 10 variables ). Assign valid literals to those variables. Print the values of the variables using format strings and placeholders in Console.Write() Console.WriteLine(). 21 Page ASSIGNMENT 1 CSD 2354 (C#) Step 4) Print values of some variables in following formats: i) Currency ii) Number iii) Hexadecimal, iv) Percentage. Step 5) Embed comment lines before each Console.WriteLine and explain, how the format strings and placeholders work. Step 6) Perform some arithmetic operations on the variables you declared in step 1. You should demonstrate the use of following arithmetic operations +,-,/,* and % Step 7) Demonstrate the use of increment(++) and decrement(--) operators with example, explain them, by embedding comments in the program. Step 8) Demonstrate the use of comparison operators. Step 1) Step 2) Step 3)
Declare variables of different data types (at least 10 variables ). Assign valid literals to those variables. Print the values of the variables using format strings and placeholders in Console.Write() Console.WriteLine(). 21 Page ASSIGNMENT 1 CSD 2354 (C#) Step 4) Print values of some variables in following formats: i) Currency ii) Number iii) Hexadecimal, iv) Percentage. Step 5) Embed comment lines before each Console.WriteLine and explain, how the format strings and placeholders work. Step 6) Perform some arithmetic operations on the variables you declared in step 1. You should demonstrate the use of following arithmetic operations +,-,/,* and % Step 7) Demonstrate the use of increment(++) and decrement(--) operators with example, explain them, by embedding comments in the program. Step 8) Demonstrate the use of comparison operators. Step 1) Step 2) Step 3)
Programming with Microsoft Visual Basic 2017
8th Edition
ISBN:9781337102124
Author:Diane Zak
Publisher:Diane Zak
Chapter10: Classes And Objects
Section: Chapter Questions
Problem 8E
Related questions
Question
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 4 steps with 3 images
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT