Explain how and why you have designed your program

Assignment Help Programming Languages
Reference no: EM131806829

1. Guessing game in C

Requirements:

- When the program starts, a random whole number, n, is selected where:
n >= 1 and n <= 100
- The user enters a guess and the program displays
? "higher" if the guess is less n
? "lower" if the guess is greater than n
? "correct" if the guess is equal to n
- The game continues until the user enters a correct guess and then the program quits
- When the program quits, the total number of guesses is displayed as the score

2. Screen saver-bouncing ball in Matlab

Requirements:

- When the program starts, the program needs to read the radius of a circle from the user
- You program should then display the circle on the screen in a random location
- The circle continues to move along a random path until it hits the edge of the window
- The circle bounces off the window and the process is repeated indefinitely
- You can get extra marks if multiple circles bounce and for any visual/audio effects (1%)

3. Password checker in Matlab or C

Requirements:

These days, many systems require users to have passwords that meet certain criteria to make them harder to compromise. At Griffith College, your password must be of a certain minimum length (8 characters) and contain upper and lower case letters and at least 1 number.

For this problem, you need to write a function to verify the integrity of a password. The function should have the following formal definition.

function [ output ] = isValidPassword ( password )

Implement the above method to verify that a provided password meets the following criteria:
- Password must be at least 8 characters long
- Password must contain at least 1 number, 1 lowercase letter and 1 uppercase letter
- Password must contain at least 1 non alpha-numeric character from the below list:
o ! @ # $ % ^ & * ( ) [ ] \ | ? /
- Password should NOT contain any character that is not a letter or a number or on the above list.

When you finish the method, write a scrip file and test the function with several examples. You may use a while loop to get the user to type a password and check it as well.

4. Hangman game in Matlab or C

Requirements:

Difficulty: 4

- Must use plots
- The program reads the position of mouse every time the user clicks on the plot and draws a line from the previous and current position of the mouse (assuming that the first line is drawn from 0,0 to the position of the mouse in first click.
- The program displays a corresponding polygon in a window
- There program must allow the user to draw lines until he clicks somewhere close to the origin (0±0.1, 0±0.1)
- After clicking near the origin, your program should calculate the perimeter of the polygon and display it either in the figure or command window.

Tips:

You can easily get the position of mouse using [X,Y]=ginput(1); where 1 is the number of points that you would like to read from the mouse at once

Documentation:

For each question, you need to write a section as follows:

Section 1:
- User manual
- Overall structure and operation of your program
- Incomplete submission only: how far have you completed? What was the main challenge?

Section 2:
Flow chart and pseudo code

Section 3: How? Why?
You need to explain how and why you have designed your program that way. Particularly, explain why you have used if-elseif-else and not if-else, why while loop, why for loop , etc

Reference no: EM131806829

Questions Cloud

Discuss the consolidation elimination entries : Rounded to the nearest dollar, the consolidation elimination entries at 30 June 2017 in relation to the sale of plant are which of the following
Prepare a schedule of estimated borrowings of principal : Prepare a schedule of estimated borrowings and repayments of principal and interest for 2008 and its quarters
Determine the pessimistic rates of return : A heat exchanger is being installed as part of a plant modernization program. It costs $80,000, including installation, and is expected to reduce the overall.
Find the equivalent uniform annual cost : The purchase of a used pickup for $9000 is being considered. Records for other vehicles show that costs for oil, tires, and repairs about equal the cost.
Explain how and why you have designed your program : the program needs to read the radius of a circle from the user - You program should then display the circle on the screen in a random location
Differences between differentiation strategy-cost leadership : What are the differences between differentiation strategy and cost leadership and how they differ in their impact on performance?
What are the effects on net income : At the end of three months, the spot rate is $1.37 per euro, and Quality delivers the merchandise, collecting 400,000 euros. What are the effects on net income
Discuss what happens to the unit contribution margin : what happens to the Unit contribution margin, contribution margin ratio, and the break even in units
What is the present worth for each estimated value : A new engineer is evaluating whether to use a higher-voltage transmission line. It will cost $250,000 more initially, but it will reduce transmission losses.

Reviews

Write a Review

Programming Languages Questions & Answers

  Write and test a class for a queue of objects

Your assignment is to write and test a class for a queue of objects. You may use any object class of your choice as the data for the queue.

  Create artefacts to encapsulate the steps needed

How to create your own functions - Create a program named InvestmentCal, which will read and write values from the Terminal - Pass Task 2.4: My Functions

  How to write a constructor

I'm trying to draw a diagram for the following problem statement. I need to create the function in JavaScript and call it in an HTML file.

  Write program to find smallest-largest value from n numbers

Write down program which will determine the smallest, largest and average values in collection of N numbers. Get value of N before scanning each value in collection of N numbers.

  Create class polynomial is array of terms

Create the class Polynomial. Internal representation of the Polynomial is the array of terms. Each term contains the coefficient and the exponent.

  Compute service charge customer owes for writing bad check

Create the output and sketch the flowchart or write pseudocode for program which computes service charge a customer owes for writing bad check.

  Write program to calculate student-s quiz average

Write a program that will calculate a student's quiz average. The program should prompt the user for the number of quizzes and then ask the user for each quiz grade.

  How to complete input assertion and output assertion

Complete input assertion and output assertion which will guarantee that student always ends game passing class. Add assertions and invariants which can help reason about claim.

  Application that calculates the cost of all the supplies

Write an application that calculates the cost of all the supplies added to the user's shopping list (Fig. 22.18). The application should contain two Li stBoxes. The first contains all the supplies offered and their respective prices. Users should ..

  Calculate the area and perimeter of a rectangle

Design and write a program, using functions, that calculates the area and perimeter of a rectangle whose dimensions (length and width) are provided by a user.

  Write functions to change and display attributes

Write class player which contains attributes for players name,average and team. Write three functions to change and display these attributes.

  Write a program that will help you make a decision

Write a program that will help you make a decision. Calculate $10/hr earnings for a user specified number of hours, calculate the earnings for a given number of hours if you chose the $.10 /hour that doubles each hour or Exit.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd