Web development and programming
191828 questions • Page 3606 / 3837
from the book \"starting out with c++ from control structures through objects.\"
from the book "starting out with c++ from control structures through objects." programming challenge 5.15= display a weekly payroll report. ask the user for the employee number, g…
from the file Sum.cpp file. Modify this program by adding a function called sum
from the file Sum.cpp file. Modify this program by adding a function called sum that calculates the sum of four variables and then returns the value of their sum. The main functio…
from turtle import Turtle, mainloop class Etch(Turtle): def __init__(self): supe
from turtle import Turtle, mainloop class Etch(Turtle): def __init__(self): super().__init__() #calls the init of Turtle self.screen = self.getscreen() self.color('blue') self.sha…
ft office is expired. Editing in Word has been disabled Buy HACC: Central Pennsy
ft office is expired. Editing in Word has been disabled Buy HACC: Central Pennsylvania's Community College Name CPS 230 Assignment #1 Methods Review Fahringer write a program that…
ften there are multiple shortest paths between two vertices in a graph. Give an
ften there are multiple shortest paths between two vertices in a graph. Give an O(V + E) time algorithm for the following task. Input: An undirected graph G = (V, E) in adjacency …
full documentation here; http://cs.boisestate.edu/~cs121/projects/p4/ Here is my
full documentation here; http://cs.boisestate.edu/~cs121/projects/p4/ Here is my code currently, I need to implement an array that contains all of the letters of the alphabet and …
full problem: https://www.chegg.com/homework-help/questions-and-answers/order-se
full problem: https://www.chegg.com/homework-help/questions-and-answers/order-see-full-solution-e-sequence-moves-initial-state-goal-state-need-add-method-state-cl-q28747560 Conver…
fully comments for my program, thank you will thumb up #include #incl
fully comments for my program, thank you will thumb up #include <iostream> #include <fstream> #include <string> #include <iomanip> using namespace std; str…
fully explain 3 DESIGN PATTERNS that is for producing MOBILE WEB applications ba
fully explain 3 DESIGN PATTERNS that is for producing MOBILE WEB applications based on responsive design approach. please do not forget to mention the resources and explain the pa…
fun 1 = 8 bytes fun 2 = 14 bytes fun 3 = 18 bytes fun 4 = 22 bytes two input a n
fun 1 = 8 bytes fun 2 = 14 bytes fun 3 = 18 bytes fun 4 = 22 bytes two input a ntszt fun uints t e, int32_t F uintg )int3t fun3(uint8 t a, int3 4) ituintst d, int32_t e)t, uint8_t…
function Automobile( year, make, model, type this.year = year; //integer (ex. 20
function Automobile( year, make, model, type this.year = year; //integer (ex. 2001, 1995) this.make = make; //string (ex. Honda, Ford) this.model model; //string (ex. Accord, Focu…
function Deg = RtoD (Rad) % RtoD will convert radians to degrees Deg = 360*Rad/(
function Deg = RtoD (Rad) % RtoD will convert radians to degrees Deg = 360*Rad/(2*pi); Rad = pi; %3.14159265 end T/F Variable names used in a function must be the same as the name…
function GRAPH-SEARCH(problem, fringe) closed ? empty set fringe ? INSERT(MAKE-N
function GRAPH-SEARCH(problem, fringe) closed ? empty set fringe ? INSERT(MAKE-NODE(INITIAL-STATE[problem]), fringe) loop if fringe is empty then return failure end if nodeR IF GO…
function LAB04ex1 % NOTE: you CAN run this type of function m file as a script b
function LAB04ex1 % NOTE: you CAN run this type of function m file as a script because it requires no inputs. Click the Green arrow above the "Run" tab t0 = 0; tf = 40; % initial …
function LASTONE clear; dt = .1; tspan = [0:dt:20]; IN = zeros(1,length(tspan));
function LASTONE clear; dt = .1; tspan = [0:dt:20]; IN = zeros(1,length(tspan)); IN(8 <= tspan < 8.1) = 10; KOB = 0; KLB = 0.5; KBO = 0.9; KBL = 0.8; KLO = 0.3; y0 = [0 0]; …
function Mat = makemat(M1,M2,M3) Mat = M1; %replace with your code end Write a M
function Mat = makemat(M1,M2,M3) Mat = M1; %replace with your code end Write a MATLAB function M-file named make mat to receive three row arrays as input, and from them, create an…
function Solve() on c++ for solving the sudoku puzzle •If A is a Sudoku object,A
function Solve() on c++ for solving the sudoku puzzle •If A is a Sudoku object,A.Solve(); solves the puzzle resulting in a complete and valid grid forA. •You can assume the input …
function Surprise(){ var number = document.favorites.number.value; var color = d
function Surprise(){ var number = document.favorites.number.value; var color = document.favorites.color.value; var count = 1; //intializationwhile(count<=number){//condition if…
function TicTacToe() board = [ ... [\' \', \' \', \' \']; ... [\' \', \' \', \'
function TicTacToe() board = [ ... [' ', ' ', ' ']; ... [' ', ' ', ' ']; ... [' ', ' ', ' '] ... ]; turn = 1; %% human: while ~GameOver(board) Draw(board); if turn == 1 %% human's…
function [ y ] = MyExp( x,n ) % % Function: y = MyExp( x, n ) % Uses the Taylor
function [ y ] = MyExp( x,n ) % % Function: y = MyExp( x, n ) % Uses the Taylor series expansion for exp(x), with n terms, % to compute an approximation to exp(x). % % Input: x = …
function [A B] = ABCs_iteration(vec, num) \\ % ABCs of Iteration % % Directions:
function [A B] = ABCs_iteration(vec, num) % ABCs of Iteration % % Directions: % Write the code to satisify the following directions. For each part, store % your answer in the vari…
function [R] = myNewton1(f, x0, tol) which takes as inputf: a function handle x0
function [R] = myNewton1(f, x0, tol) which takes as inputf: a function handle x0: the initial guess of the root tol: a tolerance above which the algorithm will keep iterating. Tip…
function [b] = Avg_nbd (a) ............. end in which every element of \'b\' is
function [b] = Avg_nbd (a) ............. end in which every element of 'b' is the average of every element of 'a' and its immediate neighbors. For example, the function should wor…
function [color] = tempToColor(temp) % This function turns a temperature into %
function [color] = tempToColor(temp) % This function turns a temperature into % different colors based on that temp. persistent map if isempty(map) map = __ ; end end % this i…
function [df] = numericalDerivative(x,f,type); n = length(x); h = x(2)- x(1); if
function [df] = numericalDerivative(x,f,type); n = length(x); h = x(2)- x(1); if strcmp(type, 'FL') % Forward Difference for i = 1:n-1 df(i) = (f(i…
function [energy, fx, fy] = vanderWaals(x, y) eps4 = 0.2824 * 4.0; rmin = 3.361;
function [energy, fx, fy] = vanderWaals(x, y) eps4 = 0.2824 * 4.0; rmin = 3.361; rmin6 = rmin^6; rmin12 = rmin^12; nAtoms = length(x); % Zero out energy. energy = 0; % Zero out fo…
function [fs,nf] =prime_factors_sp(v) %written by...... %this program will find
function [fs,nf] =prime_factors_sp(v) %written by...... %this program will find prime factors v=700 lf=round(v/2),tf=1;fn=1,nf(fn)=0,flag=0, while tf<lf & v~=1 tf=tf+1 t=v/…
function [odd even] = OddEvenlnd(b) %replace the line below with code to assign
function [odd even] = OddEvenlnd(b) %replace the line below with code to assign to variable odd the contents in the odd indices of input variable b b = [8 -3 0 7 -6 -3 1 8 7 2]; o…
function [outputs] fit disks(inputs) Initialize required arrays/data uhile (stop
function [outputs] fit disks(inputs) Initialize required arrays/data uhile (stopping criterion) . Use randi() function to generate a circle with randon radius and randon coordinat…
function [outputs] function_name (inputs) % Name % Date % Function description %
function [outputs] function_name (inputs) % Name % Date % Function description %Description of inputs, including units % Description of outputs,including units % Any test cases yo…
function [terms, approx] = approx_sin(x , thereshold) terms = 0; real = sin(x);
function [terms, approx] = approx_sin(x , thereshold) terms = 0; real = sin(x); y=0; while abs((real - y)/ real) ~= thereshold for i = 1:10 y=(-1)^(i+1) * x.^(2*i-1)/ factorial(2*…
function [trap,h ] = trapezoidrule(fun,a,b,N); format long h =(b-a)/N; trap = (f
function [trap,h ] = trapezoidrule(fun,a,b,N); format long h =(b-a)/N; trap = (fun(a)+fun(b))/2; x = a + h.*(1:N-1); trap = trap + sum(fun(x)); trap = h*trap; this function is giv…
function [x,y,y0] = trough_create( Fun,EndPoint); x=linspace(0,EndPoint,64); y=f
function [x,y,y0] = trough_create( Fun,EndPoint); x=linspace(0,EndPoint,64); y=feval(Fun,x); y0=y(1)*ones(size(x)); this code is not working n this exercise, you will create a fun…
function [x] = example53(xinitial) % example53.m: 3-position synthesis for 4-bar
function [x] = example53(xinitial) % example53.m: 3-position synthesis for 4-bar linkage % for the specifications in problem 5-3 in the textbook % Input: % xinitial (optional) …
function called MinMax ( ) is used to determine the smallest andlargest valued e
function called MinMax ( ) is used to determine the smallest andlargest valued elements given three floating point variables. Anexample of how it is called is shown below: void ma…
function dataAnalysis Type function dataAnalysis in the box. Do not include PHP
function dataAnalysis Type function dataAnalysis in the box. Do not include PHP tags: LANGUAGE TO USE PHP INSTRUCTIONS Write a function named "dataAnalysis" that accepts 3 paramet…
function f = myfunc(x,a,b) f = (x-a).^2 + b; Please supply the code. Thank you!
function f = myfunc(x,a,b) f = (x-a).^2 + b; Please supply the code. Thank you! In this exercise you will be using fminsearch and function handles to find the minimum value of a f…
function getParentwithclass (doc, className) I/ finish this function so // the a
function getParentwithclass (doc, className) I/ finish this function so // the asserts don't fail let parentTrap // test data foo: bar class: com.trivir.top', parent: ( foo: "baz,…
function md ( nd, np, step_num, dt ) %******************************************
function md ( nd, np, step_num, dt ) %*****************************************************************************80 % %% MD is the main program for the molecular dynamics simula…
function md ( nd, np, step_num, dt ) %******************************************
function md ( nd, np, step_num, dt ) %*****************************************************************************80 % %% MD is the main program for the molecular dynamics simula…
function md ( nd, np, step_num, dt ) %******************************************
function md ( nd, np, step_num, dt ) %*****************************************************************************80 % %% MD is the main program for the molecular dynamics simula…
function name: schrodingersCat Need the MATLAB code for this one! Much appreciat
function name: schrodingersCat Need the MATLAB code for this one! Much appreciated Function Name: schrodingersCat Inputs: 1. (struct) A MxN structure array 2. (double) A 1x2 vecto…
function newtondd(x,y) % Newton divided difference disp(\' Newton divided differ
function newtondd(x,y) % Newton divided difference disp(' Newton divided difference') disp('______________________________________________________________________') disp(' x y f[,…
function of each line of following script :-- 1) The following shell script illu
function of each line of following script :-- 1) The following shell script illustrates the use of the read and echo commands. Enter it using vi the file should be named mycat. Se…
function out = weighted(ha, qa, ea) % place the code for the weighetd sub-funcit
function out = weighted(ha, qa, ea) % place the code for the weighetd sub-funciton here end %--------------------------------- function out = finalGrade(in) % place your code for …
function res = goo(x,y) i = 1; j=1; res=[ ]; while i
function res = goo(x,y) i = 1; j=1; res=[ ]; while i<=length(x) & j<=length(y) a = x(i); b=y(j); if a<b res=[res, a]; i = i+1; elseif a>b res=[res, b]; j=j+1; else…
function reverseDigits prints the digits of a number in reverse order. For examp
function reverseDigits prints the digits of a number in reverse order. For example, for 12345 it prints 54321 and for 287 it prints 782. The function numDigits finds the number of…
function s = eigenvalues(A, Nit, epsilon) % function that computes the eigenvalu
function s = eigenvalues(A, Nit, epsilon) % function that computes the eigenvalues of a matrix A using the QR % iteration algorithm with a maximum of Nit iterations or until a trh…
function sortedarray=loc_arraySort(array) sortedarray={}; while ~isempty(array)
function sortedarray=loc_arraySort(array) sortedarray={}; while ~isempty(array) [m,pos]=loc_findSmallest(array); sortedarray=[sortedarray,m]; array=[array(1:pos-1) array(pos+1:end…
function standing_wave clc; Vo_plus=1; f = figure(1); set(f,\'Color\',[0.941 0.9
function standing_wave clc; Vo_plus=1; f = figure(1); set(f,'Color',[0.941 0.941 0.941]) ZL_real=50; ZL_imag=0; ZL=ZL_real+ZL_imag*1j; Zo=50; gamma=(ZL-Zo)/(ZL+Zo); mag_gamma=abs(…
Subject
Web development and programming
Use Browse or pick another subject.