C:\WINDOWS\system32\cmd.exe Enter a value in miles:5.2 5.2 miles is 8.32 kilometers Press any key to continue
Q: 1. Converts all the words to lower-case.
A: In this I will be providing a program in C# to convert all the words to lowercase.
Q: Write the contents of the deque after the following statements execute. Clearly label the front and…
A: FRONT -> Rudy -> Jack -> Adam -> Larry -> Sam ->BACK
Q: Hello, I have this Dijkstra’s exercise. could you help me to solve it? In C# and C++
A: C++ code :- #include<iostream> #include<stdio.h> using namespace std; #define INFINITY…
Q: You will be writing only the function definition. Write the function definition for AddBonus. The…
A: Actually, c is high level programming language.
Q: 8) Write a program that asks for the user’s name and then the program will output the last 4…
A: Required: Required code with comments for explanation and screenshot of both code and output has…
Q: Q16: Rewrite the equivalent statements for the following examples, and find it results. Assume: X=2,…
A: // Include required header files#include<iostream> using namespace std; // Define main…
Q: I actually wanted it coded in C Programming.
A: In the given question, you are asked to adjust a list of floating-point values by normalizing them.…
Q: What does this error mean and how to fix it? This is in C# programming.
A: The question is to find what does this error mean and how to fix it.
Q: This program requires the student to create a programming loop. The program's loop with loop between…
A: #include<stdio.h> int main() { int no_of_weeks,i=1; /* variable declaration */ float…
Q: • I the user enters 4, prompts the user and inputs a decimal MAC address, Enter Decimal Integer: 207…
A: Introduction: Algorithm: Creating the program to convert binary to decimal number and vice versa.…
Q: IT provides best solutions for manual work that makes life easier .Suppose a university war manage…
A: The C program is given by #include<stdio.h> struct Student { char* Name; int RegId; char*…
Q: HW4 - Chapter 5 - Loops a Collapse context Strings Write a program that finds the number of times a…
A: ==== #include <iostream> #include <fstream> using namespace std; int main () { //…
Q: A Derangement is a permutation of n elements, such that no element appears in its original position.…
A: This question is asking for the programme to find the derangements of the given number. Programming…
Q: There are N guarding posts on the Great Wall of China. However, not all of the spots s have guards.…
A: take input n use counter = 0; while loop --> n>0 input gaurd if guard ==0 counter++ exit…
Q: Write a C program for library management system fulfilling following details: addBook(): This…
A: The code is given in step 2.
Q: What is the difference between ref and out keywords in C#?
A: Question. What is the difference between ref and out keywords in C#? Answer. The difference between…
Q: When is a graph a tree? Write a program that will read from a file specified on the command line and…
A: Algorithm of the code: 1.Start2.Take input of the file name3.Open file and read the data into an…
Q: Exercise 3.20 JHTP (Salary Calculator): Develop a Java application that determines the gross pay for…
A: Solution: Required language is java So, we have to code in java language Please follow the below…
Q: 7) Write a program that asks the user the number of hours an employee worked and his hourly wage,…
A: code:-- #include <iostream>using namespace std; int main(){ // to store the total_hour and…
Q: This program will read in a text file (redirected to stdin) containing values on a 9 x 9 sudoku…
A: CODE: #include<stdio.h> #include<stdlib.h> #include<stdbool.h>…
Q: Write the pseudo-code for a loop `plant Each Seed' 3 times using the commands: make hole, place…
A: The C# code is given below with output screenshot
Q: va, not C++
A: A class is a group of objects which have common properties. A constructor is a method that is used…
Q: What do these errors mean in C# and how to fix them?
A: Given : What do these errors mean in C# and how to fix them? Method must have a return type
how do i make this code in c#?
Step by step
Solved in 3 steps with 2 images
- In this exercise, you modify the Grade Calculator application from this chapter’s Apply lesson. Use Windows to make a copy of the Grade Solution folder. Rename the copy Grade Solution-Intermediate. Open the Grade Solution.sln file contained in the Grade Solution-Intermediate folder. Open the CourseGrade.vb file. The DetermineGrade method should accept an integer that represents the total number of points that can be earned in the course. (Currently, the total number of points is 200: 100 points per test.) For an A grade, the student must earn at least 90% of the total points. For a B, C, and D grade, the student must earn at least 80%, 70%, and 60%, respectively. If the student earns less than 60% of the total points, the grade is F. Make the appropriate modifications to the DetermineGrade method and then save the solution. Unlock the controls on the form. Add a label control and a text box to the form. Change the label control’s Text property to “&Maximum points:” (without the quotation marks). Change the text box’s name to txtMax. Lock the controls and then reset the tab order. Open the form’s Code Editor window. The txtMax control should accept only numbers and the Backspace key. Code the appropriate procedure. The grade should be cleared when the user makes a change to the contents of the txtMax control. Code the appropriate procedure. Modify the frmMain_Load procedure so that each list box displays numbers from 0 through 200. Locate the btnDisplay_Click procedure. If the txtMax control does not contain a value, display an appropriate message. The maximum number allowed in the txtMax control should be 400; if the control contains a number that is more than 400, display an appropriate message. The statement that calculates the grade should pass the maximum number of points to the studentGrade object’s DetermineGrade method. Make the necessary modifications to the procedure. Save the solution and then start and test the application.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. The next problems rely on the generation of a random number. You can create a random number that is at least mi n but less than max using the following statements: Random ranNumberCenerator = new Random(); int randomNumber; randomNumber = ranNumberGenerator .Next(min, max);Each of the following: When you don't have the original primary keys, you can use these keys instead.
- qq199 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.Create an application that finds the greatest common divisor of two positive integers entered by the user. Console Greatest Common Divisor Finder Enter first number: 12 Enter second number: 8 Greatest common divisor: 4 Continue? (y/n): y Enter first number: 77 Enter second number: 33 Greatest common divisor: 11 Continue? (y/n): y Enter first number: 441 Enter second number: 252 Greatest common divisor: 63 Continue? (y/n): n Specifications The formula for finding the greatest common divisor of two positive integers x and y must follow the Euclidean algorithm as follows: Subtract x from y repeatedly until y < x. Swap the values of x and y. Repeat steps 1 and 2 until x = 0. y is the greatest common divisor of the two numbers. You can use one loop for step 1 of the algorithm nested within a second loop for step 3. Assume that the user will enter valid integers for both numbers. The application should continue only if the user enters 'y' or 'Y' to continue. Note that if you do…
- Function Name: comboLock Parameters: num1 – a positive integer representing the first digit in the combination num2 – a positive integer representing the second digit in the combination num3 – a positive integer representing the third digit in the combination num4 – a positive integer representing the fourth digit in the combination num5 – a positive integer representing the fifth digit in the combination Description: You own a combination lock that only opens when presented with the correct sequence of odd and even numbers that are less than 10. Write a function that takes in 5 integers. Check whether they are in this order: odd, even, odd, even, odd. If they are in the correct order and all below 10, then print the string “You opened the lock.” Otherwise, print “You are locked out.” Test Cases: >>>comboLock(9, 2, 5, 4, 1) You opened the lock. >>>comboLock(1, 8, 3, 6, 8) “You are locked out.” comboLock(2, 2, 5, 6, 4) “You are locked out.” >>>comboLock(9, 8,…if the user click on create account or on login with empty text info (without entering the desired info like name and DOB before clicking on create account for example ) the program crashes, can you figure out why and fix it import tkinter as tkfrom datetime import datetime, timedeltaclass ATM: def __init__(self): self.accounts = {} def create_account(self): # Get user inputs first_name = first_name_entry.get() last_name = last_name_entry.get() dob = dob_entry.get() address = address_entry.get() debit_card = debit_card_entry.get() while len(debit_card) != 16 or not debit_card.isdigit(): debit_card = input("Invalid debit card number. Enter debit card number (16 digits): ") pin = pin_entry.get() while len(pin) != 4 or not pin.isdigit(): pin = input("Invalid pin. Enter 4-digit pin: ") # Create account and update GUI self.accounts[debit_card] = {"first_name":…Latest version of NetBeans IDE Java Development Kit (JDK) 8 Create a folder named Dahan_yoon in your local Create a new project named LabExer5A. Set the project location to your own The program shall: generate a random number from 1 to 50 for a player to guess; display a message that indicates whether the player’s guess is correct, too low, or too high; and prompt the user to keep on guessing until the correct value is entered Create a try-catch structure that will handle two (2) exceptions. These are when the user inputs the following: a number that is out of range (1 – 50) a letter or any non-numeric character Prompt the user so that he can guess again if an exception is Display the number of total Note: An invalid input (when an exception is thrown) is not considered a valid guess or attempt.
- O 0{ 48% 4G* VodaCom-SA ll 2:3 |_DO_SU1 CMPG 122 User Interface Programming I_Do Chapter 2: Introduction to Visual C# 1. Books and Authors (Pg. 130 - 131) Look at the following list of some famous books and their authors. Books Authors Margaret Mitchel Alex Haley Ayn Rand Gone with the Wind Roots Atlas Shrugged Create an application that gives the authors' name for a particular book. The form should have three labels, one for each book. When the user clicks a button, the application should display the name of its author in another Label control.can anyone please help me for my coding this is Microsoft visual studio code. whenever i try to open my programing it doesn't show a combox and the total student number can anyone please check it. My assignment: Purpose: Online Degrees This Windows application opens an Access database that displays information about 36 online college majors in a Windows form. The data in the database can be viewed, updated, and deleted. The application also computes the total number of students attending the college online. The user can select a major from a ComboBox list and the application will display the percentage of students participating in that major. Program Procedures: Algorithms, Processing, and Conditions: In a Windows application, the Access database file is opened and the user can view, add, and delete records as needed. The total student population and number of students in a particular major can also be displayed. 1. The user first views a Windows application that loads an Access…Using C# in Microsoft Visual Studio create an application that displays the total for a customer’s visit . The application should have the following value-returning methods: OilLubeCharges —Returns the total charges for an oil change and/or a lube job, if any. FlushCharges —Returns the total charges for a radiator flush and/or a transmission flush, if any. MiscCharges —Returns the total charges for an inspection, muf fler replacement, and/or a tire rotation, if any. OtherCharges —Returns the total charges for other services (parts and labor), if any. TaxCharges —Returns the amount of sales tax, if any. Sales tax is 6% and is charged only on parts. If the customer purchases services only, no sales tax is charged. TotalCharges —Returns the total charges. The application should have the following void methods, called when the user clicks the Clear button: ClearOilLube —Clears the check boxes for oil change and lube job. ClearFlushes —Clears the check boxes for radiator flush and…