Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. Write a program to declare 3 variables with datatype as below and display their values. a)Number b)Varchar c)Date 2. Write a program to check

1. Write a program to declare 3 variables with datatype as below and display their values. a)Number b)Varchar c)Date 2. Write a program to check for a salary value and display the output based on the salary range (use IF condition) - if salary is greater than 100000 then display the output as 'Grade A' - if salary is between 50000 and 100000 then display the output as 'Grade B' - if salary is between 25000 and 50000 then display the output as 'Grade C' - if salary is between 10000 and 25000 then display the output as 'Grade D' - otherwise display the output as 'Grade E' 3. Write a program using the same conditions as in the #2 question, but use CASE condition instead of IF condition. 4. Write a program to display values from 200 to 300 using a WHILE loop. 5.Write a program to display values from 200 to 300 using a FOR loop. 6.Write a program to perform below steps: Declare a variable - If the variable value is 1 then display values from 300 to 400 using a WHILE loop - If the variable value is 2 then display values from 400 to 800 using a FOR loop - If the variable value is 3 then just display “wrong choice

Step by Step Solution

There are 3 Steps involved in it

Step: 1

Sure here are the programs for each of your questions Program to declare and display va... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Income Tax Fundamentals 2013

Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill

31st Edition

1111972516, 978-1285586618, 1285586611, 978-1285613109, 978-1111972516

More Books

Students also viewed these Programming questions

Question

Describe the accounting for actuarial gains and losses.

Answered: 1 week ago