1,474 Answered Questions for the topic computer programming
06/21/22
Need assistance with C code, not running
#include <stdio.h>struct students{ //struct studentchar FirstName; //String to store first namechar secondName; //string to store second nameint ID; //student IDfloat GPA; //student gpachar...
more
06/18/22
Please create a flowchart that will arrange these variables from highest to lowest
Create a flowchart that will arrange the values of variables F = 38, S = 13, U= 592 ,W 134, V=757 from highest to lowest order
Computer Programming
06/16/22
Branches: Leap Year
A year in the modern Gregorian Calendar consists of 365 days. In reality, the earth takes longer to rotate around the sun. To account for the difference in time, every 4 years, a leap year takes...
more
06/14/22
Write a Programme using VAL for following weld to be made
Write a Programme using VAL for palletizing operation as shown in fig. The
robot must pick up parts from an incoming conveyor & deposit them on to pallet.
The pallet has four rows that are...
more
05/23/22
Find the expansion base 7 of 67 and Compute (37^15 + 27 × 43) mod 6 using modular arithmetic.
Find the expansion base 7 of 67Compute (3715 + 27 × 43) mod 6 using modular arithmetic (without the use of a calculator). Show all your work.
05/23/22
Check whether the following integers are multiplicative inverses of 3 mod 5.
Check whether the following integers are multiplicative inverses of 3 mod 5. a) 6 b) 7
05/23/22
We want to find 8 in the following list: 2, 6, 5, 1, 11, 18, 8, 0.
We want to find 8 in the following list: 2, 6, 5, 1, 11, 18, 8, 0.a) Can we use Binary Search Algorithm? Justify your answer. b) If a Linear Search Algorithm is used to find 8, how many comparison...
more
05/23/22
Look at the following algorithm:
Look at the following algorithm:Input: n: real numberOutput: undisclosed
procedure x(n)
t := 1
For i := 3 to n
t := t + n
End-for
Return(t)
What is returned by the algorithm on the input 7, i.e. n...
more
05/23/22
Determine which statements are false or true. Justify your answer.
Determine which statements are false or true. Justify your answer.(a) {0, 1} ∈ {0, {0}, {1}, 1} (b) {a, b, c} ⊂ {a, {a, b}, c, {a, c}, {{{a, b, c}}}} (c) ∅ ⊆ {a, b, c} (d) {1} ∈ {{1}, 0, {{1}}}
05/23/22
Let f(x) = 4x - 7 and g(x) = 6 - 2x where f(x) : R → R, and g(x) : R → R. Find (f ◦ g)(x).
Let f(x) = 4x - 7 and g(x) = 6 - 2x where f(x) : R → R, and g(x) : R → R. Find (f ◦ g)(x).
05/23/22
Determine whether the function f(x) = 8 − 2x^2 , where f(x) : R → R, is bijective and explain why.
Determine whether the function f(x) = 8 − 2x2 , where f(x) : R → R, is bijective and explain why.
05/23/22
For the sets A = {a, b, c, d, e}, B = {a, c, e, g, n}, C = {b, c, d, e, n, w} and the universal set is U = {a, b, c, d, e, g, n, w}. Find
For the sets A = {a, b, c, d, e}, B = {a, c, e, g, n}, C = {b, c, d, e, n, w} and the universal set is U = {a, b, c, d, e, g, n, w}. Find (a) |A ∩ B ∩ C| (b) C¯(c) A¯∪(B − C)
05/23/22
Rewrite the statement ¬∃x (∀y∃tS(x, y, t) ∧ ∃tR(x, t)) so that negations appear only within predicates.
Rewrite the statement ¬∃x (∀y∃tS(x, y, t) ∧ ∃tR(x, t)) so that negations appear only within predicates.
05/17/22
please can you check my answers to these questions regarding RStudio?
Which of the following must be part of each layer in a ggplot2 object? There may be more than one correct answer.
limits
grouping variable(s)
facet
tick
aesthetic...
more
Computer Programming Computer Science
05/14/22
Haskell - I am not sure how to use the pairs function with list comprehension to solve this question in Haskell
The function pairs :: [a] -> [(a,a)] returns the list of pairs of adjacent elements of a list. For instance, pairs [3,4,5,6] = [(3,4),(4,5),(5,6)]. Use the function pairs and a list...
more
Computer Programming
05/06/22
How would Dijkstra change if we use the less than sign in the code?
Suppose we alter Dijkstra’s algorithm so that instead of the < sign, we replace it with the > sign. Let G be a directed graph that contains no cycles. Does this new version find the longest...
more
05/04/22
how is this done??
Write a complete C++ command to implement a "Sum of Numbers in Range" (sonir) program. Place all your code inside the main() routine; do not write any extra user-defined functions. To minimize your...
more
How do I make the integers in a Python parameter equate to seconds without using the built-in time module?
I am trying to make a box appear and disappear in random 1-5 second intervals. This is what I wrote:box.showturtle(box.randint(1,5))box.hideturtle(box.randint(1,5))The randint is supposed to pick...
more
Computer Programming Computer Science
04/28/22
Computer Science Code
I need the code and some explanations to the following prompt for coding because I am struggling with arrays and loops(1301 computer science)How could I create a game for combat ships? I have to...
more
04/27/22
HOW CAN THIS ERROR BE FIXED?
inlab21.cpp: In member function ‘DataType Queue::dequeue()’:inlab21.cpp:28:2: error: ‘temp’ was not declared in this scope temp=frontPtr================================// This is the default...
more
04/27/22
i got an error saying this.
main21.cpp: In function ‘int main()’:main21.cpp:49:26: error: ‘maxlength’ was not declared in this scope if(qLength>maxLength) maxlength = qLength;...
more
04/26/22
JAVA CODE NEEDS MISSING CODE
This java code below done in java swing has missing code in the TODO sections down below within the code, I need help adding these missing lines please. I have bolded them in the code:import...
more
04/26/22
Define a function OutputVal() that takes two integer parameters and outputs the product of all integers starting with the first and ending with the second parameter, followed by a newline.
Ex. if the input is 3 and 5 the output is 60 (3*4*5).
Computer Programming C Programming
04/15/22
I need help solving this question in C PROGRAM FORMAT!! THANK YOU :-)
12.11 LAB: Word frequenciesWrite a program that reads a list of words. Then, the program outputs those words and their frequencies. The input begins with an integer indicating the number of words...
more
Computer Programming C++
04/08/22
Can someone help me with this?
It is too long to explain here...so i will share a link to see where iam getting at.I already did it but i keep getting errorhttps://codeshare.io/RbrJ9W
Still looking for help? Get the right answer, fast.
Ask a question for free
Get a free answer to a quick problem.
Most questions answered within 4 hours.
OR
Find an Online Tutor Now
Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.