Learn C# beginner programming - Simple code - Im stuck on the Date format. Im creating a int for 142021 and a string for the month name.  Efficiently create your codes to display the correct formatted output below. 1. The program CANNOT have literal(s) within the method invocation operator for Write and WriteLine. 2. Except for the date (the last line), each output line is a string that will be assigned to a variable. 3. For the last output, you must use a numerical variable for the day and year. 4. Can only have ONE variable of each data type declared in the entire program. 5. No additional libraries are allowed. 6. Use standard variable naming convention. Should look like this:

New Perspectives on HTML5, CSS3, and JavaScript
6th Edition
ISBN:9781305503922
Author:Patrick M. Carey
Publisher:Patrick M. Carey
Chapter13: Programming For Web Forms: Creatings Forms For Orders And Pa
Section13.2: Visual Overview: Passing Data Between Forms
Problem 3QC
icon
Related questions
Question

I'm not allowed to use DateFormat. I need to use an int to have a numerical variable for the day and year and a string for the month. That's the part where I'm stuck. I already did the rest.

 

Learn C# beginner programming - Simple code - Im stuck on the Date format. Im creating a int for 142021 and a string for the month name. 

Efficiently create your codes to display the correct formatted output below.

1. The program CANNOT have literal(s) within the method invocation operator for Write and WriteLine.

2. Except for the date (the last line), each output line is a string that will be assigned to a variable.

3. For the last output, you must use a numerical variable for the day and year.

4. Can only have ONE variable of each data type declared in the entire program.

5. No additional libraries are allowed.

6. Use standard variable naming convention.

Should look like this:

 

Your C# script must run. Note: XX' represents your section.
"My First Program"
by <YOUR NAME>
CSC240-0XX
February 14, 2021
Transcribed Image Text:Your C# script must run. Note: XX' represents your section. "My First Program" by <YOUR NAME> CSC240-0XX February 14, 2021
Expert Solution
Introduction

Literal is a numeral constant or string constant value set to the integer variable and string variable.  The string literal is a set of characters enclosed in double-quotes. The constant numeral is a constant that can be integer, float value, or double value. 

  • //String literal 
  • string country= "USA";
  • //Set character value
  • char ch='N';
  • //set constant for float 
  • float PI=3.14;
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Algebraic Expressions
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.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
New Perspectives on HTML5, CSS3, and JavaScript
New Perspectives on HTML5, CSS3, and JavaScript
Computer Science
ISBN:
9781305503922
Author:
Patrick M. Carey
Publisher:
Cengage Learning