Q// write a program in C language to name a row with the name (Snapne) to calculate the total area of the figure below. For each geometric shape, use a function to calculate its share area, noting that the area of the triangle = 1/2 the base * height
Q: Q/ Write a program in C# that lets the user to define the number of rows and columns. Then, the…
A: Declare two integer variables to hold the number of rows and columns of the matrix respectively.…
Q: Create a program in c ++ using the concepts about Pointers (Pointers) Given a string "Hello…
A: The problem is based on the basics of pointers in C++ programming language.
Q: In c++ create a program that will take user input of integers via the console. Enter a negative…
A: #include <iostream>#include <vector>using namespace std;// function to print histogram//…
Q: write a program in C that will find the alphabetically largest character from a string. define a…
A: Programming is a way to instruct the computer devices to operate. Every computer needs a set of…
Q: Create a function that accepts a string (of a person's first and last name) and returns a string…
A: Coded using C#.
Q: A mechanical pump whose rated speed is cfm 15 = Sm (connected by a pipe and valve to a vessel If you…
A: Here, Code instruction is given.
Q: Q1/ Write a program in C++ by using function to remove the spaces before and after the entered text,…
A: Start Accept string from the user run for loop to remove preceeding spacess run for loop to remove…
Q: nt fact(int x); BIUS AV Slides Drawing Editi Aa AA %3D roid main() Font Paragraph int result;…
A: According to the Question below the Solution: Output:
Q: IN C PROGRAMMING LANGUAGE PLEASE AND COMMENT EVERY LINE PLEASE SO I CAN UNDERSTAND Write your own…
A: #include <stdio.h>//function that takes string of words seperated by space, //then splits it…
Q: COMSATS is a well famous University for Computer Science. It Keeps the Student’s record in a…
A: Given: COMSATS is a well famous University for Computer Science. It Keeps the Student’s record in a…
Q: Graph plotting write a code (can be in c ++, python, c # ...) that graphically represents the…
A: Given: Graph plottingwrite a code (can be in c ++, python, c # ...) that graphically represents the…
Q: Write a program that reads in a line consisting of a student’s name, Social Security number, user…
A: #include<iostream> using namespace std; int main(){ //input all the values string…
Q: in C++ Write a program to define two character arrays initialized from string literals. Now define a…
A: #include<iostream> #include<string.h> using namespace std; class ConcString {…
Q: ite a C program to find words in a word search. User types the word and the program confirms which…
A: Lets see the solution.
Q: The problem is from Introduction to Programming and Data Structures with C++, 4th edition…
A: Please refer below for your reference: Language used is C++ 1/8 increment means 0.125 so…
Q: vii) In the C language, write a program to print all uppercase alphabets in the output. Separated…
A: In the C language, write a program to print all uppercase alphabets in the output. Separated two…
Q: Question 10: In c language. Take input an integer n from user and then take input n? integers, store…
A: Given: An integer n followed by n2 matrix which are member of an n*n 2-D array. Requirement- Print…
Q: Q1: Write a C+ program that contains the following function: [1] A function to Multiply two [M]*[N]…
A: A00 A01 A02 A10 A11 A12 A20 A21 A22 B00 B01 B02 B10 B11…
Q: write a program in C++ using rows Calculate Volume and Surface Area of Rectangles
A: c++ program; #include<iostream #include <cmath> using namespace std; int main() {…
Q: Q1 / write a program in C++ using rows Calculate Volume and Surface Area of Rectangles
A: Actually, program is a executable software that runs on computer.
Q: Create a function that takes a number that represents a person's programming language score, and…
A: Since no programing language is mentioned, I am using python. As per the given question, we need to…
Q: Create a function that takes a number that represents a person's programming language score, and…
A: In this problem, we need to design a code in javascript Input - integer Output - array Logic -…
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 this program in C programming language. Also provide a screenshot that it is working. Here is…
A: The problem is based on the basics of sorting techniques in C programming language.
Q: Programming C++ full question: Write a program that prints the multiplication table but inserts a…
A: Given: Write a program that prints the multiplication table but inserts a randomly generated…
Q: Write a function in Swift programming language that takes an integer array as parameters and returns…
A: Write a function in Swift programming language that takes an integer array as parameters and returns…
Q: Write a function that takes all even-indexed characters and odd-indexed characters from a string and…
A: In this problem, we need to design the program in the Swift programming language. Logic - for c…
Q: write this program in C++ language. Assume that you want to generate a table of multiples of any…
A: Program: //include the header file #include<iostream> using namespace std; //definition of…
Q: Write a function that takes all even-indexed characters and odd-indexed characters from a string and…
A: In this problem we need to design the code in the Swift programming language. Algorithm - Take…
Q: //the language is c++ Implement function to tokenize a string. std::vector…
A: A required C++ program is as follows, #include <iostream> #include <string> #include…
Q: Q1) write visual C# program to find the value of Y such that, C = POK, let the value of K=10011110 y…
A: using system; using system.Text; using system.Security.cryptography; namespace…
Q: A C program. Which circle has two data members, a Point representing the center of the circle.(using…
A: #include<stdio.h>#include<math.h> typedef struct{ float x; float y;}Point; typedef…
Q: Q2 / Write a program in C ++ using rows to calculate the remaining area of a square of side length…
A: #include<iostream.h>#include<conio.h>void main(){clrscr();int…
Q: Write a C++ program to find the common elements between two arrays (string values)
A: Here I have asked the user to enter the size of the array and stored the value into a variable named…
Q: Write a function to create a dict whose keys are the characters that occur in a string, and whose…
A: Write a function that takes a string as input. Now the function will return a dictionary variable…
Q: Create a function that takes a number that represents a person's programming language score, and…
A: Algorithm - Take input from user Use that input into the method argument. use the below logic…
Q: in C++ Write an inductive function, called IndFn, for adding 12+10+8+6+4 Write a function with a…
A: Note: This code should be rewritten instead of copying to the compiler otherwise it will throw a…
Q: the longest sequence of increasing numbers. Use the function: void longestSeq
A: Below the C program for the longest sequence of increasing numbers
Q: Create a function that takes a number that represents a person's programming language score, and…
A: Since the programming language is not mentioned, I have done the code using JavaScript.
Q: Create the function that takes a list of dictionaries and returns the sum of people's budgets.…
A: def getTotalBudget(people): cont = 0 for person in people: cont += person["budget"]…
Q: Write a C++ program to read the name, number and salary of 5 employees using array of structures,…
A: The program is implemented with structured approach. There are three user defined functions first to…
Q: A spoonerism is when the first letters / sounds of two words are transposed onto one another. Create…
A: Since the programming language is not mentioned, I have done the code using JavaScript.
Q: COMSATS is a well famous University for Computer Science. It Keeps the Student’s record in a…
A: Code: #include <stdio.h>#include<stdlib.h>int n=1000;/*Student structure:I. Reg No…
Q: A mechanical pump whose rated speed is cfm 15 = Sm (connected by a pipe and valve to a vessel If you…
A: Here, Code instruction is given.
Q: COMSATS is a well famous University for Computer Science. It Keeps the Student’s record in a…
A: Given: COMSATS is a well famous University for Computer Science. It Keeps the Student’s record in a…
Q: Create a function that takes a number that represents a person's programming language score, and…
A: In this problem, we need to design a code in javascript Input - integer Output - array Logic -…
Q: In C programming language Question (Strings) Write a function find_Substring() that finds a…
A: #include <stdio.h>void find_Substring(char *s1 , char *s2){ int m = 0 , n = 0; int i , j…
Q: Write a C++ program that reads the name, ID and average marks of 5 students using array of…
A: Hey there, I am writing the required solution based on the above given question. Please do find the…
Step by step
Solved in 3 steps with 1 images
- Write a program that reads in a line consisting of a students name, Social Security number, user ID, and password. The program outputs the string in which all the digits of the Social Security number and all the characters in the password are replaced by x. (The Social Security number is in the form 000-00-0000, and the user ID and the password do not contain any spaces.) Your program should not use the operator [] to access a string element. Use the appropriate functions described in Table 7-1.(Civil eng.) Write a C++ program to calculate and display the maximum bending moment, M, of a beam that’s supported on both ends (see Figure 3.8). The formula is M=XW(LX)/L, where X is the distance from the end of the beam that a weight, W, is placed, and L is the beam’s length. You program should produce this display: The maximum bending moment is xxxx.xxxx The xxxx.xxxx denotes placing the calculated value in a field wide enough for four places to the right and left of the decimal point. For your program, assign the values1.2,1.3,and11.2toX,W,andL.In C programming language Question (Strings) Write a function find_Substring() that finds a substring into a string. Pass array s1 and s2 to this function and prints if the substring is present or not. Expected Output 1: Enter string This is a javascript Enter substring script The substring is present Expected Output 2: Enter string This is a javascript Enter substring Jscript The substring is not present
- In C programming language: Write a function that takes 3 int arguments and returns the largest of the 3.Programming Assignment Create a program application using C#, C++, or your preferred software for a small Employee Payroll system using one dimensional arrays. Include the following for at least 5 employees for a period of 3 months (assume the employees are paid monthly) a. hourly wages b. monthly earnings c. annual earnings d. monthly deductions (look the basic deductions) e. annual deductions f. net pay g. gross payQ3 Write a program in C ++, with a row in the name (Shape), to calculate the total area of the figure below. For each geometry, use a function to calculate its participation area, noting that the area of the triangle = 1/2 (base * height)
- Programming Language: C Create a function(or you can do this on your main function) that users input a string, interger1 and integer2 (index, length) and output the substring based on index and length. For example the user will have to put Example 1) hello world my friend, 14, 7 have to output' friend' (you can ignore") Example2) hello world my friend, 0, 5 have to output 'hello' (you can ignore") Example3) hello world my friend, 14, 15 have to output' friend' (you can ignore")python function!: a function called popular_color with one parameter, of type dict[str, str] of names and favorite colors. The return type is a str and it is the most commonly occuring color. If two colors are tied for popularity, the first color shown will be picked.c language for solution Write a program that will print out the result of the following equation using the functions in math header file. Result = x*+/y Where the values of x and y are entered by the user respectively. Expected Output: Enter the value of x and y: 2.0 25.0 Result = 13.00
- Using C not(C++ or C#) without the use of strings and arrays, I need help in coding this small function. The function returns the place value of the given positive number. For example, if the num is 456, the function returns 100. Another example is if num is 709134, the function returns 100000. @param num positive integer @return the place value of num The function//int getPlace(int num) {} //In c++ Write a function heading and body for a float function called ConeVolume that takes two value float parameters called radius and height. The function computes and returns the volume of a cone using the following formula:in C++ program please: According to Wikipedia: “The International Collegiate Programming Contest, known as the ICPC, is an annual multi-tiered competitive programming competition among the universities of the world.” Moreover, the participants of the contest should be no older than 24. Complete the following function which takes as input two parameters: the current year and the birth year of a student. The function should return the age of the person given the parameters. int calculateAge(int current_year, int birth_year) {