Write a program in C or Python that calculates the moment at the support (point A) depending on the amount of the load applied and the distance of the load off the point A, which will be entered by user. (Other programming languages will not be accepted).
Q: In a function file, the input() function - to gather user input from the command window - should…
A: input () : input() function is used to reads a line from the user, The input function allows you to…
Q: Write in C language Description There is snail climbing on the wall from bottom, wall is 10 meter…
A: CORRECTED CODE: #include<stdio.h> int main() // remove the class name,…
Q: Q4) Write a Fortran 90 using a module that contains a function to calculate Reynolds number (Re) of…
A: Fortran: Once FORTRAN, derived from Formula Translation) may be a general, compiled imperative…
Q: Complete the program in Fortran 90 language for the following series. Sin (x)=x?++ +...
A: The answer for the given question is as follows
Q: A new language, Houston, with a block structured syntax similar to Algol 60uses either…
A: Test program: begin integer n; procedure p(k: integer); begin n := n+1; k…
Q: Write a program (IN C++) that will present the user with a main menu of options which the user can…
A:
Q: In a project, it is required to define cubes whose compressive strength limits are (20-30 MPa).…
A: Input : Array of values of compressive strength of size of 10 Output : Count of values in range…
Q: In one project, it is required to define cubes whose compressive strength limits 20-30 mpa.…
A: Program approach: Define the program name. Declare do loop between limits 20-30. Prints results and…
Q: nsider the following Matlab expressions (you can assume that all involved variables exist in…
A: You execute one of those expressions. The value of y will always (no matter what values are assigned…
Q: * write a C program that inputs the old salary (os) and the new salary (ns) of an employee. Then it…
A: The flowchart is a diagram in which we represent the problem solution in a pictorial way by using…
Q: Q4) Write a Fortran 90 using a module that contains a function to calculate Reynolds number (Re) of…
A: Normally Reynold range is calculated because of a similar methodology for any solutions. Herein,…
Q: Write a program in MATLAB that calculates and prints the roots of a polynomial. hints: 1:(without…
A: First, we will input the degree of the polynomial equation. Then we will input the coefficient of…
Q: Create a C Language program that will use a USER DEFINED FUNCTION, that will perform and display the…
A: Find Your Code Below
Q: You have to create a program in C language in which the user enters the mass m and radius & of a…
A: Moment of inertia of a disk about its axis perpendicular to the plane - MR^2/2 M=mass R=Radius
Q: PROBLEM 24 - 0579: Water flow into a tank is regulated by the position of a valve. The position of…
A: ANSWER: To begin with, note that conditions (1) and (2) are coupled, nonlinear, first-request…
Q: HW6: Write a program in C language by using switch statement for a lift control system, for your…
A: C Code #include <stdio.h>int main(){ int floors,weight; printf("Enter the floor number…
Q: Design form window and write a program in VB to ulate the volume of cylinder according to the…
A:
Q: Write a C++ program that determines whether an integer number is positive, negative or zero using…
A: USING FUNCTION #include<iostream> using namespace std; // function declaration void…
Q: 1) Write a ladder program for a washing machine with the following specification: 1- The machine has…
A: A and B pushbutton to turn ON and OFF the washing machine.Two sensors Sensor1 and Sensor2 for…
Q: Write a C++ program for a simplified scientific calculator that offers the following operations:…
A: #include <iostream>#include<cmath>using namespace std;int main(){ int option;…
Q: Write a program in the C ++ language that distributes salaries to a group of employees according to…
A: Required: Program to get a salary, position, and number of leaves from the user, calculate salary…
Q: Write and run a C++ program that calculates and displays the amount of money available in a bank…
A:
Q: Design and implement an application that simulates a simple slot machine in which three numbers 0…
A: Please find the answer below :
Q: PROGRAM MATLAB The Bulk (Volume) modulus value formed against the applied pressure (P) value is…
A: Matlab is a matrix programming language. The Matlab language can be applied to write mathematical…
Q: Is it possible to perform parallel processing of statements that are implicitly or explicitly…
A: Parallel processing is a process where different process or programs can run simultaneously without…
Q: Describe how you would achieve a program in C++ that does the following: Output a header and page…
A: We can not use parameters We can not use non-local variables. Which means we can not use a global…
Q: Write a program using the C ++ OOP language, and the program should contain at least the following…
A: I made four classes to explain at least four of the following oop subject: OOP subjects explained…
Q: HW3: Write a program in C language by using if statement for a lift control system, for your…
A: Step 1:- Program Approach:- 1.Include the header file 2.Take the input from the user in the…
Q: 1.8 Create a C++ program in which the user enters the work done W by a force and the time taker and…
A: The power is defined as the work done per unit interval of time
Q: Write in C language Description There is snail climbing on the wall from bottom, wall is 10 meter…
A: #include<stdio.h> class asd{ int main { int up = 3; int down = 2; int dept_well = 30; int…
Q: Write a C++ program that prompts the end-user to input the number of students in a particular…
A: Create a menu for the program take the number of students as input then the courses and for each…
Q: Q5\ Write C++ program for controlling power applied to building assume two power sources (main…
A: In the program required, we need to keep in mind the main power and generator status for the loads…
Q: Write a C++ program that calculates the base of a polygon (1e., b). The main function asks the user…
A: Program Approach: Include the necessary header files for the standard I/O operations. Declare the…
Q: write a c++ program: Your time machine is capable of going forward in time up to 24 hours. The…
A: As you have not provided the sample output, so we have provided the output in most appropriate and…
Q: The system of fire extinguishing works at 100 CO, and if the temperature increases from 100- 150 CO,…
A: First, we will input the temperature from the user. Now based on the given condition we will print…
Q: Write a C++ program for the above grading
A: 1) Create a 2d array or 2d vector with numbers of columns as number of subjects and numbers of rows…
Q: Write a c++ program that mimics a calculator. The program should take as input two integers and the…
A: Problem. Write a C++ program that mimics a calculator. The program should take as input two integers…
Q: YOUR TASK You need to produce a menu driven software written in C which allow the user to: a. Choose…
A: system("cls") does not work on C. Hence working on code apart from that part.
Q: Given a point (x,y), write a computer program in FORTRAN 90 to specify if it lies in the first,…
A: program find_quadrant implicit none real::a,b read *, a,b IF (a<0…
Q: Make a demonstration of the different python built-in functions such as min, max, pow, abs, input,…
A: Python has a set of built in functions such as min(), max(), pow(), abs(), input(), print(), len(),…
Q: You have to create a program in C language in which the user enters the mass m and radius & of a…
A: Introduction: The program can be coded in C language. For that we need to know the formula of:…
Q: Write a paragraph describing why the improvement works better than the FIFO implementation. Write…
A: Since two questions are asked, first question will be answered as per guidelines. please repost…
Q: The programming language is C++, write a program base on the given statement. Write a program that…
A: In this program, you need to take input from user for percentage. Then you need to display grade of…
Q: Write a program in C ++ slanguage to find the traffic light And write a suitable massages in * .each…
A: In the c++ program, Include the necessary header files and then create the main() method to perform…
Q: Write a C++ program for a simplified scientific calculator that offers the following operations:…
A: #include<iostream.h> #include<math.h> using namespace std; void mul(); void div(); void…
Q: Draw a Conventional Flowchart based on the given below. in COBOL language GIVEN: A FILE OF…
A: flow chart: A flow chart is a drawing that uses connecting lines and a set of standard symbols to…
Q: Write a program in c++ that declares the average testscore and total test score.
A: Algorithm: Start Open testscore.txt file Initialize count to 0 and sum to 0 and i=0 Read each line…
Q: You have to create a program in C language in which the user enters the mass M and length L of a…
A: To Do: A rod's moment of inertia around an axis passing through its centre and perpendicular to it…
Step by step
Solved in 4 steps with 2 images
- create a program in c that mimics the following dice game: A player rolls two dice. Each die has six faces. These faces contain 1, 2, 3, 4, 5, and 6 spots. After the dice have come to rest, the sum of the spots on the two upward faces is calculated. If the sum is 7 or 11 on the first throw, the player wins. If the sum is 2, 3, or 12 on the first throw the player loses. If the sum is 4, 5, 6, 8, 9, or 10 on the first throw, then the player must conitue to roll again until they roll that same number again in order to win. The player loses by rolling a 7 before making the point. Write a program in c that implements this game according to the above rules. The game should allow for wagering. This means that you need to prompt that user for an initial bank balance from which wagers will be added or subtracted. Before each roll prompt the user for a wager.Write a c program that calculates the potential energy of 3 charges q1=1, q2=2, q3=3 located at points (1,2,3), (3,−4,−5), and (−4,2,−6) respectively. The units are coulombs forcharge and meters for coordinates. The energy is given by the expression; U=k(q1q2/r12+q2q3/r23+q1q3/r13) where rij is the distance between the charges qi and qj, and k= 9×109in SI units.Your program should print the result on the screen.Please assist with this C++ programming question. A teacher at Leva Primary School needs to divide her class in different group sizes according to the activity they have to do. This will help her to prepare workstations for each group. For example, for art projects the class has to be divided in groups of 6; for science projects the class has to be divided in groups of 4. She asked you to write a program to determine the number of groups as well as the number of pupils who are left to form a smaller group. There are 56 pupils in the class. The program has the following structure: Declare three int variables nrPupils, nrGroups, and nrLeft. nrPupils represents the number of pupils in a class, nrGroups represents the number of groups the class is divided into, and nrLeft represents the number of pupils, if any, who are in the remaining smaller group. Assign the value 56 to nrPupils. Declare an int variable groupSize that is used by a cin statement to input a value from the keyboard…
- In c++ Language . MATCh INPUT AND OUTPUT ----------------- ABC Bank announced a new scheme of reward points for a transaction using an ATM card. Each transaction using the normal card will be provided by giving a reward percentage of the transaction amount as a reward point. If a transaction is made using a premium card and it is for fuel expenses, additional 10 points will be rewarded. Write a program to calculate the total reward points.Strictly adhere to the Object-Oriented specifications given in the problem statement. All class names, member variable names, and function names should be the same as specified in the problem statement.A class VISACard has the following attributes. Access Specifiers Data type Variable protected string type protected double amount private int rewardPercentage Include the following method in VISACard class. Method Description public void ComputeRewardPoints() In this method, calculate and display the reward pointsbased on…In python Programming, Suppose you have four dogs named Leo, Tom, Jerry, and Jack, and four dog food bowls labeled 1, 2, 3, and 4. Each bowl can hold up to sixteen scoops of food and each dog chooses a separate bowl, but it doesn't matter which dog uses which bowl. For their dinner each day, you distribute sixteen scoops of dog food into the bowls, so each bowl will receive a whole number units of food. You are pretty careless, and you sometimes leave some bowls empty. If you always put out the full sixteen units of food each day, how many ways can you distribute the food among the four bowls?Computer Science Program in C++ or Java Simple simulation to estimate your likelihood of winning in a game of poker. Assume the game has 6 players. 1. Shuffle the 52 card deck and deal yourself 5 card hand. 2. Using the remaining 47 cards, deal the other 5 players their hands 3. Determine if you would win or lose that hand. Repeat part 2 and 3 500 times. You continue with the same card hand.
- Employees in a company receives net salary after the deductions for tax, Staff Provident Fund (SPF), and Global Insurance (GI): Basic Salary Range ($) Tax Rate SPF GI 0 – 1999 0 % 11 % 1 % 2000 – 2999 5 % 12 % 2 % 3000 – 4999 8 % 13 % 5 % Above 5000 10 % 17 % 8 % Based on the table given, you are required to write a C programming for a system that accepts the employee’s basic salary, and generates the net salary after the respective deductions as described aboveWrite a program in C++ to simulate a 1-dimension random walk along a circular tiled path. At each step, the walker randomly selects, with equal probability, to move to the left or right. The program displays the walker’s progress as it moves from tile to tile. The simulation ends as soon as the walker visits each tile at least once. The program displays the number of times the walker visited each tile. The program displays the number of times the walker moves.Note: Please answer in C++ Programming language. During Eid, it is a tradition for every father to give his children money to spend on entertainment. Chef has N coins; denote the value of the coin i by vi. Since today is Eid, Chef gives one coin to each of his two children. He wants the absolute value of the difference between the values of the coins given to the two children to be as small as possible to be as fair as possible. Help the chef by telling him the minimum possible difference between the values of the coins given to the two children. Of course, the chef cannot give the same coin to both children. Possible input 1 3 142 Required Output 1
- Using C Language: Write a program that consists of 2 guessing game. The first game: It is a guessing game in which the computer picks a specific number from 1 to 10, then the user guesses the number chosen by the computer and has ten attempts, and in each attempt the chosen number by the computer changes. The second game: A guessing game. The computer also chooses a three-digit number, for example: 950 and you have ten attempts to predict the number chosen by the computer. For example, the user types 390, the computer will tell him that the first digit is wrong, the second digit is correct, but it is not in the correct location, and the last digit, which is 0, is correct. And the user makes repeated attempts to find the correct whole numberThis is a C++ programming question The code should be in C++ language When you borrow money to buy a house, a car, or for some other purposes, then you typically repay it by making periodic payments. Suppose that the loan amount is L, r is the interest rate per year, m is the number of payments in a year, and the loan is for t years. Suppose that i = (r / m) and r is in decimal. Then the periodic payment is: You can also calculate the unpaid loan balance after making certain payments. For example, the unpaid balance after making k payments is: where R is the periodic payment. (Note that if the payments are monthly, then m = 12.) Write a program that prompts the user to input the values of L, r, m, t, and k. The program then outputs the appropriate values. Your program must contain at least two functions, with appropriate parameters, to calculate the periodic payments and the unpaid balance after certain payments. Make the program menu driven and use a loop so that the user can repeat…write a c# program A parking garage charges a $3.50 minimum fee to park for up to three hours. The garage charges an additional $0.75 per hour for each hour or part thereof in excess of three hours. The maximum charge for any given 24-hour period is $15.00. The parking time can be longer than 24 hours at a time up to but not including 48 hours. Any parking time after the first 24 hours will be subject to the same charge policy mentioned above. Write a C# app that calculates and displays the total parking charges for a customer who parked in the garage. You should enter the hours parked for a customer. The app should display the charge for the current customer. To solve it, use if else structure to check for the parking time periods (up to 3 hours, additional hours up to 24 hours, greater than 24 hours). Your entire code goes inside the main method.