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 a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

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