Question 1 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 the user input to marks; Convert marks into grade as follows using the Select-Case statement: Marks Grade 70-100 A 60-69 B 50-59 C 40-49 D Below 40 F Display the values of marks and grade in the console window using the statements Console.WriteLine(marks) Console.WriteLine(grade)
Q: Create a program for Smalltown Regional Airport Flights that accepts either an integer flight number…
A: Actually, given information: Pass the user’s entry to one of two overloaded GetFlightInfo() methods,…
Q: QUESTION 4 5 points Save Answer Assume myString and newString are variables of type string already…
A: Given Data mystring="England" newstring=" " one line code is :…
Q: Write a sub called GetName that asks the user to type a first name and last name in an input box,…
A: According to the Bartleby guideline, we are supposed to answer only one question at a time. Kindly…
Q: Write an application that reads the (x,y) coordinates for two points. This should prompt for and…
A: C++ program to print distance between two points #include <bits/stdc++.h>using namespace std;…
Q: sing C#, write an application that computes the area of a circle, rectangle, and cylinder. Display a…
A: According to the Question below the Solution: Output:
Q: 1) What value is stored in each variable after this code executes? int a = 7, b = 2, c = 0; c = ++a…
A: Pre increment and Post increment: ++a is prefix increment operator: the result is calculated and…
Q: unsigned int displayMask = 1 << 31; putchar(value & displayMask ? '1': '0'); // where value is an…
A: The Putchar() function takes an integer argument to write it to standard output stream, stdout. The…
Q: Create a VB.NET Console application that does the following: 1. Create a variable of integer data…
A: Required: Create a VB.NET Console application that does the following: 1. Create a variable of…
Q: 2. Create a program that computes and displays a game character's attack speed at a certain level.…
A: Given : To write a program to print the character current attack speed using the above formula. The…
Q: The outcome of an application's computation should be saved in a variable. True or False?
A: Introduction: A variable is a storage place in a computer where a programmer or user may store…
Q: Create an application that accepts a sentence as input and converts each word to “Pig Latin.” In one…
A: Take a string for the input. Take a string for the pig Latin. Input the string. Create an object of…
Q: Now extend your program to give the user the option to either enter two numbers and an operator,…
A: Q: Code the given problem (Language python)
Q: Write an application named EnterUppercaseLetters that asks the user to type an uppercase letter from…
A: Here, Code instruction is given.
Q: Design and develop a VB.NET console application to display all the Armstrong numbers between the…
A: Armstrong number: A number that is equal to the sum of the cubes of its own digits. For example, 370…
Q: #include using namespace std; int main() { char ch; cout>choice; cout>ch; cout>ch; cout>ch;…
A: Code //This program is For Freddy's Pizza#include <iostream>using namespace std;int main(){…
Q: Given the following code, what is displayed? Integer numFriends = 256; Integer numCookies = 256;…
A: Output of the code:
Q: Create an application that finds the greatest common divisor of two positive integers entered by the…
A: Given: Create an application that finds the greatest common divisor of two positive integers entered…
Q: What will the following program segments display? (1) x = 2; y = x++; Console.Writeline($"{x} {y}");…
A: Given: C#
Q: In the following code segment Line 2 illustrates autoboxing? Double d = 3.5; //Line 1 double gpa =…
A: We need to find the correct option.
Q: Three-letter acronyms are common in the business world. For example, in Java you use the IDE…
A: import java.util.*; public class ThreeLetterAcronym{ public static void main(String[] args) {…
Q: 1) What value is stored in each variable after this code executes? int a %3D 7, b %3D 2, с %3D 0; с…
A: Please find the answer below
Q: In this code, which variable was overwritten by using its existing value, to get its new value by…
A: The solution to the given problem is below.
Q: You're working on experiments in the lab and must make temperature measurements every millisecond…
A: %function to Convert celsius to Fahrenheit function Deg_F = celsius_to_fahrenheit(Deg_C) Deg_F =…
Q: You are required to create a console application for a technology retail outlet that will allow a…
A: Java program to print the product name and the final price with VAT of product after taking input as…
Q: what is each line of the code below do? #include "mbed.h" #include "Servo.h" #include "Map.hpp" 1.…
A: Below i have answered in comments:
Q: Create a VB.NET Console Application that does the following; variable of Integer data type (marks)…
A: Given: Create a VB.NET Console Application that does the following; variable of Integer data type…
Q: Write an application that allows a user to enter the names and phone numbers of up to 20 friends.…
A:
Q: To format a number stored in the variable x using the local standards for displaying numeric values…
A: to format a number stored in the variable x using the local variable for displaying numeric value
Q: 12.12 (Temperature Conversion) Write a temperature-conversion application that converts from…
A: Note: The answer of the first question is given in the solution. Please repost the second question…
Q: Astronomy Helper Create an application that displays the following data about the planets of the…
A: ANSWER: EXPLANATION: Public Class Form1 Private Sub Button1_Click(sender As Object, e As EventArgs)…
Q: Write an application that plays the game of Fermi. Generate three distinct random digits between 0…
A: def play(nrounds, ndice=2): player_capital = computer_capital = nrounds for i in range(nrounds):…
Q: Q1 GUI Application Write a python program to create the following GUI :- Income Tax Department…
A: GuI program: import tkSimpleDialog # the basic windowroot = Tk()# create label for resultlabel1 =…
Q: Create a VB.NET Console Application that does the following: Create a variable of Integer data…
A: Background:- base concept of if else if ladder is used here. First take input and check the range…
Q: . Write an application for a college’s admissions office. Prompt the user for a student’s numeric…
A: PROGRAM INTRODUCTION: Import the required header files. Start the definition of the main function.…
Q: Question 3 Write an application that prints each number between 1 and 100 that are divisible by 5 or…
A: Code: public class Main{ public static void main(String[] args) { //declaring required variables…
Q: Write a C# .NET Core Console App that asks the user to enter a number and then displays a string…
A: using System; namespace ReverseNo { class Program { static void Main(string[]…
Q: in visual basics. (1) The following program asks the user for two numbers and then outputs the…
A: Program: According to the given question, we need to perform certain tasks using the for... next…
Q: The Harrison Group Life Insurance company computes annual policy premiums based on the age the…
A: I have given an answer in step 2.
Q: Trainers at Tom's Athletic Club are encouraged to enroll new members. Write an application that…
A: As Language is not provided , doing it in Java Programming Language.
Q: 2. Write an application that will calculate the Cummulative Grade Point Average [CGPA] using While…
A: The code and the output has been given in step 2.
Q: reate a VB.NET Console Application that does the following: Create a variable of Integer data type,…
A: Required: Create a VB.NET Console Application that does the following: Create a variable of…
Q: A first year level 100 first semester student wrote the code below but could not tell whether it…
A: Introduction: Here, a small section of a C-program is given including a structure type naming…
Q: u have this in the main tem milk; tem honey; you refer to the item D Storeltem.honey.item Descr
A: Now you have this in the main program: Storeltem milk; Storeltem honey; How do you refer to…
Q: • Write an application that inputs one number consisting of 3 digits [for example 125] from the…
A: using System; public class RecExcerise4 static void main() { console.write("\n\n recursion:…
Q: 1. Write an application that converts a weight in pounds into kilograms (1 pound equals 0.45359237…
A: Program Explanation- The pound-to-kilos conversion factor. To get user input, use the Scanner…
Q: Create a VB.NET Console Application that does the following: Create a variable of Integer data ...…
A: Any variable's data type determines the type of data it can store. Different amounts of RAM are…
Q: Write an application that allows a user to enter any number of student test scores until the user…
A: Program Approach: n is the user input integer variable which stores the number of students score is…
Q: Question:1 Q1. Write an application that displays in the console window a box, an oval, an arrow and…
A: The Answer is
Q: c# Danielle, Edward, and Francis are three salespeople at Holiday Homes. Write an application named…
A: Programming is instructing a computer to do something for you with the help of a programming…
Q: Write an application that asks a user to enter an integer. Display a statement that indicates…
A: The code should start with asking the user to enter the integer followed by an if else loop that…
- Question 1
- 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 the user input to marks;
- Convert marks into grade as follows using the Select-Case statement:
Marks |
Grade |
70-100 |
A |
60-69 |
B |
50-59 |
C |
40-49 |
D |
Below 40 |
F |
- Display the values of marks and grade in the console window using the statements
- Console.WriteLine(marks)
- Console.WriteLine(grade)
Step by step
Solved in 3 steps with 3 images
- In Visual Studio using Console App (.NET Core) In Visual Studio, create and test a console application that does the following: (1) Create a variable of the Integer data type, named marks; (2) Create a variable of the String data type, named grade; (3) Use the built-in function Console.ReadLine() to get the user's input for marks as follows (it is assumed that the user always inputs integers when testing this program): Console.WriteLine("Input the marks:") marks CType(Console.ReadLine(), Integer) (4) Convert marks into grade as follows using an If-Then-Elself statement: marks 90-100 85-89 80-84 77-79 73-76 70-72 67-69 63-66 60-62 50-59 0-49 grade A+ A A- B+ B B- C+ с C- D F (5) Display the value of grade in the console window using the following statement: Console.WriteLine("The grade is" & grade) Hint: The If-Then-Ekself statement is a lengthy one and is similar to the following: If ((marks >90) And (marks = 85) And (marks =0) And (marks<-49) Then grade "F" ElseDriver’s License Exam The local driver’s license office has asked you to create an application that grades the written portion of the driver’s license exam. The exam has 20 multiple-choice questions. Here are the correct answers: 1. B 2. D 3. A 4. A 5. C 6. A 7. B 8. A 9. C 10. D 11. B 12. C 13. D 14. A 15. D 16. C 17. C 18. B 19. D 20. A Your program should store these correct answers in an array. The program should read the student’s answers for each of the 20 questions from a text file and store the answers in another array. (Create your own text file to test the application.) After the student’s answers have been read from the file, the program should display a message indicating whether the student passed or failed the exam. (A student must correctly answer 15 of the 20 questions to pass the exam.) It should then display the total number of correctly answered questions, the total number of incorrectly answered questions, and a list showing the question numbers of the incorrectly…Restaurant: Point-of-Sales System Create a software application that can be used for a Restaurant using C language. The expected minimum functionality are as follows: Menu Display It must display at least 10 choices with their corresponding prices On your menu, at least one of the categories/choice should have customization/add-on. You should have at least 3 customization/add-on (e.g. In Starbucks, you can have extra espresso shot). Taking Orders As a customer, I want to select which of the choices I want to order As a customer, everytime I specify select my choice, I want to specify the quantity of my selected choice. After I finished my order, it should ask, "Anything Else?". Afterwards, as a customer, I should be to enter my succeeding choice. In order to stop taking order, the exit should be part of the menu. As a customer, I would only select that choice to exit If the customer selects a choice qualified for customization, after specifying the quantity, I should be asked,…
- Design an application that accepts 10 numbers and displays them in descending order.C# Account numbers sometimes contain a check digit that is the result of a mathematical calculation. The inclusion of the digit in an account number helps ascertain whether the number is a valid one. Write an application named CheckDigit that asks a user to enter a four-digit account number and determines whether it is a valid number. The number is valid if the fourth digit is the remainder when the number represented by the first three digits of the four-digit number is divided by 7. For example, 7770 is valid, because 0 is the remainder when 777 is divided by 7. If the account number is valid, output The account number is valid. If the account number is invalid output Invalid. If the account number is too short or too long output Account number invalid - it must have 4 digits.Pig Latin Create an application that accepts a sentence as input and converts each word to “Pig Latin.” In one version, to convert a word to Pig Latin you remove the first letter and place that letter at the end of the word. Then you append the string "ay" to the word. Here is an example: English: I SLEPT MOST OF THE NIGHT Pig Latin: IAY LEPTSAY OSTMAY FOAY HETAY IGHTNAY
- 99 question Reza Enterprises sells tickets for buses, tours, and other travel services. Because Reza frequently mistypes long ticket numbers, Reza Enterprises has asked his students to write an application that shows if a ticket is invalid. Your application/program tells the ticket agent to enter a six-digit ticket number. Ticket numbers are designed so that if you lose the last digit of the number, then divide by 7, the remainder of the division is exactly the same to the last dropped digit. This process is shown below: Step 1: Enter the ticket number; for example 123454 Step 2: Remove the last digit, leaving 12345 Step 3: Determine the remainder when the ticket number from step 2 is divided by 7. In this case, 12345 divided by 7 leaves a remainder of 4. Step 4: Display a message to the ticket agent indicating whether the ticket number is valid or not. If the ticket number is valid, save the number to a .txt file called “tickets.txt” and.Please provide answer in C#: Slot Machine Simulation A slot machine is a gambling device into which the user inserts money and then pulls a lever (or presses a button). The slot machine then displays a set of random images. If two or more of the images match, the user wins an amount of money that the slot machine dispenses back to the user. Create an application that simulates a slot machine. Figure 8-23 (on page 539 of your book) shows an example of how the form should look. The application should let the user enter into a TextBox the amount of money he or she is inserting into the machine. When the user clicks the Spin button, the application should display three randomly selected symbols. (Slot machines traditionally display fruit symbols. You will find a set of fruit symbols attached to this dropbox for your use - from the Student Sample Programs provided by the book author.) If none of the randomly displayed images match, the program should inform the user that he or she has won…# Global constant for body mass which is equal to 703 # Create variables and initialize all of them to 0.0 # create variable weight # create variable height # create variable BMI # input the weight from the user. # input the height from the user. # Calculate the body mass: # BMI is equal to weight * body mass divided by (height * height) # Display BMI. # Determine and display weight category if is greater then 25 you are overweight. # if is less then 18.5 is underweight otherwise is good # display all variables
- Rock, Paper, Scissors Game Create a application using (C#) in Microsoft Visual Studio that lets the user play the game of Rock, Paper, Scissors against the computer. The program should work as follows.1. When the program begins, a random number in the range of 1 through 3 is generated. If the number is 1, then the computer has chosen rock. If the number is 2, then the computer has chosen paper. If the number is 3, then the computer has chosen scissors. (Do not display the computer’s choice yet.)2. The user selects his or her choice of rock, paper, or scissors. To get this input you use clickable PictureBox controls displaying some of the artwork that you will find in the student sample files.3. The computer’s choice is displayed.4. A winner is selected according to the following rules: •If one player chooses rock and the other player chooses scissors, then rock wins. (Rock smashes scissors.)•If one player chooses scissors and the other player chooses paper, then scissors wins.…In Visual Studio using Console App (.NET Core) (4) In Visual Studio, create and test a console application that does the following: (1) Create a variable of the Integer data type, named marks; (2) Create a variable of the String data type, named grade; (3) Use the built-in function Console.ReadLine() to get the user's input for marks as follows (it is assumed that the user always inputs integers when testing this program): Console.WriteLine("Input the marks:") marks CType(Console.ReadLine(), Integer) (4) Convert marks into grade as follows using an If-Then-Elself statement: marks 90-100 85-89 80-84 77-79 73-76 70-72 67-69 63-66 60-62 50-59 0-49 grade A+ A A- B+ B B- C+ с C- D F (5) Display the value of grade in the console window using the following statement: Console.WriteLine("The grade is "& grade) Hint: The If-Then-Elself statement is a lengthy one and is similar to the following: If ((marks >=90) And (marks = 85) And (marks =0) And (marks<-49) Then grade "F" ElseText-based adventure game: Pretend you are creating a text-based adventure game. At different points in the game, you want the user to select to fight, run, or hide from certain enemies. Modify the application below (week3.py) so that the selection variable is sent as an argument into the choice() function. The user should enter 1 to fight, 2 to run, or 3 to hide in the main(). The choice() function should print one of the three options. You will need to add an if statement in the choice() function to make the correct selection.