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
- Following code in C using random Name Reg no and highschool name Use switch case in C language to do the following: Create a restaurant with the name “Your Name - Reg_No – Name of your highschool” The restaurant should come with the options of delivery and take away and the choice should be displayed as “Delivery – Registration No” and “Takeaway – Name” Each option should have the same menu and an extra 15% charge be included if a customer wants home delivery Both menus should have two items that are customizable, such as a burger can have chillies removed, cheese added and extra mayonnaise. The user should have the option of choosing multiple items with multiple quantity. Print a bill in the end.C++ Language code and explain Zodiac Sign Identifier - Ask the user's birth month and birth day and return the corresponding Zodiac Sign he/she belongs: Evaluate the user's birth month and day by checking the following: If born from, Mar 21 to Apr 19 - Aries Apr 20 to May 20 - Taurus May 21 to Jun 20 - Gemini Jun 21 to Jul 22 - Cancer Jul 23 to Aug 22 - Leo Aug 23 to Sep 22 - Virgo Sep 23 to Oct 22 - Libra Oct 23 to Nov 21 - Scorpio Nov 22 to Dec 21 - Sagittarius Dec 22 to Jan 19 - Capricorn Jan 20 to Feb 18 - Aquarius Feb 19 to Mar 20 - Pisces Example: What is your month of birth? 1 - January (31 days) 2 - February (27 days, if Leap Year 28 days) 3 - March (31 days) 4 - April (30 days) 5 - May (31 days) 6 - June (30 days) 7 - July (31 days) 8 - August (31 days) 9 - September (30 days) 10 - October (31 days) 11 - November (30 days) 12 - December (31 days) Please enter your birth month: 8 Please enter day of your birth: 16 Please enter your year of birth: 1997 Your birthday is every…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" Else
- Programing language is C# 6. Hospital Charges Create an application that calculates the total cost of a hospital stay. The daily base charge is $350. The hospital also charges for medication, surgical fees, lab fees, and physical rehab. The application should accept the following input: • The number of days spent in the hospital • The amount of medication charges • The amount of surgical charges • The amount of lab fees • The amount of physical rehabilitation charges Create and use the following value-returning methods in the application: • CalcStayCharges—Calculates and returns the base charges for the hospital stay. This is computed as $350 times the number of days in the hospital. • CalcMiscCharges—Calculates and returns the total of the medication, surgical, lab, and physical rehabilitation charges. • CalcTotalCharges—Calculates and returns the total charges.in c language all of it in one program Write a program which performs the following actions: Write the header of the C program Write the beginning of the main function Initialize a string called first_string with the constant value "C programming is nice**" using a string pointers Initialize a string called second_string with the constant value "C language is difficult" using a string pointer Display first_string and second_string in two consecutive lines Display a message that shows if the two strings have the same length (hint: use sizeof). Assume now that both strings have the same size. Write only three statements to swap the two strings’ contents (swap means the content of the first string becomes the content of the second string and vice-versa) Display again the two strings to check whether they have been swapped Write the correct symbol to close the main functionMail Delivery Service Create a Python application, Delivery.py for a delivery service. The program should prompt the user for the following inputs. A code representing the delivery area. A local delivery is code 1, and a long distance delivery is code 2. A weight, in pounds of the item to be delivered. The program will then display the fee for the item based on the delivery type and its weight. The fee for the delivery, as follows: 1. Distance Fee (S) Weight Under 5 pounds 5 to 20 pounds Over 20 pounds Under 5 pounds 5 pounds or more 1 12.00 1 16.50 1 22.00 2 35.00 2 47.95 For examples: (These outputs are from different runs. They are not from a loop.) Delivery Service Enter Distance (1) Local - (2) Long Distance: Enter weight: 4.9 ------ Summary Delivery Type: Local Weight: 4.9 pounds Fee: $12.00 Delivery Service Enter Distance (1) Local - (2) Long Distance: Enter weight: 4.9 --------- Summary Delivery Type: Long Distance Weight: 4.9 pounds Fee: $35.00 Delivery Service Enter Distance…
- IN C LANGUAGE CODE:Write a code snippet that can arrange the alphabets of a name entered by user in alternate cases.Note: Ignore white spaces. Input String:Timothy Olyphant Output String :TiMoThY OLyPhAnT Input String: Olga Kurylenko Output string: OlGa KuRyLeNkOLanguage: Processing //Constants controlling the game.//The number of sides should not be changed since the//graphics only handles from 1-6 dots.//In this version, the number of dice could be varied.final int NUM_SIDES=6; //Sides on the dicefinal int NUM_DICE=5; //The number of dice used //-------- Lab 10 Bronze ------------------------------------- //*****INSERT YOUR LAB 10 BRONZE CODE HERE***** bronze code attached as photo due to word count //***** ALSO CHANGE mouseClicked() IN THE PLACE INDICATED *****//***** TO MATCH THE NAME OF YOUR DICE ARRAY VARIABLE ***** //-------- Lab 11 Bronze ------------------------------------- int[] freqCount(int[] roll){//Count the frequencies of each number (1..NUM_SIDES) in//the given dice roll, returning the result as a array of//NUM_SIDES integers. Note that freqs[0..5] are the frequencies//of 1..6. The dice show 1-6 but subscripts must go 0-5. }//freqCount int maxOfAKind(int[] freqs){//Find and return the largest integer in an array of integers.…C++ Visual 2019 Write a program that determines which of five geographic regions within a major city (north, south, east, west, and central) had the fewest reported automobile accidents las year. It should have the following two functions, which are called by main: int getNumAccidents() is passed the name of a region. It asks the user for the number of automobile accidents reported in that region during the last year, validates the input, then returns it. It should be called once for each city region. void findLowest() is passed, the five accident totals. It determines which is the smallest and prints the name of the region, along with its accident figure. Input Validation: Do not accept an accident number that is less than 0.
- Please answer in C# Write a program named TemperaturesComparison that allows a user to input five daily Fahrenheit temperatures that must range from −30 to 130. If a temperature is out of range, require the user to reenter it. If no temperature is lower than any previous one, display a message Getting warmer. If every temperature is lower than the previous one, display a message Getting cooler. If the temperatures are not entered in either ascending or descending order, display a message It’s a mixed bag. Finally, display the temperatures in the order they were entered, and then display the average of the temperatures. Your program's output should look like the following: Getting warmer: 70 74 77 78 81 Average: 761. Design and implement an application that reads an integer value representing a year input by the user. The purpose of the program is to determine if the year is a leap year (and therefore has 29 days in February) in the Gregorian calendar. A year is a leap year if it is divisible by 4, unless it is also divisible by 100 but not 400. For example, the year 2003 is not a leap year, but 2004 is. The year 1900 is not a leap year because it is divisible by 100, but the year 2000 is a leap year because even though it is divisible by 100, it is also divisible by 400. Produce an error message for any input value less than 1582 (the year the Gregorian calendar was adopted). 2. Modify the solution to the previous project (i.e., Leap year) so that the user can evaluate multiple years. Allow the user to terminate the program using an appropriate sentinel value. Validate each input value to ensure it is greater than or equal to 1582.Asap!!C# languageA bank is offering Gold and Silver Credit Cards to its customers. Gold Card allows a credit limit up to 100,000 rupees per month while the Silver Card offers a credit limit up to 50,000 rupees per month. Design a program which will take following inputs from user. Account_Title CNIC_Number Account_Number Card_Type Credit_Amount If user enters “Gold”, an object of Gold type would be instantiated, whereas, if the user enters “Silver”, an object of Silver type would be instantiated. Upon requesting of credit from bank, the system will check the limit depending on the card type of the user. If the Credit_Amount entered by user exceeds the limit, a failure exception would be shown along with the account information and if the Credit_Amount is within the defined limit, the system would prompt a Success message with account information