Program which prints odd or even according to user input, Programming Languages

Assignment Help:

Note: You should pay attention on following good practices:

  • Appropriate code comments(If you make any assumptions clearly comment them in the code)
  • Indentation
  • Instructional text for the user
  • Input validation and appropriate error messages
  • Use of appropriate data types
  • Include  Both Program Code, Design Code(Pseudo code)  in your Documentation

 

Question 1:

Briefly discus about Basic Data type in procedural languages

1) Examples of Basic data types

2) Characteristic Of Each Data type

Question 2:

Write a Program that prints "Number Limit Exceeded" if the user inserts a number more than 50.

Question 3:

Write Program code to accept age from the user. If the age i s negative or zero, the Message "age cannot be negative" and "age cannot be zero" should be displayed, respectively

Question 4: 

Write a program to compute the factorial of a number, and use it to print the factorials of the numbers 1-7

Question 5:

Write a program to print this triangle:

        *
        **
        ***
        ****
        *****
        ******
        *******
        ********
        *********
        **********

Use two nested loops instead. You'll have to use braces around the body of the outer loop if it contains multiple statements:

Question 6:

 Write a Program which prints "ODD" Or "EVEN" According to the user entered Number

Question 7:

Only the administrator to modify the Website of the company. The program accepts the name and password of a user and validates it with the name and password of the administrator. After validating the input, the program displays the message whether the user is allowed to modify

Question 8: 

Take two inputs from user and an Operator. Then calculate the result of the two according to the inserted operator.           

Make sure to use Reusability in you program


Related Discussions:- Program which prints odd or even according to user input

Design entry using the graphical editor, In this activity, you are going to...

In this activity, you are going to place components on a sheet and connect them with virtual wires to create a simple digital circuit. You will simulate the circuit to verify the c

Unix, 1. Write a shell script to locate executable files. This script takes...

1. Write a shell script to locate executable files. This script takes a list of file names from the command line and determines which would be executed had these names been given a

Write a procedure to prints the avl tree, (a) Write a procedure called (loo...

(a) Write a procedure called (lookup n t). This procedure has 2 arguments: n is the value being looked up, t is the AVL tree. The subtree with n as its root is returned (or '() if

programming assignment using perl, This assignment is an individual progra...

This assignment is an individual programming assignment using Perl. It addresses objectives 3, 4, 5 and 8 as listed in the Subject Outline document. The assignment is based on them

Write a program to show ten buttons with five possible color, Write a progr...

Write a program to show ten buttons with five possible colors: red, green, orange, yellow, blue. When the user clicks on a button, its color must advance to the next color, or go b

Write a prolog predicate has duplicates, Write a Prolog predicate has_dupli...

Write a Prolog predicate has_duplicates(L) that is true if list L contains duplicated elements (that is at least 2 copies of an element). For instance: ?- has_duplicates([a,e,b,

Define the if - else statement - computer programming, Define the If - else...

Define the If - else statement - computer programming? The If - else statement The universal form of if - else statement is                         if(expression)

Advance operating systems, Project2: A Simple Distributed Computing Platfor...

Project2: A Simple Distributed Computing Platform (Due at 11:59:59pm on 04/12/2012 (EST)) Description: You are asked to develop a replicator (client) that distributes a large job

Computer games development, Lazytown Constabulary are concerned that young ...

Lazytown Constabulary are concerned that young people in the town are unaware of the sorts of crime that they might encounter in their daily lives and are concerned that they may b

Write a recursive function to generate anagrams, An anagram is a type of wo...

An anagram is a type of word play, the result of rearranging the letters of a word or phrase to produce a new word or phrase. For example the anagram of tea is tea, tae, eat, eta,

Write Your Message!

Captcha
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