What does it calculate in terms of a, b, and c
Q: I ned help programming this C++ program: Write a C++ console application that calculates and…
A: C++ Code: #include <iostream>using namespace std; float calculateCharges(int hours) { //…
Q: Java Script You go to a jewelry shop and try to find the most expensive piece of jewelry. You write…
A: Algorithm - Design a method with one argument as a string. Now use the below logic to solve the…
Q: Using JavaScript and TypeScript Do the following : 1.Write a typescript function that takes in a…
A: Answer: 1. TypeScript: var studentName = prompt('Enter student number'); var balance: number =…
Q: #1. Airplane Seating Assignment. Write a C# Windows App that can be used to assign seats for a…
A:
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: Code a Mortgage calculator using c++ and Microsoft visual Studio create a new project called…
A: Please find the answer below :
Q: Instructions: Write the following programs in C# using concepts learnt in this chapter and submit…
A: C is a powerful general-purpose programming language which can be used to develop software like…
Q: Create a VB.NET Console Application that does the following: Create a variable of Integer data type,…
A: ### CODE ### Module GradeConverter Sub Main() Dim marks As Integer Dim grade As…
Q: 1. Suppose you have a group of people who need to be transported on buses and You can charter a bus…
A: start print "TRANSPORTATION CENTER\n"; cout<<"---------------------------------------\n";…
Q: Question 1 Create a VB.NET Console Application that does the following: Create a variable of Integer…
A: Module VBModule Sub Main() Dim marks as integer' to declare marks as integer Dim grade as…
Q: A student has the following function: function result=myfun1(a) reciprocal=5/a +a^a;…
A: Reciprocal: A reciprocal in maths is one divided by the number in question (also known as the…
Q: C PROGRAMMING ONLY) 4. Man's Best Friend by CodeChum Admin We all know what man's best friend is.…
A: #include <stdio.h>#include <stdlib.h> typedef struct Dog{ char *breed;}Dog; void…
Q: Visual Studio 2019 how to loop this code in c# 8.0
A: The program given her is to do the conversion between the units(meter, kilometre, centimetre,…
Q: (C PROGRAMMING ONLY) 4. Bored Person by CodeChum Admin Help! Our people in this tech universe we…
A: Program Explanation : First we have to create two structures called phone and person. 2. Then…
Q: Java Script You go to a jewelry shop and try to find the most expensive piece of jewelry. You write…
A: The Javascript code is given below with output screenshots
Q: Instructions 1. Write a console application that uses at least five (5) different methods of Math…
A: Code is given below :
Q: Java Script You go to a jewelry shop and try to find the most expensive piece of jewelry. You write…
A: Algorithm - Design a method with one argument as a string. Now use the below logic to solve the…
Q: Java Script You go to a jewelry shop and try to find the most expensive piece of jewelry. You write…
A: Algorithm - Design a method with one argument as a string. Now use the below logic to solve the…
Q: A check is a well-known financial document that is used in place of handing a person or company…
A: ALGORITHM: Step1: Using JAVA program we create a class as CheckProducer. Step 2: Here in coding we…
Q: You are required to develop a program in C that will simulate a mathematics quiz game. The game will…
A: Textual Code : #include<stdio.h> #include<stdlib.h> #include<conio.h> struct…
Q: I need help for Microsoft Visual C#, 7th edition, chapter 5 debugging exercise 5-2 // Program asks…
A: // Program asks user to enter a stock number // If the stock number is not 209, 312, or 414 the…
Q: Virat Kohli and Anushka Sharma are a well-known celebrity couple for relationship goals. Their fans…
A: Create the java program as follows: Import java.util.Scanner package. In the main method, create…
Q: Three-letter acronyms are common in the business world. For example, in Java you use the IDE…
A: Program description : The java program, ThreeLetterAcronym.java prompts users to enter three words…
Q: Document1 - Word Fun math practice 1.8 squared is 64 You Python programming teacher wants to see you…
A: The algorithm is given below: start read name of user print game information message ask user to…
Q: Input 1. The age of the Person 2. The gender of the Person Output Enter Person's age: 24 Enter…
A: I have provided C CODE along with CODE SCREENSHOT and 2 OUTPUT SCREENSHOTS-------------
Q: Write the syntax for the MsgBox function. 2. Enumerate the different arguments of the MagBox…
A: Actually, the function is a group of statements.
Q: Creates a C++ application that converts military time to standard time (am/pm) using the modulus…
A: Coded using C++.
Q: Write a function in Visual basic application that can be used to calculate the balance (change) to…
A: a function BalanceSheet is taken into consideration. Item1 As Integer, Item2 As Integer, Item3 As…
Q: Please help me debug my C++ code. My code is: //include statement(s) #include //using…
A: The following is the solution
Q: string that contains space separated words, write an application that displays the words in…
A: Java code to perform the given question is as given below.
Q: A variable name in the programming language Visual Basic must begin with a letter (uppercase or…
A: Answer:Number of letters (uppercase + lowercase) = 26 + 26 = 52Number of digits (0 to 9) = 10Number…
Q: 1-Develop a C# program using Visual Studio for Game retail stores using the information provided in…
A: C# code :- using System.Linq; using System.Text; using System.Threading.Tasks; using…
Q: Visual Basic. Write the definition of a function named quadratic that receives three double…
A: Formula for quadratic equation:
Q: Instructions 1. Write a console application that initializes at least five (5) variables or…
A: How to make a console application in C# Open the C# application in Visual Studio. Then go to File…
Q: In C#, how can I recreate this into a Windows form Application instead of a console application?…
A: using System;public class RecExercise4{static void Main(){Console.Write("Input any number (ranging…
Q: rite a C program for flight seat selection. Your program must keep track of available seats, display…
A: Required: Write a C program for flight seat selection. Your program must keep track of available…
Q: Create a c++ program that will compute for the area of a Triangle, Square, Rectangle, Ellipse, and…
A: The answer is..
Q: Java Script You go to a jewelry shop and try to find the most expensive piece of jewelry. You write…
A: In this problem, we need to design a javascript program. Input - one map with multiple arguments…
Q: Three-letter acronyms are common in the business world. For example, in Java you use the IDE…
A: Approach Built-in methods used: toUpperCase() length() charAt()
Q: 2. Create a module named grading that contains the following two functions: • calc_average() - this…
A: Answer : Here I have provided you the python code as per your requirement, I have create Separate…
Q: Must create an interactive program (in C language) in which the computer generates a random number…
A: Here you need to ask the user for the input which number you can then compare to check with the…
Q: This is a program in C language. Help me debug this program. it has 3 errors. Please upload a…
A: Given program is a C++ program, not C program. Because iosteam, cout, cin all these are used in C++.…
Q: Problem Description Design a flowchart using Flogorithm, to solve the following problem, then open…
A:
Q: q1 part c need code in c++ visual studio Pre-increment the variable x by 1, then add it…
A: answer :-- here ++x is pre-increment of x by 1 and then add it into total total=++x=total
Q: Write a C++ application that inputs one number consisting of five digits from the user. You will…
A: Task is to take a user input for a five digit number. Check if the number is five digit or not. If…
Q: Please Write a function to validate please make the code in java like this function validate()…
A: <!DOCTYPE html> <html> <head> <style> input {…
Q: Develop the program with Graphics properties
A: Code: #include<iostream> #include<conio.h>#include<graphics.h> using namespace…
Q: ite a function named "sum_from_to" that takes two integer arguments, call them "fi. st", and returns…
A: Lets see the solution.
Q: Predefined Function: ceil(), floor(), rand(), srand() 1. Create a program that will round off a…
A: C Program for above : #include <stdio.h> #include <math.h> int main() { //get…
Q: Name: \Mark Ki\ ·Age: '8' Yrs old. Address: Bacolod city Gender: Male
A: Question a. This is an assessment of what you have learned in java structure. Write a program that…
Addition of Two Numbers
Adding two numbers in programming is essentially the same as adding two numbers in general arithmetic. A significant difference is that in programming, you need to pay attention to the data type of the variable that will hold the sum of two numbers.
C++
C++ is a general-purpose hybrid language, which supports both OOPs and procedural language designed and developed by Bjarne Stroustrup. It began in 1979 as “C with Classes” at Bell Labs and first appeared in the year 1985 as C++. It is the superset of C programming language, because it uses most of the C code syntax. Due to its hybrid functionality, it used to develop embedded systems, operating systems, web browser, GUI and video games.
Consider the Visual Basic code below. What does it calculate in terms of a, b, and c? In Visual Studio language
Private Function CalcQ2(a As Integer, b As Integer, c As Integer) as Integer
If a <= 1 Then
return 5 'Assume that CalcQ2 always starts with a > 1
Else
Return (c * b) + CalcQ2(a-1, b, c)
End If
End Function
Step by step
Solved in 3 steps with 1 images
- (C PROGRAMMING ONLY) 4. Man's Best Friendby CodeChum Admin We all know what man's best friend is. A dog! ? Let's create one in our program using the pre-existing struct Dog provided. Instructions: In the code editor, you are provided with the definition of a struct Dog. This struct needs a string value for its breed. Furthermore, you are provided with a displayDog() function which accepts a struct Dog as its parameter.Your task is to create a Dog, take in a string user input, and then set it as the Dog's breed.Finally, call the displayDog() function and pass that Dog you created.Input 1. The breed of the Dog Output Enter·the·breed·of·the·Dog:·Golden·RetrieverArf·arf!·I'm·a·Golden·RetrieverVisual Studio 2019 how to loop this code in c# 8.0 using System; namespace ConsoleApp1{class Program{static void Main(string[] args){double cm, meter, kilometer, mili;//primero se declaran las variablesConsole.WriteLine("Introduzca los kilómetros");kilometer = Convert.ToInt32(Console.ReadLine());Console.WriteLine("Introduzca los metros");meter = Convert.ToInt32(Console.ReadLine());Console.WriteLine("Introduzca los centimetros");cm = Convert.ToInt32(Console.ReadLine());Console.WriteLine("Introduzca los milímetros");mili = Convert.ToInt32(Console.ReadLine());Console.WriteLine("Seleccione una opción");Console.WriteLine("\ta-Conversion de kilometros a: ");Console.WriteLine("\tb-Conversion de metros a: ");Console.WriteLine("\tc-Conversion de centimetros a: ");Console.WriteLine("\td-Conversion de milimetros a: ");Console.Write("¿Tú opción? ");switch (Console.ReadLine()){case "a":Console.WriteLine("kilómetro a metro:" + (meter = kilometer * 1000.0));Console.WriteLine("kilómetro a…Programming Language: C++ I need the codes for extRomanType.cpp, extRomanType.h, main.cpp, romanType.cpp, romanType.h // I will definitely rate and give thumbs up. Here are the initial codes, this might help in building the program. main.cpp #include <iostream> #include "extRomanType.h" using namespace std; int main() { extRomanType num1("XXXIV"); extRomanType num2("XV"); extRomanType num3; cout << "Num1 = " << num1 << endl; cout << "Num2 = " << num2 << endl; cout << "Num1 + Num2 = " << num1+num2 << endl; cout << "Num1 * Num2 = " << num1*num2 << endl; cout << "Num1 - Num2 = " << num1 - num2 << endl; cout << "Num2 - Num1 = " << num2 - num1 << endl; cout << "Enter two numbers in Roman format: "; cin >> num1 >> num2; cout << endl; cout << "Num1 = " << num1 << endl; cout…
- Please rewrite this C program in 2019 Visual Studio where it works the same but looks completly different such as different variable names and different commands if possible and please add comments. #include <stdio.h> int main() { doubleCubicInchesPerCubicFeet = 1728; doubleheight, width, depth; doubleVolumeInInches, VolumeInCubicFeet; printf("Input height : "); scanf("%lf",&height); printf("Input width : "); scanf("%lf",&width); printf("Input depth : "); scanf("%lf",&depth); VolumeInInches = height * width * depth; VolumeInCubicFeet = VolumeInInches / CubicInchesPerCubicFeet; printf("Volume of fridge :: %.2lf ft^3",VolumeInCubicFeet); return 0; }Here is the question: Three-letter acronyms are common in the business world. For example, in Java you use the IDE (Integrated Development Environment) in the JDK (Java Development Kit) to write programs used by the JVM (Java Virtual Machine) that you might send over a LAN (local area network). Programmers even use the acronym TLA to stand for three-letter acronym. Write a program that allows a user to enter three words, and display the appropriate three-letter acronym in all uppercase letters. If the user enters more than three words, ignore the extra words. Here is the code given: import java.util.*; public class ThreeLetterAcronym { public static void main(String[] args) { // Write your code here } }Hello, I am having the most difficult understanding the solution to this problem: It is programming problem number 4 from C# 5th edition Tony Gaddis DRIVER’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: B D A A C A B A C D B C D A D C C B D 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…
- Create a C++ console project in Visual Studio or another tool. Create an application that converts a student’s grade percentage to a letter grade following the rules below: Grade Percentage A 100-90 B 89-80 C 79-70 D 69-60 F 59-0 Your code should prompt for and get the student’s percentage as input, and output an error message or a letter grade. Note: Your code should test these cases: Percentages less than 0 – error message. Percentages greater than 100 – error message. Percentages in the range 0-100 – letter grade. Please make sure your code can handle these cases. Tips: Use operator and ‘||’ for the conditional control statement. Use instruction ‘if’ for conditional control. Make the following edits to the code file: Complete the header comment. 2) Declare two double variables: grade and percentage. 3) Assign the value of percentage from input. 4) End program if percentage is smaller than 0 and…A code in c++ or python A program that asks you to enter the name of a movie or series, and then proceed to ask how much you rate the movie or series on a scale of 1 to 10, then ask what rating you would give the series or movie, and have options for example: G, PG, PG-13, R and finally, a thank you message for your comments appears.C# A large company pays its salespeople on a commission basis. The salespeople receive $200 per week plus 9% of their gross sales for that week. For example, a salesperson who sells $5,000 worth of merchandise in a week receives $200 plus 9% of $5,000, or a total of $650. You’ve been supplied with a list of the items sold by each salesperson. The values of these items are as follows: Item Value 239.99 19.75 99.95 350.89 Develop a C# application that inputs one salesperson’s items sold for the last week, then calculates and displays that salesperson’s total sales. There’s no limit to the number of items that can be sold by a salesperson. You do not have to implement this with classes and objects. Technical Requirements: Prompt the user to enter the salesperson’s name, and store this name in a variable. Prompt the user to enter an item number and a quantity sold of that item. Store these two entries in two separate variables called “intItem” and “intQuantity”. Using a DO-WHILE…
- Create a program that calculates the total cost of a restaurant bill, including tax and tip.Explanation: First, the program should ask the user for the cost of the meal. Then, the program should ask for the tax rate (in percentage) for the meal. Next, the program should ask for the tip rate (in percentage) for the meal. The program should then calculate the total cost of the meal, including tax and tip, and display the result to the user. In c# language pleaseIn C# The result of the following is __.string str = "Visual C# 2010 and Visual C# Express";MessageBox.Show(str.IndexOf("#").ToString()); Question 7 options: 5 6 7 8Change the calendar printing program so it starts the week on a Sunday. Also make it print a newline at the end (but only one). This program had to utilize the code from page 61 and make the necessary changes for printing it. The code itself would display the calendar and you would not have to use the println function as you would have to do that for every single month and year. The program would grab the month a year you selected and display it. import java.time.DayOfWeek;import java.time.LocalDate; public class Calendar { public static void main(String[] args) {// TODO Auto-generated method stubint month = 0;int year = 0;LocalDate date= LocalDate.of(year, month, 1);while (date.getMonthValue() == month) {System.out.print(date.getDayOfMonth());date = date.plusDays(1);}DayOfWeek weekday = date.getDayOfWeek();int value = weekday.getValue();for (int i = 1; i<value; i++);System.out.print(" ");int value1 = date.getDayOfWeek().getValue(); import calendar;y = int(input("Input the years…