//What is your input? ___
Q: *Walmart: Hourly pay at 45 dollars per hour. They only work 30 weeks out of the year and work 80…
A: Python used to answer this question
Q: Assume the following JavaScript program was interpreted using staticscoping rules. What value of x…
A: In static scoping, sub1() is called via sub2() function. Thus the function on the stack is on order…
Q: Create a C++ program that allows user to enter the following information: Name(string),…
A: C++ program to enter and display the student information: #include <iostream>using namespace…
Q: I am getting 2 errors when I run my c++ program. The first from IAP Test 2 which seems to be missing…
A: The errors marked in green are because you have not given 'a' in the lines. In the first case, in…
Q: Given a positive integer nDigits received from the user, list all binary numbers you can represent…
A: Use a function to convert the number from decimal to binary which provides reusability and make the…
Q: gram in Fortran Programming language. Please write a function that will return the maximum number…
A: The answer is below:
Q: In C programming language, the name of a variable is a string that can contain uppercase letters,…
A: - We need to highlight the number of variables than can be formed in c language of length 8.
Q: Big C , Enhanced eText .• E6.14 Write a function void bar_chart(double values], int size) that…
A: I cant figure out how to do the proportional thing you are asking, but I have coded up the basics,…
Q: What will be the output of the following C++ code? #include #include using namespace std; int…
A: There are various ways in C++ to concatenate strings. The '+' operator can be used between strings…
Q: Write the following functions. Each of these functions should have a single parameter -- accepting a…
A: CODE IN C++:- #include <iostream>#include<ios> // for…
Q: Write a program in C++ Jordan University of science and Technology has the following rules for…
A: #include <iostream>//header fileusing namespace std;int main() {//main method int n,m;…
Q: Here's my Instructions for my C++ program: Write a program that mimics a calculator. The program…
A: Modified program: #include <iostream> using namespace std; //declare the main function int…
Q: Write a c++ program that uses and and that prompts the user to input a string and outputs the…
A: #include <iostream>#include <cstring>#include <cstdio>using namespace std; int…
Q: Write a C++ statement that assigns the first four characters in a string variable named address to a…
A: Write a C++ statement that assigns the first four characters in a string variable named address to a…
Q: Hello, I needed help with this JavaScript function Thanks. function _three(radius, height) Create a…
A: logic:- define function taking radius and height Return 3.14156*radius*radius*height use…
Q: Please Write a program CODE in C 2. Write a function which takes a string of any length and returns…
A: The coding implementation is implemented below:
Q: function three (radius, height) Create a JavaScript function that meets the following requirements:…
A: Algorithm: Start Implement a function named _three() which takes radius and height as arguments…
Q: Write a C function named difDays() that calculates and returns the difference between two dates.…
A: Pseudo code:- Declare variable N We will create a structure name ”date” with variables of month day…
Q: In C++, What is wrong with the following code segment? 1. Given the following function to calculate…
A: //problems with given codeint boxVolume(int l, int w, int h)//function takes 3 int parameters and…
Q: Write a c++ program that uses , or that prompts the user to input two strings then compares it for…
A: Program: //header files #include <iostream> #include <cstring> using namespace std;…
Q: Write a complete C++ program that calculate a patient's treatment charge based on the types of…
A: C++ code: #include <iostream>using namespace std; float calculate_discount_charge(float a){…
Q: //my first C++ program #include using namespace std; int main() { cout << "Welcome to C++"; return…
A: In the given c++ program, cout is used to print the output on the screen in c++ program.
Q: Solve the problem in C++ (Financial application: compute the future investment value) Write a…
A: #include <iostream>#include <math.h>using namespace std; double…
Q: Write a line of C code to define a "string" variable called name that can hold up to eight…
A: Based on C
Q: C++ What will the following code segment output to the screen (assuming all else is proper)? cout…
A: EXPLANATION: The cout command prints the output at the screen. The text which is in the double…
Q: Q1. Fix the given C++ program with proper namespaces and scope resolution operators. */ #include…
A: Introduction of Program: The C++ program depicts the concept of the namespace and namespace provides…
Q: Task 2) Write and execute a C program using onlinegdp.com which is an online C compiler with…
A: C Program #include <stdio.h> int main(){ int price[5],qty[5];//array to store the price…
Q: n C, string arrays have a terminal character, whereas integer arrays do not. What makes you think…
A: Intro In C, string arrays have a terminal character, whereas integer arrays do not. What makes you…
Q: I need help writing a C++ code. I need help writing a function that accepts a C-string as an…
A: The words in a sentence are separated by space and thus we will check each and every character and…
Q: AaBbCcDd AaBbCeDd AaBbCc Aal 1 Normal 1 No Spac. Heading 1 Headi 2 Paragraph Using comments em…
A: I have written the code below:
Q: You need to write a C program that reads a user-entered string from the terminal and counts the…
A: To write the program in order. first notice each option and write program in rough. I am telling…
Q: I have a syntax error with my program code. Can someone help me? Here's the instructions for my C++…
A: The given code is perfectly working. The only need is to remove some extra lines which are shown…
Q: Write a function called HW7B, which returns a String. This String is the value of word 8 of the…
A: Since the book reference is not present, we give the code to find the nth word in a string.
Q: Create a small Grading System in C language that will ask the user to enter the following For…
A: formula : Quizzes and Assignments= ((Total Score on Quizzes + Total Score on Assignment / Total…
Q: What will be the output of the following C++ code? #include using namespace std; enum cat { temp =…
A: Question. What will be the output of the following C++ code? #include <iostream> using…
Q: Question 2: Remember only answer one question Design and write a C program that performs the…
A: It is defined as a powerful general-purpose programming language. It can be used to develop software…
Q: Write a program in C++ to print the college name, location and area code (Higher College of…
A: A required C++ program to print the college name, location, and area code using symbolic constants…
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: Assume the following JavaScript program was interpreted: Main calls fun2, fun2 calls fun3, fun3…
A: Fun1() can access variables a, b, c, d here b,c,d are local variables. Fun2() will access variables…
Q: Write a Python function Def readFloat(userPrompt) That displays a prompt string (followed by a…
A: Note: There are multiple questions.Answering the First one.If you want to be specific post questions…
Q: unctions like atoi Write a machine language program to output your first name on the output device.…
A: Q. C++ - No library functions like atoi Write a machine language program to output your first name…
Q: C++ and Python are required to achive the goal
A: Code: #include <iostream> #include <Python.h> #include <string> #include…
Q: rams of the following. Thank you. 1. Write C++ program to create class for a student. This program…
A: Sorry as per the bartleby guidelines we can solve only one question for you if you want to another…
Q: in c++ ; Given a positive integer nDigits received from the user, list all binary numbers you can…
A: Variable Used nDigits: Used for taking inputs from the user curr_int: Integer Equivalent to…
Q: //i need the explanation of the below c++ code in 30 minutes. #include using namespace std; class…
A: Program approach:- Using the header file. Using the standard namespace I/O. Static variables…
Q: Define a function CalcVal() that takes two integer parameters and returns the sum of the two…
A: #include <iostream>using namespace std; /* Your code goes here */ int main() { int input1,…
Q: The function can safely assume, all parameters passed are represented in meters (m). • The function…
A: The follwing is the content of the problem.js file, which is the answer to the questions given in…
Q: hi! can you make a flowchart from this c++ program wherein it's easy for people without the…
A: Let's solve this. Note: writing a flowchart does not mean giving all information in the flowchart.…
Q: c. Refer to the C++ program in Figure 1.1Gad answer Question 1e (1) - (xi). Otinclude tinclude…
A: input radius1 and radius2 it basically calculates the volume of two sphere volume of sphere is =…
Q: Kampar Restaurant's Menu (1) Spring Rolls (2) Honey Chilli Potato |(3) Hakka Noodle Enter your…
A: /*C program to define function to display the menu, then prompt users to enter their choice (integer…
Consider the following C++ code and fill the blanks:
string name, phrase;
cout<<“Please enter your full name:” <<endl;
cin>>name; //What is your input? ___ ________________________
phrase = “ loves holidays!”
phrase = name + phrase;
cout<<phrase<<endl;
Trending now
This is a popular solution!
Step by step
Solved in 2 steps
- in c language 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 functionin C++, the definition of any variable (e.g. int x;) tells the compiler about ________. all of the above the variable's name and its value the variable's name the type of data a variable will hold the variable's data type and its valueMost C++ statements end with a(n)________.
- 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 functionin c++ language Write a C++ function named greater_10. This function returns an int and has two integer arguments, number1 and number2. greater_10 returns 1 of the sum of number1 and number2 is greater than 10 otherwise return -1.C++ programming 46.If a program calls a function with a reference argument and the function alters the argument, is the value in the caller affected? ________________________________________For example:the function:int incr(int& n) { n += 1; return n; }the caller of the function:int k = 3; int j = incr(k);
- In C++ Programmin langauge: Reference variables are defined like regular variables, except you place an ________ in front of the name. This character indicates that the value is being passed by reference.Every C++ program must have a function named __________.Assignment #2 Instructions: Through this programming assignment, the students will learn to do the following: Learn to work with command line options and arguments Gain more experience with Makefiles Gain more experience with Unix Learn to use some of the available math functions available with C Usage: mortgagepmt [-s] -r rate [-d downpayment] price In this assignment, you are asked to perform a mortgage payment calculation. All information needed for this will be passed to the program on the command line. There will be no user input during the execution of the program You will need a few pieces of information. The price of the home and the amount of the down payment. You will also need to know the interest rate and the term of the mortgage. To figure your mortgage payment, start by converting your annual interest rate to a monthly interest rate by dividing by 12. Next, add 1 to the monthly rate. Third, multiply the number of years in the term of the mortgage by 12 to calculate the…
- 46. The function from which the execution of a C++ program starts is _______.PJ 6 – Super Calculator Please write a C++ program that can perform the following 6 valid operators for 2 numbers: N1 and N2. You need to prompt the user to enter a number, an operator, and another number. To simplify your program, please declare N1, N2, and result as double-floating numbers, and operator as char. Please see the sample test below to design your application program properly. This program is a super calculator for users to enjoy. Your program must continue asking for inputs from the user. If the user enters @' as the operator, you must thank the user and then exit the program immediately. As you can see, PJ 6 is to add some more user- friendly features to the Project 5 (PJ 5) - Simple Calculator. The O valid operators for this super calculator are as follows: 1. + for addition of N1 and N2. Therefore, result = (N1 + N2). 2. - for subtraction of N2 from N1. Therefore, result = (N1 – N2). 3. * for multiplication of N1 with N2. Therefore, result = (N1 * N2). for…Ineed help programming this C++ program: Write a C++ console application that calculates and displays the charges for using a parking garage. The parking garage charges a $3.00 minimum fee to park for up to three hours. The garage charges an additional $0.85 per hour or fraction of an hour in excess of three hours. The maximum charge for any given 24-hour period is $20.00. You may assume that no car parks for longer than 24 hours at a time. Your program will use a function named calculateCharges to determine the charges based on the amount of time the car was parked. Your program will prompt the user for the number of hours parked in the garage. It will then display the parking charges for that transaction. Keep track of the number of transactions as well as accumulating the number of hours parked and the parking charges. Your program will execute repeatedly until the user enters a value for the number of hours parked that is less than or equal to zero. Your program will then display…