C++ language
Q: PYTHON HOMEWORK QUESTION def area(side1, side2): return side1 * side2 s1 = 12 s2 = 6 Select…
A: Here, a function area is defined which is accepting 2 arguments and then returning the area by…
Q: In c++ program: Write a program for Personal Organizer. 1. An interactive program to accept name,…
A: Answer : Algorithm:- To calculate age we need today's year and birth year. Take input from user…
Q: Program Description Print Square inside a Square as shown below
A: #include<iostream>using namespace std;int main(){ int i, j, rows; printf("Enter the…
Q: Write Palindrome program in C.
A: Given program is Write Palindrome program in C.
Q: Programming language is: C ( Please write with comments): Program to add two numbers using…
A: C code and sample output of the above question is in step2.
Q: Title Q. Write an assembly language program, which reads two decimal numbers, multiply them and…
A: Nasm program
Q: Write a program to display a number of patterns.
A: According to the question we need to write a program in C language to display a number of patterns.…
Q: Create a C++ program of Order Menu with billing system like in the bellow pic. Add a system cancel…
A: Please refer to the following steps for the complete solution to the problem above.
Q: Instructions: Write a C++ program that displays the following: 1. Resume 2. Calendar
A: C++ is programming language
Q: A cashier has currency notes of denominations 10, 50 and 100. If the amount to be withdrawn is input…
A: Step 1 : A cashier has currency notes of denominations 10, 50 and 100. If the amount to be…
Q: Creat a program that will get the name, age and address of the end-user and print all the details…
A: - We need to get the details of user and print them. - We need to use C++ here.
Q: QUESTION: Write a C++ program that will generate and display a magic square. A magic square is a…
A: C++ code #include<iostream>#include<iomanip>using namespace std; const int MAX_SIZE =…
Q: Write C statements that perform the following operations:
A: All the parts are solved in next step with C programs/statements.
Q: USING C++ LANGUAGE note: I want a personal solution, not solutions from the Internet Write a…
A: It is defined as a non-linear data structure because it does not store in a sequential manner. It is…
Q: How to write a algorithm program step by step in visual studio 2012. The subject is Programming in…
A: Answer: Steps for Programming With Visual Basic 2012 are as follows: Learn fundamental tools and…
Q: rite a c program to work as calculator
A: Define header file <stdio.h> for io operations. Define main function. Define char variable…
Q: C Program / C Language Make a C program If the given number is negative, you type the cube of that…
A: #include <stdio.h> int main(){ // Declaring variable int num,cube, sqr; //…
Q: PYTHON Programming Language Write a simple program that asks the user for their name (first,…
A: take first name user input take middle name user input take last name user input making a string…
Q: The main section or the main block of the entire progran. It is the first part of the program to be…
A: The main section or the main block of the entire progra. It is the first part of the program to be…
Q: Make a program that ask for your name and age. Display your name and the year you were born.
A: To store a string in C, we have to use character array. To find the current year, we need to include…
Q: Python Language Problem 1. Write a program that asks a user for 3 numbers and their name.…
A: a = int(input("Enter a value : ")) # value 1 b = int(input("Enter a value : ")) # value…
Q: y 9. Write a complete C language program to display the area of the shaded region. The dimensions…
A: Let, radius of the circle = r Area of the circle = πr² then diameter = 2r height of the square is =…
Q: Make a Calculator Program and it must have the addition, subtraction, multiplication and division.…
A: Answer: Make a Calculator Program and it must have the addition, subtraction, multiplication and…
Q: Program Requirements: Given a string below, declare print it in the output in the languages…
A: Write a JAVA program to declare a string str = "Programming" and print that string in output.…
Q: Let the label for an assembly language statement begin in column 1 and consist of at most eight…
A: Please check the solution below
Q: An informal language that has no syntax rules and is not meant to be compiled or executed is called…
A: The answer is given below:
Q: Write a C++ Program to generate random password
A: Given Program is Write a C++ Program to generate random password
Q: Write a C program that displays “Welcome to C Programming”. Create also it's pseudocode and…
A: Write a C program that displays “Welcome to C Programming”. Create also it's pseudocode and…
Q: Program Requirements: Given a string below, declare print it in the output in the languages…
A: Given: str = "Programming" Requirement: Write a Python program to declare the given string and…
Q: This is a c programming task do this carefully and do not plagiarise or copy it and write in simple…
A: Here have to determine about c programming code for pattern problem.
Q: C Program / C language The robot has n feet worth of wooden sticks. The problem is, he wasn't…
A: #include <stdio.h> int main(){ float num=0; printf("Enter measurement in feet: ");…
Q: Create a program that would input the value of the base and height of a Triangle and output the Area…
A: Algorithm Start Var b, h, a Input b and h from user a= 0.5*b*h Output a Stop
Q: 6. Write a program to print a series of the first positive 50 prime numbers. C language
A: Answer is as follows
Q: Write an essay about a computer related topic and explain its importance, its background and…
A: Lets see the solution.
Q: • Create a Phonebook Program based in C Programming Language. The program will get the First Name,…
A: #include <stdio.h> #include <stdlib.h> #include <string.h> struct contact {…
Q: Using python, create a python program that introduces yourself with the following details: Name:…
A: Step-1: Start Step-2: Print the message 'Name: Shan Lopez' Step-3: Print the message 'Dream place:…
Q: C PROGRAM Make a C program to input the number of bills. INPUT 1. Number of bills 2. Amount of each…
A: To write c program to input no. of bills and find total.
Q: Create a program using c++ compiler that will determine if an input character is a number, a letter,…
A: Define header file <iostream> which is needed for the i/o stream Define main function Define…
Q: Im trying to write a program in python to find the smallest divisor of an integer.Take integer from…
A: logic:- read an integer iterate from i=2 to n check if(n%i==0) append the value of…
Q: d) Take input the number of sides and length of each side of a Polygon from user and then print the…
A: Given: Number of sides(n) and length of each side(l) of a polygon taken input from the user.…
Q: Use C language to write your program.
A:
Q: Hello, please write a code for designing a bank ATM in C ++ language. Please solve this question. It…
A: PROGRAM STRUCTURE: Import the header files which are required for the execution of the code. Start…
Q: programming language *provide comments Write a set of statements in the main function that…
A: Required: C programming language *provide comments Write a set of statements in the main function…
Q: Using C++ language create a simple point-of-sale system to calculate the inventory of goods. The…
A: Name of Structure : pointofsalesystem Data members : candies chips ice cream bread fruits
Q: Q1 / Print on the screen the grades of three students in five subjects Q2 / Write a program in C ++…
A: C++ is one of the most widely used programming languages in the world. The basic structure of C++…
Q: Write a C program that takes the input string from the user and prints the number of vowels in the…
A: Introduction of the Program: The C program takes the string from the user and then the program…
Q: Create a c program that will accept the year of birth and display the age process : age=2020-yob
A: Actually, the code has given below:
Q: C programming jackson structured diagram for an atm machine that can make you change pin number,…
A: In this given c program the user can select any one choice then continue with selected choices.The…
Q: Create a c++ program that will input for the diameter of a circle then compute for the area and…
A: Program in next step-
Use C++ language to create a
Step by step
Solved in 2 steps with 1 images
- python if we put a grid on the surface of Earth with a grid spacing of dx and dy in the longitude and latitude directions, respectively, the grid area (approximated as dx*dy) varies with latitude. Explain why that is.Write a program to calculate the surface area and volume of a square pyramid. A square pyramid has a base that is square and all triangle faces are congruent isosceles triangles. (An isosceles triangle is a triangle in which two of the sides are equal. Length of the base: a Height of the pyramid: h Volume = a2h/3 Slant height, s = sqrt(h2 + (a/2)2) This is the Pythagorean Theorem part. Area of one pyramid side = s*a/2 Here are my calculations: Test Case #1 Height(h): 5.0’ Base(a): 2.5’ Volume = (2.5**2) * (5/3) (6.25) * (1.66) = 10.375 cubic feet Slant Height = math.sqrt(5**2) + (2.5/2)**2) Sqrt(25+1.5625) Sqrt(26.5625) = 5.154 feet Pyramid (not including base) = (5.154) * (2.5/2) * 4 (5.154) * (1.25) * (4) = 25.769 sq. Ft. I have attached a screenshot of my program I have so far. When I run the program, the output doesn't match what I have for the surface area and volume, am I missing something?Write a program to calculate the surface area and volume of a square pyramid. A square pyramid has a base that is square and all triangle faces are congruent isosceles triangles. (An isosceles triangle is a triangle in which two of the sides are equal. Length of the base: a Height of the pyramid: h Volume = a2h/3 Slant height, s = sqrt(h2 + (a/2)2) This is the Pythagorean Theorem part. Area of one pyramid side = s*a/2 Test Case #1 Height(h): 5.0’ Base(a): 2.5’
- Write a program to calculate the surface area and volume of a square pyramid. A square pyramid has a base that is square and all triangle faces are congruent isosceles triangles. (An isosceles triangle is a triangle in which two of the sides are equal. Length of the base: a Height of the pyramid: h Volume = a2h/3 Slant height, s = sqrt(h2 + (a/2)2) This is the Pythagorean Theorem part. Area of one pyramid side = s*a/2 For this program you are to determine two things about a square pyramid. 1) the surface area of the four sides. 2) the volume. Do not include surface area of the base. Test case 1: Height: 5.0' Base: 2.5' Test case 2: Height 2.5 Base: 4.3' The program asks the user to enter the pyramid height (in feet) and length of the base (in feet). Your program will need to determine surface area, and volume by using pythagorean theorem. Your output should neatly show the height, base, total surface area, and volume of the pyramid using 33 decimal place of…Write a computer program for calculating carburization heat treatments. The program should ask the user to provide an input for the carbon concentration at the surface (cs), and the concentration of carbon in the bulk (c0).Computer Science IN PYTHON(visual studio code) program a simple flag that consists of at least two shapes while only using rectangles and circles. Give it a flagpole by drawing a long skinny rectangle next to it. Wave the flag by animating it up and down. (make the Swedish and UK flag) import pgzero
- Write a program that draws a triangle as shown in Figure 1.18c.Computer Science Write a Java program that reads a line and a line segment and then determines whether they intersect or not. When they overlap completely, consider that as intersecting. Use variables ((lp1x, lp1y), (lp2x, lp2y)) to represent a line and ((sp1x, sp1y), (sp2x, sp2y)) to represent a line segmentC++ coding In order to paint a wall that has a number of windows, we want to know its area. Each window has a size of 2 ft by 3 ft. Write a program that reads the width and height of the wall and the number of windows, using the prompts Wall width: Wall height: Number of windows: Then print the area with two digits after the decimal point: Area: ...
- A very known application in natural language processing is to extract information from a given text. In this lab, you will be able to extract some emotions (Sad and Happy) from a given string and calculate the score of each emotion. You will be given below the words that express sadness, anger, and happiness. For each word, you will be given weight as well, so that when you are calculating for example the score for sadness in the text (string), you can use this formula:A regular polygon is an n-sided polygon in which all sides are of the same length and all angles have the same degree (i.e., the polygon is both equilateral and equiangular). The formula for computing the area of a regular polygon is Area = ( n * s2 ) / (4 * tan( π/n) Here, s is the length of a side. Write a program that prompts the user to enter the number of sides and their length of a regular polygon and displays its area.Python For this lab, you will use a tuple to represent a student record. A student record consists of the student’s name, year, and GPA. For example, (“John”, “Senior”, 3.7) is a record for John who is a senior with a 3.7 GPA. You will write a program that prompts the user for the number of records to enter. Then it reads input from the user for each record. Remember that each record consists of a student’s name, year, and GPA. It then prints the record of each student as shown below. Functions: You will write the following functions: read_records(n) Read n number of records and return a list of records. print_records(records) Takes in a list of records and print each one. main() Prompts the user for the number of records to read, get a list of records from the user, and print the records. Optional: print the average GPA of the students. Sample run: How many students record to enter: 2 Enter student's name: John Enter student's year: junior Enter…