Q1:Take values of length and breadth of a rectangle from user and check if it is square or not.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
d4a".ill KOREK
bäs öeljäll - 2_5294137054538500768.pdf
سجل دخولك لتحرير الملف وحفظ التغي يرات ال. . .
Q1:Take values of length and breadth of a rectangle from user and check if it is square
or not.
Q2: Take two int values from user and print greatest among them.
Q3: A shop will give discount of 10% if the cost of purchased quantity is more than 1000.
Ask user for quantity
Suppose, one unit will cost 100.
Judge and print total cost for user.
Q3: A school has following rules for grading system:
a. Below 25 -F
b. 25 to 45 - E
c. 45 to 50 - D
d. 50 to 60 - C
e. 60 to 80 - B
1. Above 80 - A
Ask user to enter marks and print the corresponding grade.
Q4: Take input of age of 3 people by user and determine oldest and youngest among them.
Q5: Write a program to print absolute vlaue of a number entered by user. Without using
abs function.
INPUT: 1
OUTPUT: 1
INPUT: -1
OUTPUT: 1.
Q6: If
X= 2
y = 5
Z= 0
then find values of the following expressions:
a. x == 2
b. x != 5
c. x != 5 && y >= 5
d. z != 0 || x == 2
e. (y < 10)
Q7: Write a program to check whether a entered character is lowercase (a to z) or
uppercase ( A to Z).
•..
Transcribed Image Text:d4a".ill KOREK bäs öeljäll - 2_5294137054538500768.pdf سجل دخولك لتحرير الملف وحفظ التغي يرات ال. . . Q1:Take values of length and breadth of a rectangle from user and check if it is square or not. Q2: Take two int values from user and print greatest among them. Q3: A shop will give discount of 10% if the cost of purchased quantity is more than 1000. Ask user for quantity Suppose, one unit will cost 100. Judge and print total cost for user. Q3: A school has following rules for grading system: a. Below 25 -F b. 25 to 45 - E c. 45 to 50 - D d. 50 to 60 - C e. 60 to 80 - B 1. Above 80 - A Ask user to enter marks and print the corresponding grade. Q4: Take input of age of 3 people by user and determine oldest and youngest among them. Q5: Write a program to print absolute vlaue of a number entered by user. Without using abs function. INPUT: 1 OUTPUT: 1 INPUT: -1 OUTPUT: 1. Q6: If X= 2 y = 5 Z= 0 then find values of the following expressions: a. x == 2 b. x != 5 c. x != 5 && y >= 5 d. z != 0 || x == 2 e. (y < 10) Q7: Write a program to check whether a entered character is lowercase (a to z) or uppercase ( A to Z). •..
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 3 images

Blurred answer
Knowledge Booster
Methods of StringBuilder class
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education