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
- Write a c++ program for a bank in your town that updates its customers’ accounts at the end of each month. The bank offers two types of accounts:savings and cheque. Every customer must maintain a minimum balance.Minimum balances for the accounts are: Savings : R 1000.00 Cheque: R 1500.00If a customer’s balance falls below the minimum balance, there is a service charge of R50.00 for savings accounts andR100.00 for cheque accounts. If the balance at the end of the month is at least the minimum balance, the clientreceives interest as follows: Savings accounts receive 4% interest on the balance. Cheque accounts with balances of up to R 5000.00 more than the minimum balance receive 3% interest;otherwise, accounts with balances more than R 5000.00 more than the minimum balance receive 5% interest.Write a c++ program that requests the user to enter a customer’s account number (int type), account type (char type - S for savings, C for checking) and current balance. The updated balance must…In python, Problem DescriptionProfessor Santos has decided to hide a secret formula for a new type of biofuel. She has, however, left a sequence of coded instructions for her assistant. Each instruction is a sequence of five digits which represents a direction to turn and the number of steps to take. The first two digits represent the direction to turn: • If their sum is odd, then the direction to turn is left.• If their sum is even and not zero, then the direction to turn is right.• If their sum is zero, then the direction to turn is the same as the previous instruction. The remaining three digits represent the number of steps to take which will always be at least 100. Your job is to decode the instructions so the assistant can use them to find the secret formula. Input SpecificationThere will be at least two lines of input. Each line except the last line will contain exactly five digits representing an instruction. The first line will not begin with 00. The last line will contain…This is an exercise to design and write a Python program in good programming style for a simulation of stock price over a period of 100 days. In this exercise, you are asked to simulate the stock price starting at $100.00 for 100 days with a daily fluctuation based on the Normal Distribution with mean = 0.0 & sigma = 0.0125. The program will show the daily stock price, the 7-day minimum, the 7-day maximum, the 7-day average, and the 50-day average. The program should also give an indication of "***" when the stock price drops beyond the 50-day average!
- 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?Write a C program that calculates and prints the bill for a cellular telephone company. The company offers two types of services: regular and premium, each with varying rates based on usage.The rates are computed as follows:Regular service:- $10.00 base charge with the first 50 minutes being free.- Charges for usage beyond 50 minutes are $0.20 per minute.Premium service:- $25.00 base charge with different rates for day and night usage: a. For calls made from 6:00 a.m. to 6:00 p.m., the first 75 minutes are free, and charges for usage beyond 75 minutes are $0.10 per minute. b. For calls made from 6:00 p.m. to 6:00 a.m., the first 100 minutes are free, and charges for usage beyond 100 minutes are $0.05 per minute.The program should prompt the user to enter an account number, a service code (as a character), and the number of minutes the service was used. A service code of 'r' or 'R' represents regular service, while 'p' or 'P' represents premium service. Any other character should be…Construct C++ program to solve a given problem using appropriate programming techniques. Write a program that will calculate and print bills for the city power company. The rates vary depending on whether the use us residential, commercial, or industrial. A code of R means residential use, a code of C means commercial use, and a code of I means industrial use. Any other code should be treated as an error. The rates are computed as follows: R: $6.00 plus $0.052 per kwh used. C: $60.00 for the first 1000 kwh and $0.045 for each additional kwh. I: Rate varies depending on time of usage Peak hours: $76.00 for first 1000kwh and %0.065 for each additional kwh. Off-peak hours: $40.00 for first 1000 kwh and $0.028 for each additional kwh. Your program should prompt the user to enter an integer account number, the use code (type char), and the necessary consumption figures in whole numbers of kilowatt-hours. Your program should display the amount due from the user.
- Write a C program where you have to take 2 numerical inputs and 1 input for operator {the operator input has to be either ‘+’, ’-’, ’*’). Depending on some comparisons, you need to carry out three operations: addition ( + ), subtraction ( - ) and multiplication ( * ). Each of these operations will be implemented in separate methods. (i) If the first number is greater than the second number, do subtraction and print the result. (ii) If the first number is less than the second number, do addition and print the result. (iii) If the second number is equal to the second number, do multiplication and print the resultImagine you are working for a lumber company, and your employer would like a program that calculates the cost of lumber for a customer order. The company sells pine, fir, cedar, maple, and oak lumber. The lumber is priced by board feet. One board foot equals one square foot that is one inch thick. The price per board foot is given in the following table: Pine 0.89 Fir 1.09 Cedar 2.26 Maple 4.50 Oak 3.10 The lumber is sold in different dimensions (specified in inches of width and height, and feet of length) that need to be converted to board feet. For example, a 2 x 4 x 8 piece is 2 inches wide, 4 inches high, and 8 feet long, and is equivalent to 5.333 board feet (2 * 4 * 8 = 64, which when divided by 12 = 5.333 board feet). Create a blank c++ Give the customer instructions and then ask the user (customer) to identify the items they wish to purchase by inputting the type of wood, the length, width, & heights of the board, and the number of boards they desire. Allow the user to…C++ Write a program that simulates the minute-by-minute operation of a checkout line, such as one you might find in a retail store. Use the following parameters: Customers arrive at the checkout line and stand in line until the cashier is free. When they reach the front of the line, they occupy the cashier for some period of time (referred to as ServiceTime) measured in minutes. After the cashier is free, the next customer is served immediately. Customers arrive at the checkout line at ArrivalRate per minute. Use the function included below (customerArrived()) to return the number of customers arriving in a given minute, determined randomly. The line can only hold so many people, MaxLineSize, until new arriving customers get frustrated and leave the store without purchasing anything. The overall time of the simulation is SimulationTime, measured in minutes. The program should take 5 inputs (to be read from a text file named simtest.txt, one per line): SimulationName - a string…
- Write a program in C language to simulate tossing a “fair” coin. Allow the user to enter the number of tosses.Print the number of tosses that yield heads and the number of tosses that yield tails.What should be the percentage distribution of heads and tails? (Use the function rand_int)Write a C++ program that computes the rental fees of N cars; N is the first input by the user. For each car the user should input the car category and the number of rental days. Note that an 11% VAT tax is added to the car rental fees. At the end the program should output the following information: The daily income (the sum of all the cars rental fees). The percentage of clients who rented cars for more than 10 days.Write a C++ program that converts from 24-hour notation to 12-hour notation. For example, it should convert 14:25 to 2:25 P.M. Define a conversion functions that takes as input three parameters: an integer representing the hour, an integer representing the minutes and a value of type char, 'A' for A.M. and 'P' for P.M. These three input parameters when passed by reference to the conversion function, can be used to store the results of the conversion. The main function can then print these values.