Q1:- From the given figure, write a program in C++ LANGUAGE to read the height of cylinder then calculate the volume and the side area of cylinder in the case that the height of all cylinders is greater than or equal to 4.9955 cm according base - radius r height h to these rules: i. Volume = height * the base area ii. Side area = base height * the base perimeter Suppose the number of cylinders is 500
Q: Explain the difference between a form's Text property and its Name property.
A: Difference between Text property and Name property Name property: For keeping track of all forms in ...
Q: Linux 1. Which of the following command you use to check which services loaded in the system? a. sys...
A: Linux is a group of open source Unix-like working frameworks dependent on the Linux portion, a worki...
Q: Please use python and comment on code so I can better understand. The program should have room to be...
A: Program ScreenShot :- Fully Working Program (In Text fomat) :- import random def quicksort(arr, ...
Q: Please help this is a two part question in Python version 3.8.5 - Please also include pseudocode. I ...
A: PSEUDO CODE: //Defining the main() Function main Declare //Declaring empty list ...
Q: Java Programming: Practice your class design and development process by creating 2 classes based on...
A: Introduction of Program: In this program, a Home Class has a Square foot, a Number of Bedrooms, and ...
Q: Which of the following can cause a Process to transition out of the Running State? PC Upda...
A: There are following 6 transition that occurs among Running, Ready, Blocked, and Terminated state of ...
Q: what values are assigned to num and discard?
A: 34. a. If the input is given as 2, 4 the output should be 2 4. That is the discard variable stores 2...
Q: Write an interactive version of the InchesToFeet class that accepts the inches value from a user.
A: Program Approach: Define the class named Define the main method that provides the interactive versi...
Q: Create a program in python with a main function and a custom module named rect that defines three cu...
A: A module is a python file, that contain module functions that we can include in our program by the u...
Q: Write a regular expression for the following languages: The set of strings of 0’s and 1’s whose thi...
A: The set of strings of 0’s and 1’s whose tenth symbol from the right end is 1.(0 + 1)* .1.(0 + 1).(0 ...
Q: Determine the largest and smallest integers in a group of three integers. Program requirements: 1. D...
A: Below is the required code in C language. Program Approach: Including necessary header files for th...
Q: Explain why the callback function is written as an anonymous function in the request phase function.
A: Callback function in javascript A callback function is defined as a function that can be passed to o...
Q: The integer occupies 16 bit in C-language. a=sizeof(int); *
A: sizeof Operator -> It is the most common operator in C language. This operator is a compile-time ...
Q: Encode (800) 555-0012 in ASCII, including punctuation. 5.Translate the following he...
A: The following table is a sequence of CHARACTERS are encoding (800) 555-0012 is shown in below table:...
Q: write an assembly program to calculate the following Z = (A + B ) - C T = Z * 7
A: Let’s identify variables needed for this program.First variables will be the one which will hold the...
Q: Нех 16-bit Binary (must be 16 bits) D72 5E7B 0000 0000 0011 0110 0101 0001 1011 1101
A: Explanation: A bit pattern for binary notation is “base-2”. The binary number system uses two valu...
Q: 5.9 LAB: CSS practice You are to create a web page for the following poem/song, entitled "Yesterday"...
A: Step 1:- Note:-I am using internal CSS in this code. Internal CSS is added to the style tag in this ...
Q: Design a C++ program to do the administration for a fun run competition. Participants can run a dist...
A: Registration fees for club members are as follows:5km = R 65.0010km = R 100.0015km = R 150.00 Non...
Q: Linux: 1. What command can you use to create a secure connection with remote server? a. ssh b. syst...
A: 1. What command can you use to create a secure connection with remote server? a. ssh b. systemd c. ...
Q: Draw the graph of the NRZ-L scheme using each of the following data streams,assuming that the last s...
A: Note:- As per company policy, only first three parts are answered.
Q: A farm sells eggs to local customer. It charges $3.25 for a dozen eggs, or 45 cents for individual ...
A: Program: //include the required header file #include <iostream> using namespace std; //defin...
Q: Please answer in c++ Please implement BST sort and test it for correctness. The program will prompt ...
A: Binary Search Tree is a node-based binary tree data structure which has the following properties: T...
Q: Write a program that will calculate the cost of carpeting. We-do-Carpets is a company that specializ...
A: In the above program, first we need to take input from user length and width of living room, family ...
Q: Design Deterministic Finite Automata (DFA) From Non-deterministic Finite Automata (NFA) Below! *Not...
A:
Q: What are there trains in Mountain Land formations of Bondi Beach
A: Do you mean, what are the terrains and major land formations of Bondi bay? If so, then check the ans...
Q: Write a program to check if a number is a prime number. 1) let user input a number 2) check if its l...
A: Note: Programming language is missing in the question. So we will answer this program in C, and C++ ...
Q: Please I need to solve this question using the C++ programming language with Visual Studio 2019. Tha...
A: #include <iostream>#include<iomanip> using namespace std; int main(){ // scanning the...
Q: solve using c++
A: the answer is option d 7
Q: Estimate the amount of data required to analyze the human genome of 100 patients fo each of the 20 d...
A: To be confident of identifying a cancer gene that is mutated in ~5% of a particular type of cancer w...
Q: In C++-language, a recursive user-defined function
A: Correct option is - a) Call Itself. Recursion --> In recursion function calls itself . And the ...
Q: 1. Write a C++ statements to do the followingi. Declare int variable for num1 and num2ii. Prompt the...
A: Program code: #include <iostream> using namespace std; int main() { //Declare the variables i...
Q: This is a python File Create a program that presents a menu with these options: Add product Sort...
A: Program:- import sysdef createMenu(optionList,menuTitle): print(menuTitle,"\n") print(*optio...
Q: Lecture Activity Answer the following questions: Use lucidchart.com to draw your logic circuits. 1. ...
A: Note: Answering the first Question 1. AB + (AC)' At first, we will take the AND operation of A and...
Q: “____” is a term used by certain vendors for patches to the operating system and other software.
A: Nowadays, software are marketed with other related softwares with an intention to sell them all as o...
Q: Please answer question #2
A: Activities done with Visual Studio: Visual Studio is an integrated development environment from the ...
Q: A number of the form a + ib, in which i2 = -1 and a and b are real numbers, is called a complex numb...
A: class MyComplex{private: double real, imag;public: MyComplex(){ real = 0; imag = 0; } MyComplex(...
Q: Domain controllers store local user accounts within a SAM database and domain user accounts within A...
A: Security Account Manager (or SAM) In Microsoft Windows, the local user account and group accounts ...
Q: Questions 1. Discuss the positive impact of ICT in Education and Business 2. Highlight the nega...
A: Note: Hello. Since your question has multiple parts, we will solve the first question for you. If yo...
Q: C Programming Language Assignment #4Introduction to C Programming – COP 3223Objectives1. To learn ho...
A: A required program is as follows, Program: /*H******************************************************...
Q: Why do you think securing mobile devices is so important?
A: Now-a-days, mobile gadgets are in everyone's palm and it also replaced our wallet and thus it is ver...
Q: solve using c++
A: E
Q: #include <bits/stdc++.h>#include<unordered_map>#include <string> using namespace s...
A: 1st error: You close the class before the gpacalculation function so that’s why code shows the error...
Q: Write a complete C program that prompts the user for the coordinates of two 3- D points ( x1 , y1 , ...
A: Program: #include <stdio.h> #include <math.h> int main(void) { double x1, x2, y1, y2,z...
Q: This is for Python version 3.8.5 and please include pseudocode. Write Python code that will open a ...
A: To open a file named aboutme.txt and write your name to the first line in the file and your age (as ...
Q: Suppose the owner of tuck shop gave you a file that contains the list of items, the number of items ...
A: The program has 5 functions, getItemData,calculateTotal,calAverage,print,calcAvgGreater Each functio...
Q: choose the correct answers (Multiple Choice Questions) 4-IFa= -8, b=3, c1 = --a + b, c2 = a--+ b the...
A: 4. Answers: D) -6, -6 5. Several different statements can be executed in a switch 6. objects
Q: Ch2 Question 3: While you can insert new rows and columns, you cannot insert single cells. A...
A: Question 3: While you can insert new rows and columns, you cannot insert single cells. ANS: - Option...
Q: Hi, I need to solve this problem with C++ programming language using Visual Studio. Thank you.
A: We have defined 3 variables namely first_number, second_number, and factor. We are taking input fro...
Step by step
Solved in 2 steps
- In C++, write a program that calculates and prints a monthly paycheck for an employee. The net pay is calculated after taking the following deductions from the employee's gross salary: Federal Income Tax: 17.5% State Tax: 9.1% Social Security Tax: 6.2% Medicare Tax: 1.45% Retirement Plan: 9.29% Health Insurance: $51.48 Life Insurance: $3.71 Your program will prompt the user to input the employee ID, the employee name, and the employee's monthly gross salary. The program will calculate the deductions listed above, along with the percentage of take home pay (defined as the net pay divided by the gross salary). After calculating each deduction and percentage, the output will be printed to the screen (see example output below). Requirements All decimal numbers must be formatted to 2 decimal places. Ask for the employee's ID first, then full name (can include spaces), then the salary. The prompt to enter the salary must include the employee name. The employee ID MUST be…C++ Programming: Write a program using inputs age (years), weight (pounds), heart rate (beats per minute), and time (minutes), respectively. Output the average calories burned for a person. Output each floating-point value with two digits after the decimal point, which can be achieved by executingcout << fixed << setprecision(2); once before all other cout statements.Use C++ programming language A customer in a store is purchasing five items. The prices of the five items are:Price of item 1 = $15.95Price of item 2 = $24.95Price of item 3 = $6.95Price of item 4 = $12.95Price of item 5 = $3.95Write a program that holds the prices of the five items in five variables. Display each item’sprice, the subtotal of the sale, the amount of sales tax, and the total. Assume the sales tax is7%.
- Write an application that inputs three integers from the user and displays the sum, average, product, smallest, and largest of the numbers. [Note: The calculation of the average should result in an integer representation of the average. So, if the sum of the values is 7, the average should be 2, not 2.3333….] For C# programmingIn c++, create a program that gets quarterly sales from a user and calculates the total of all four quarters as well as the average, lowest, and highest quarters. Console Example The Quarterly Sales program Enter sales for Q1: 12312.57 Enter sales for Q2: 15293.21 Enter sales for Q3: 14920.95 Enter sales for Q4: 23432.21 Total: 65958.94 Average Quarter: 16489.74 Lowest Quarter: 12312.57 Highest Quarter: 23432.21 Specifications to complete program Create the pseudocode needed to implement the solution above. Convert your pseudocode to C++ code including the following specifications: Round the average quarter to a maximum of 2 decimal digits. Use a vector to store the sales for each quarter. Use STL algorithms to process the data for the quarters.In C++ , Write a program for a Bookstore to take an order from a customer, calculate how much to charge a customer based on his/her order, and display a receipt. The store sells only three books, designated by their authors: Cervantes ($41.25 each), Homer ($15.85 each), and Shakespeare ($30.50 each). Your program is to work as follows: Display a welcome message (e.g., “Welcome to the Bookstore!”) Prompt the user for his/her first name Prompt the user to input the number of books by Cervantes s/he wants Prompt the user to input the number of books by Homer s/he wants Prompt the user to input the number of books by Shakespeare s/he wants Compute the total amount due, including a 10% sales tax Display amount due Ask the user how much money s/he will pay Display a receipt listing the name of the user, the quantity of each item ordered, the total cost of the order, and the amount the user will have left after paying Execution of the compiled program should appear roughly as follows…
- In C++ Write a program that can be used to calculate the federal tax. The tax is calculated as follows: For single people, the standard exemption is $4,000; for married people, the standard exemption is $7,000. A person can also put up to 6% of his or her gross income in a pension plan. The tax rates are as follows: If the taxable income is: Between $0 and $15,000, the tax rate is 15%.Between $15,001 and $40,000, the tax is $2,250 plus 25% of the taxable income over $15,000.Over $40,000, the tax is $8,460 plus 35% of the taxable income over $40,000. Prompt the user to enter the following information:Marital statusIf the marital status is “married,” ask for the number of children under the age of 14Gross salary (If the marital status is “married” and both spouses have income, enter the combined salary.)Percentage of gross income contributed to a pension fund Your program must consist of at least the following functions:Function getData: This function asks the user to enter the…C++ Programming Exercise: A real estate office handles, say, 50 apartment units. When the rent is, say, $600 per month, all the units are occupied. However, for each, say, $40 increase in rent, one unit becomes vacant. Moreover, each occupied unit requires an average of $27 per month for maintenance. How many units should be rented to maximize the profit? Write a program that prompts the user to enter: a. The total number of of units. b. The rent to occupy all the units. c. The increase in rent that results in a vacant unit. d. Amount to maintain a rented unit. The program then outputs the number of units to be rented to maximize the profit.code for this in C: In college, a student may get a grade of 1.0 (as the highest) to 5.0(lowest). Anyone who gets a Final Grade of at most 3.0 is considered a passing grade. Create a program that will ask the user to input a student's midterm grade and tentative final grade. After calculating the student's final grade using the formula below, main() will then call on DisplayStatus() to display if the student passed the subject or not. FG= MG+TFG/2
- Computer Fundamentals and Programming 2 Write a program that determines a student’s grade. The program will accept 3 scores and computes the average score. Determine the grade based on the following rules: - If the average score is equal or greater than 90, the grade is A. - If the average score is greater than or equal to 70 and less than 90, the grade is B. - If the average score is greater than or equal to 50 and less than 70, the grade is C. - If the average score is less than 50, the grade is F. Source Codes and Print Screen of the OutputIn C++ Write a program with a car's miles/gallon and gas dollars/gallon (both doubles) as input, and output the gas cost for 20 miles, 75 miles, and 500 miles. Output each floating-point value with two digits after the decimal point, which can be achieved by executingcout << fixed << setprecision(2); once before all other cout statements. Ex: If the input is: 20.0 3.1599 the output is: 3.16 11.85 79.00 Note: Real per-mile cost would also include maintenance and depreciation.Answer properly(editable code , output screenshot) is must Write a C++ program to input electricity unit charges and calculate total electricity bill according to the given condition:For first 50 units Rs. 0.50/unitFor next 100 units Rs. 0.75/unitFor next 100 units Rs. 1.20/unitFor unit above 250 Rs. 1.50/unitAn additional surcharge of 20% is added to the bill