Create three variables of string data type

Assignment Help DOT NET Programming
Reference no: EM132084489

Objective:

This assignment is designed to learn programming in VB.NET.

Questions:

In Visual Studio, create a VB.NET Console Application that does the following:

Create three variables of String data type, called firstNamelastName, and fullName respectively;

Assign your first name to the variable firstName;

Assign your last name to the variable lastName;

Concatenate the variable firstName, a string containing a space (i.e., " "), the variable lastName together, and then assign the result to the variable fullName;

Display your name in the console window using the statement Console.WriteLine(fullName)

(3 marks) In Visual Studio, create a VB.NET Console Application that does the following:

Create a variable of Integer data type, called marks;

Create a variable of String data type, called grade;

Assign 88 to marks;

Convert marks into grade as follows using the Select-Case statement:

marks

grade

90-100

A+

85-89

A

80-84

A-

77-79

B+

73-76

B

70-72

B-

67-69

C+

63-66

C

60-62

C-

50-59

D

0-49

F

(5) Display the values of marks and grade in the console window using the statements

Console.WriteLine(marks)

Console.WriteLine(grade)

(2 marks) Repeat Question 2 using the If-Then-ElseIf statement (instead of the Select-Case statement). Your output should be exactly the same as that of Question 2.

(3 marks) In Visual Studio, create a VB.NET Console Application that uses the While loop to display all leap years between 2017 and 2050. A leap year between 2017 and 2050 is a year that is an integer multiple of 4 (i.e., year Mod 4 = 0). For example, 2020 and 2040 are leap years. (Hint: you need both the While and If-Then statements.)

For each question, print the program and handwrite the output at the end of the printout of the program.

Reference no: EM132084489

Questions Cloud

How does the os manage processes : How does the OS manage processes? Be able to name five OS management activities related to processes.
Learn and use bitwise operations within a program : Can find a partner in your class so you can work together to finish the homework. You don't necessarily need to meet each other in face.
Do research and write a paper on structured analysis : Nassi-Shneiderman structure charts (yes, that's Ben Shneiderman, before he became famous for his work in HCI).
What kind of problems faced the german government : What kind of problems faced the German government between 1919 and 1925? How did the way the war ended contribute to the weakness
Create three variables of string data type : Create three variables of String data type, called firstName, lastName, and fullName respectively;
Find a plate with name rose from a stack of ten plates : Find a plate with name Rose from a stack of ten plates Private stack plates;
Explain how the great fire of london can be viewed : Explain how the Great Fire of London can be viewed as both a curse and a blessing.
The stack data structure and explore the idea of first-in : Your task is to utilize a stack collection. Your program should allow the user to add a biscuit, remove a biscuit, and print the status of the stack.
Explain the significance of the punic wars in rome : Explain the Significance of the Punic Wars in Rome. Please include such as why they were started and the consequences. I just need a brief summary of these

Reviews

Write a Review

DOT NET Programming Questions & Answers

  Create account management with java

Create account management with java gui using a MVC model.create withdraw, create account, deposit , trasfer ,balance , on the main fram. and On pressing one of these buttons a window "Start deposit/withdraw for ac count: account ID suppose to sho..

  What characteristics of the ajax programming style

What characteristics of the Ajax programming style do you believe will make it attractive to be utilized in applications within your workplace?

  Write a vbnet windows application to aid in the calculation

Write a VB.NET Windows application to aid in the calculation of reconnect charges for delinquent electric customers. When customers fail to pay their electric bill.

  Write asp dot net script to enter two integers

Write down the ASP.NET script to enter two integers, gets numbers from user and outputs to label which displays larger number followed by words "is larger".

  Give an example in which polymorphism would be useful write

write a 200- to 300-word short-answer response to the followingprovide an example in which polymorphism would be

  Demonstrate input validation using regular expression

Design, implement, test, and debug a C# program to demonstrate input validation using regular expression.

  Describe what is meant by value type and reference type

explain what is meant by value type and reference type objects in c. explain the differences providing an example of

  Discuss html- css

As an IT professional, you will frequently use the Web to located resources to help you with your work. There are a plethora of online   resources available, including news articles, reviews, blogs, videos, reference books, and tutorials.

  Write a c# program to store an array of integers

Write a C# program to store an array of integers 10 through 19. Use an appropriate loop to multiply all of the values in the list. Print out the result.

  Write a program that inputs a file of text

Write a program that inputs a file of text and counts the occurrence of words in the text (for example, "write" appears 1 time in this sentence; "a" appears 2 times).

  Create annual salary calculator

Create a new ASP.NET website called PayrollSystem. Create Annual Salary Calculator

  Describe two types of loops that can be used to print

Describe two types of loops that can be used to print every third integer from 0 to 300 (i.e., 0, 3, 6, 9, etc.), each on its own line. Which would be a better choice and why? Write the code using that type of loop.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd