Answered step by step
Verified Expert Solution
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...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started