Share
Explore BrainMass

Pseudocode

Three Simple Pseudocode Examples

Write a pseudocode statement that generates a random number in the range of 1 through 100 and assigns it to a variable named rand. Design a function named timesTen that accepts an Integer argument. When the function is called, it should return the value of its argument multiplied times 10. Design a function named getFirst

A C program to convert Celsius to Fahrenheit

Program (code.c) & (codev2.c) to convert Fahrenheit to Celsius. Simplistic, DOS based so that I may digest and learn. Program 1: Ask the user to input a Fahrenheit temperature, as a decimal number. Make clear what the user should enter, for example, "enter a whole number" or "please use the format xxx.xx.". Get the temperat

Java code translated into pseudo-code

Public class testOperators { public static void main(String[] args) { int x; int y = 12 double z = 13.0; x = 14 System.out.println("x + y + z = " + (x + y +z)); x += y; y--; z++; z *= x; System.out.println("x + y + z = " + (x + y + z)); } }

Object oriented data and processes

I need assistance so I can write an object-oriented design for a system that keeps tracks of CD and DVD collection. I need the classes, associated data, and operations for the classes. Also, the pseudocode for each of the classes.

Object-Oriented Design

Generate an object-oriented design for a system that keeps tracks of your CD and DVD collection. ? Identify each of the classes, associated data, and operations for the classes. ? Generate the pseudocode for each of the classes as demonstrated on p. 251. ? Draw a GUI that will create the objects and provide access to each obj

Top-down Modular Approach and Pseudocode

Provide the analysis and pseudocode only (no diagrams are required). 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 create a data file GRADES with records of the form: student

Compute the Unit Price for Products Sold Using Pseudocode

The following problem can be solved by a program that performs three basic tasks: Input Data, Process Data, and Output Results. Use a pseudocode to design a suitable program for solving it. The manager of the Super Supermarket would like to be able to compute the unit price for products sold there. To do this, the program sho

Payroll Program

Create a non-GUI based Java application that calculates weekly pay for an employee. The application should display text that requests the user input the name of the employee, the hourly rate, and the number of hours worked for that week. The application should then print out the name of the employee and the weekly pay amount. I

Shell Script to Convert Students Marks to Grades

Also I am trying to append my newly created PS1 Command Prompt to a file how do I do that? Please also Provide the step by step instructions so that I too can try and do these exercises. Project 6-4 In this project, you will convert pseudo code that uses a decision structure into a shell script. The script then will accep

Linux Shell Script to Compute the Bonus for a Salesperson

Convert the following pseudocode into a Bash script: - Read SalesPerson and QuarterlySales from the keyboard. - Display an appropriate message regarding the bonus when the QuarterlySales for the SalesPerson falls within these ranges: $1,000,000 and above : Bonus = $1,500 $100,000 to $999,999 : Bonus = $750 $9

Pseudocode Examples

Task: Using the pseudocode for the program, you identify the aspects of the program that can be reusable (identified for you in 1 - 5) and write/rewrite it so it can be reused. This is what needs to be done: You rewrite your pseudocode to implement this reusable code. 1. I WOULD LIKE PSEUDOCODE FOR THE SPECIFIC 5 CODES THAT

Hierarchy Chart

Your local community college is seeking your help to develop a hierarchy chart. The college administrator provides you with the following information. Students with less than 16 hours of coursework are considered freshmen, students with 17 to 32 hours are sophomores, students with 33 to 48 hours are juniors, and students with mo

Design a Flowchart and Write a Pseudocode for a Problem

See the attached file for the full problem. 1. Design the flowchart and write the pseudocode for the following problem. The Literary Honor Society needs a list of students who are English major, have a grade point average of 3.5 or higher and have completed 45 or more credit hours. The student record file includes the fol

Pseudo-Code for Driving a Car and It's Object Oriented Concept

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.

Computer Science Programming Problem

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

Semaphores

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

How to generate a set of input test values from a code

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

Creating a Pseudocode Algorithm

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?

Pseudocode to Process Numerical Substrings

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

Pseudocode is formulated

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

Create A Flowchart of the pseudocode

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

Flowchart for pseudo-code

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

Design the unit testing framework for the ATM machine

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

Variables, prompts, and output.

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

Variables, prompts, pseudocode, and flowcharts

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