Ecosyste.ms: Repos

An open API service providing repository metadata for many open source software ecosystems.

GitHub topics: whileloops

bell-kevin/InputValidationProject

Create a project that asks the user for a minimum integer, then a maximum integer, then a value between those two numbers. The program needs to validate that the second number is greater than the first number, and it also needs to validate that the third number is between the first two numbers. Use 3 While loops, which will repeat over and over until the input value meets the criteria. Do not use any IF structures. Do not prompt for the input first, then test it in a While loop (priming the input) – instead, prompt for the data and read it from the scanner inside the loop. To do that, set the values for the 3 variables to something that is clearly invalid (like -1), so that the test in the While loop will always start out true. For example, if a variable named “minimum” is set to -1 when it is declared, then a While loop that tests if the minimum is less than 1 will be true, and the code inside the While loop will execute, which should prompt the user for the value, then read the data from the scanner. Note that there must be a title and your name at the top of the output. The prompts must allow the user to enter input to the right of the same line as the prompt. Note that the same prompt is repeated if the input was invalid. Once a valid number is input, the next prompt asks for new data. Be sure to include the minimum and maximum values in the prompt for the middle value. Echo the values as shown above once valid values have been entered. Take a screenshot of the running program that matches the sample session, and include the code above it. Run the program again and enter different values, with at least one invalid entry in each section, then take a screenshot of the results. Pay careful attention to the rubric for this assignment. Even if not specifically mentioned in the assignment, you are responsible for the following: Use descriptive names for all variables Add comments describing the use or meaning of variables Do NOT include literal values in any calculations, always use variables Always include a header in the output with a descriptive title and your name If asking for input, make sure the user types on the same line as the question Where sample sessions are provided, output from your project must match it Note that you must use correct formatting in the code -- appropriate indentation is most important. You can use Shift-Alt-F to have NetBeans automatically format the code correctly. If the formatting is incorrect, it will be returned to you for changes with a grade of zero. Submission: the specified screenshots and the root folder for the project Note: You need to submit the whole project for these assignments. In File Explorer, go to the location where you created the project. There will be a folder with the name of your project -- that is the root folder of the project. If you submit the root folder of the project, the instructor can run it on a different machine to grade it. If you don't submit the proper folder, it won't run on another machine, and the assignment will be marked with a zero.

Language: Java - Size: 42 KB - Last synced: about 1 month ago - Pushed: almost 2 years ago - Stars: 0 - Forks: 0

John-Daniels/Dart-calculator

A multipurpose calculator(e.g quadratic equation solver) built with the Dart sdk.

Language: Dart - Size: 2.17 MB - Last synced: about 1 month ago - Pushed: about 2 years ago - Stars: 0 - Forks: 0

imDarshanGK/Loops-python

It is used to execute a statement or Group of statement for multiple time.

Language: Python - Size: 27.3 KB - Last synced: about 1 month ago - Pushed: about 1 month ago - Stars: 0 - Forks: 0

SunlongNgouv/Py_game

Py_game is a classic game deployed python codes. This game is about food variety identification. There are some delicious food images responding to some questions. Download & play now!

Language: Jupyter Notebook - Size: 1.13 MB - Last synced: 5 months ago - Pushed: over 2 years ago - Stars: 0 - Forks: 0

Kharukulavat/ITS100-Introduction-to-Computers-and-Programming-Course-Lab-Exercises

All weekly lab exercises & homework in ITS100 Introduction to Computers and Programming Course

Language: Python - Size: 37.1 KB - Last synced: 4 months ago - Pushed: 11 months ago - Stars: 1 - Forks: 0

Rohit-rk21/MTH4000

Programming in Python 1 Module QMUL year 1

Language: Jupyter Notebook - Size: 29.3 KB - Last synced: 6 months ago - Pushed: 6 months ago - Stars: 0 - Forks: 0

WillCaton2350/randomPasswordGenerator

Encryption tool made from a while-loop with nested conditional statements. It also holds two for-loops that iterate over a list of specified characters

