Use decision logic to solve the following problem with pseudo
code. Ask for a student's
major and if they have programming experience (Y/N). If they are a
"CIS" major and
programming experience ask them if it is in python. If not python
ask them what
language?
Note: Is solution does not require the entire program but just the pseudo-code related to the question.
In the code inputs are: Major, Programming Experience,
Programming Language Python, Programming Language.
Decisions: Whether major is "CIS" or not, whether having
programming experience or not, whether experience in python or
not.
Output: Nothing.
PSEUDO CODE:
Take Major from the user
Take Programming Experience as Y / N from the user
if (Major == "CIS" && Programming Experience ==
'Y'){
Ask programming language = Python
Take the reply from the user
if (Programming language != Python){
Take Programming language from user
}
}
end

Use decision logic to solve the following problem with pseudo code. Ask for a student's major...
Describe a programming problem that would require the use of an accumulator write the pseudo code necessary to solve your programming problem.
IN JAVASCRIPT
5. Write the pseudo code to solve the following problem (10pts/10pts) You are asked to write a calculator program. Your calculator must perform Addition, Subtraction, Division and Multiplication. The user will enter two numbers and then an operator. If the user enters an operator other than the four mentioned the program will display an error message otherwise it will display the answer. Demonstrate use of an if statement
Practice Problem [no points]: You should read and understand Fibonacci algorithm, write a code in a high level language of your choice and in Assembly to find a Fibonacci number and check your result. At the end of this assignment a possible solution to this problem is given both in Python and MIPS assembler. Note that it would have been possible to write the Python differently to achieve the same function. . [20 points] Write and debug a MIPS program...
Hi, please provide a code solution written in the C++ language
to the following programming problem. The answer you provide has to
include code comments, as it is being explained to a person with no
technical background. In your answer, please show which portion of
the code is a .cpp and which is a .h (if used). We are asked to
separate them out (ie. main.cpp, classname.cpp, headername.h).
Please show the output of your program to show it compiled error...
Design an algorithm for the following description. Solution can
be done in pseudo-code or steps of the algorithm.
Describe and analyze an algorithm that takes an unsorted array A of n integers (in an unbounded range) and an integer k, and divides A into k equal-sized groups, such that the integers in the first group are lower than the integers in the second group, and the integers in the second group are lower than the integers in the third group,...
Write an algorithm in to solve a problem of your interest and evaluate your algorithm's goodness. (Python Language) 1. Clearly state what is the problem of your interest 2. Represent your algorithm in pseudo code. Note that each step in the algorithm must be a primitive with a clear definition without ambiguity for a computer (machine or human) to execute. For example, you can assume the step to \click on a html hyperlink" a primitive in your algorithm. You can...
Question 1 The following statements illustrate which concept below? var1 = 1 while var1 != 0: var1 = var1+ 1 A. A P complex problem. B. A deterministic problem. C. An NP problem. D. The halting problem. Question 2 If a function is computable, A. both a Turing machine and a Bare Bones Language program can solve it . B. a Turing machine can solve it, but a Bare Bones Language program cannot . C. a Turing machine cannot solve...
Question 1
QUESTION 2
Use the attached Matlab code as a basis to solve the following ordinary differential equation using Euler's method, with timestep of 0.1, from t-0to t-100. d)0) -0 - sin (5vt cos(у Plot y versus t from t=0 to t=100. How many local maxima are on this interval(do not include end points). Be careful to count them all! Answer should be an integer 1 w% Matlab code for the solution of Module 2 3 dt-9.1; %dt is...
This problem demonstrates the use of import module. The Python programming language has many strengths, but one of its best is the availability to use many existing modules for various tasks, and you do not need to be an experienced computer programmer to start using these modules. We have given you some incomplete code; note that the very first line of that code contains an import statement as follows: import math This statement enables your program to use a math...
i
need the solution in pseudo code please.
4 Dynamic Programmii Consider the following problem based on the transformation of a sequence (or collection) of coloured disks. Assume that you have a very large collection of disks, each with an integer value representing the disk colour from the range [0, cl. For example, the colour mapping might be: O-red, 1-yellow, 2-blue, 3-pink,. c-black For a given sequence of coloured disks eg.,0,1,2,3,4), at each time step (or iteration) you are only...