Identify 1 (one) task you perform regularly, such as cooking, mowing the lawn, or driving a car: - Write a short, structured design (pseudo code only) that accomplishes this task. - Think about this task in an object-oriented way, and identify the objects involved in the task.
Alg. : MIN (a,..., a) m <--- a; for I <--- 2 to n if a < m then m <---a; Compute T(n), the running time for this algorithm.
Provide the analysis and pseudo code only (no diagrams are required). - Create Student Grade File - Display Contents of Grade File For each of the following problems, use the top-down modular approach and pseudocode to design a suitable program to solve it. 1. Input names of students from the user, terminated by ZZZ, and
There is a one-way bridge that can hold up to three cars. Cars arrive at one end of the bridge and exit the bridge at the other end. Traffic is allowed only in the one, available, direction. Describe a solution to this synchronization problem that should include: A)Definition of appropriate semaphores, B)Description of the
Please assist with the following (see attachment). Thank you.
I am asked to generate a set of INPUT TEST VALUES. Is that included into this control structure, or do I have to create a whole different set of variables? (if you have to create an extended set of variables please return posting so I can add more credits.) Declared Variables Input: salary in real Output: tax in real
Create a pseudocode algorithm you would write for a simple task like making a turkey sandwich, as well as three simple control structures that could be used to create this algorithm. What do you think is the most difficult part of creating the algorithm? What can you do to make this process easier?
Write an algorithm, using pseudo code, to perform one of the following tasks,* Given a string of numbers, identify all of the substrings that form numbers that are divisible by 3. For example, applying the algorithm on the string 37540 should produce the following substrings (not necessarily in this order): 0; 3; 75; 54; 375; 5
Using the UML diagram and variable list , create Pseudocode for the program. How do I created the pseudocode? 1. client type (regular or discounted) 2. discount value (10% or $10) 3. regular price ($35) 4. client name (or client number) 5. client mailing address 6. invoice number 7. incoice date 8. billing
The Unit 4 Topic 2 Presentation contains pseudo-code for a program which processes a client file (the master file) and a service file (the transaction file) by updating the clientTotal field in the client file according to the serviceTotal field in the service file. Create a flowchart of the program, using the pseudo-code fro
Write and explain the pseudocode to check whether there are 2 items in an array of n integers so that their total is 100.
A program which processes a client file (the master file) and a service file (the transaction file) by updating the clientTotal field in the client file according to the serviceTotal field in the service file. Create a flowchart of the program pseudo-code start perform initialTasks( ) while endOfFiles = false perfor
You want to produce a report of your movie collection. Which fields would you use, and which would be the data types of each of those fields? Create a flowchart and pseudo-code for generating a report that prints all of the movies, with all movies made by the same director on one page, as well as the number of movies by each
Design the unit testing framework for the ATM machine in the style of JUnit Test Infected: with the following functionalities: check balance, deposit cash, and withdraw cash. The framework could be developed in pseudo-code
START Declare TestScore as integer Write "Enter your Test Score and Your Grade will be Displayed" INPUT Test Score If TestScore>90 Write "Your Grade is an A" Else IF TestScore>80 Write "Your Grade is an B" Else IF TestScore>70 Write "Your Grade is an C" Else IF TestScore>60 Write "Your Grade is an D" Else W
Start Declare Testscore as integer Write "Enter your Test Score and Your Grade will be displayed" INPUT Test score IF TestScore > 90 Write "Your Grade is an A" Else If TestScore > 80 Write "Your Grade is an B" Else If Testscore > 70 Write "Your Grade is an C" Else If TestScore > 60 Write "Your
Declare Num1, Num2, and Num3 as integers Declare Average as real Write "Welcome to the program. Enter 3 positive numbers", INPUT Num1, Num2, Num3 Average = (Num1 + Num2 +Num3) / 3 Write "The average of three numbers entered is", Average Stop 1. List all variable name(s) used in this program 2. List each prompt that is
A. The Better Bagel Store Bakes three different types of bagels: plain, cinnamon raisin and sesame seed b. Output - consist of a screen display showing the number of bins needed for each type of bagel as well as a final total showing the total number of bins required. c. Input - consist of the number of each type of bagel (e.g
The Presentation contains pseudo-code for a program which processes a client file (the master file) and a service file (the transaction file) by updating the clientTotal field in the client file according to the serviceTotal field in the service file. Create a flowchart and hiearachy chart of the program, using the pseudo-cod
A student borrows 3,000 at an interest rate of 2 % per month on the unpaid balance. If the student pays $200 at the end of each month, what is the remaining balance at the end of one year? How much interest has the student paid for the year? Output: Output consists of a screen display showing the balance each month, remai
Pseudocode contains pseudo-code for a program which processes a client file (the master file) and a service file (the transaction file) by updating the clientTotal field in the client file according to the serviceTotal field in the service file. The pseudo-code is attached below as word form. Thanks very much.
Hello, I need a help with working with set theory for pre, post conditions and logic conditions for a board game I wrote in Java. The Java part is easy, figuring out to express what I using set theory is difficult. A brief set theory overview as it relates to documentation Java code would be helpful and specific explanation
Let us assume you are the manager of a firm and have list of employees with the number of days they were absent from work. If you want to find the top 10 absentees in the firm you will need to sort the list in descending order.
Input File FirstName LastName SSNumber Grade start perform housekeeping() while not eof perform mainLoop() endwhile perform finish() stop housekeeping() Variables declare variables num x open file char foundit read studentInfo studentInfo return char studentName num s
Create a flowchart and pseudo-code for the following problem: You have a file containing the grades of students from Beginning Programming, along with the students' information. Your part of the program has to loop through the records, and make sure that any student who has received a 'D', 'W', 'I', or 'F' in the course will
Part 1: Write pseudo-code for the following problem: You have a file containing sporting goods that are sold online. Each item record contains the item id, item name, item description, item category, item price, and the units in stock. If the category of the item is either "tennis" or "golf", then the price will be discoun
Calculating a discount that customers receive based on the value of their order. If the total amount ordered is less than $20.00, no discount will be given. If the total amount is between $20.00 and $50.00, a discount of 5% will be givem. If the total amount is between $20.00 and $50.00, a discount of 5%will be given. If the tot
A problem about binary trees in java. Please see attachment. The original course website where the problem comes from is here, I think it will be helpful if you take a look at it first: www.student.math.uwaterloo.ca/~cs134
A program is required to calculate the total resistance in a circuit. The resistors can either be in series or in parallel but not both. The number of resistors in the circuit can range from 2 to 10. How do I get started?