Language: Python - Size: 8.79 KB - Last synced: 7 months ago - Pushed: 9 months ago - Stars: 0 - Forks: 0

cjae/PrimeChecker

A basic IOS app built with swift and Xcode to help introduce some basic concepts of IOS development to beginners

Language: Swift - Size: 16.6 KB - Last synced: 8 months ago - Pushed: almost 7 years ago - Stars: 2 - Forks: 0

einnemee/CaptialOfNetherlands

What is the capital of The Netherlands?

Language: Python - Size: 2.93 KB - Last synced: 11 months ago - Pushed: 11 months ago - Stars: 1 - Forks: 0

karthiktr27597/ZENTASK-5

Programs in anonymous function & IIFE and Arrow function

Language: JavaScript - Size: 3.91 KB - Last synced: about 1 year ago - Pushed: over 1 year ago - Stars: 0 - Forks: 0

echandlerdavis/hangman-java

My first java project from scratch - a simple hangman game I completed in about three hours total.

Language: Java - Size: 241 KB - Last synced: over 1 year ago - Pushed: over 1 year ago - Stars: 0 - Forks: 0

essien1990/Unix_Scripts

AIX shell Scripts for analysing the network status of a client and server.

Language: Shell - Size: 3.91 KB - Last synced: over 1 year ago - Pushed: over 2 years ago - Stars: 1 - Forks: 0

AkashBorgalli/Python-Assignments

Different Concepts in python POC's

Language: Jupyter Notebook - Size: 109 KB - Last synced: about 1 year ago - Pushed: about 3 years ago - Stars: 2 - Forks: 2

AkashBorgalli/Python-Basic-Programming-Assignment

Basic Python Programming Assignment using the given topics

Language: Jupyter Notebook - Size: 45.9 KB - Last synced: about 1 year ago - Pushed: almost 2 years ago - Stars: 1 - Forks: 0

DavidVSantiago/ProgBasica

Códigos do curso gratuito de programação básica da Algol.dev

Language: C# - Size: 306 KB - Last synced: about 1 year ago - Pushed: over 2 years ago - Stars: 0 - Forks: 0

Shanmuga-raj/Rock-Paper-Scissor-Game

Program For Rock Paper Scissor using Python

Language: Python - Size: 7.81 KB - Last synced: about 1 year ago - Pushed: almost 3 years ago - Stars: 0 - Forks: 0

Piyush123-grumpy/Class_acitvity

python basic

Language: Python - Size: 3.8 MB - Last synced: about 1 year ago - Pushed: about 3 years ago - Stars: 0 - Forks: 0

JulianRendon/MyFirstEclipseGitRepo

First repository I created on Eclipse

Language: Java - Size: 1.95 KB - Last synced: over 1 year ago - Pushed: about 5 years ago - Stars: 0 - Forks: 0

smmcgrath/LightTheremin

Building a Light Theremin musical instrument with the Arduino board. A phototransistor is used to measure the amount of light reaching the instrument. This is used to estimate how close the musicians hand is to the instrument at a given moment. More specifically the variation of voltage is used to guage the distance. This is then mapped to a range of sound frequencies. A piezo buzzer is used to produce the sound.

Language: Arduino - Size: 2.47 MB - Last synced: about 1 year ago - Pushed: over 6 years ago - Stars: 0 - Forks: 0

smmcgrath/DigitCounter

Java program that counts the number of digits in an integer entered by the user. The program repeatedly asks for input and displays the number of digits the input integer has. This implementation converts the users input to a string and uses the .length( ) method to find the number of characters in it.

Language: Java - Size: 1.95 KB - Last synced: about 1 year ago - Pushed: over 6 years ago - Stars: 0 - Forks: 0

smmcgrath/Beer-Song

Simple java script designed to iterate through "99 bottles of beer on the wall" using while loops and if statements. Built in a Linux Teminal environment using a raspberry pi.

Language: Java - Size: 1.95 KB - Last synced: about 1 year ago - Pushed: over 6 years ago - Stars: 0 - Forks: 0