Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

SET A Write a program to display the output of the following pattern a ) b ) a b c d e f ( up

SET A
Write a program to display the output of the following pattern
a)
b)
a
b c
d e f
(up to 6 rows)
Convert the following Decimals into Octal and Hexadecimal
(i)456
(ii)1230
iii)1928
Add / Subtract the following using their binary values
(i)(-23)+67
(ii)(-43)+(-23)
(iii)
89+(-105)
Write a program to read a line of text and remove the all the vowels in it
Example:
Input: Computer is an electronic device
Output :Cmptr s in tctrncdvc
Write a program to compare two strings S 1 and S 2 without using the built -in - function strcmp()
In preparing the Electricity Bills, the customers are divided into three categories as A, B and C. To calculate bill for the customers, the following conditions are applied:
For A,
For first 50 units, Rate =0
For the next 100 units, Rate =0.75 per unit
For the next 150 units, Rate =1.05 per unit
For above 350 units, Rate =1.75 per unit
For B,
For first 200 units, Rate =1.40 per unit
For the next 300 units, Rate =2.25 per unit
For above 500 units, Rate =3.50 per unit
For C,
For first 250 units, Rate =3.00 per unit
For the next 750 units, Rate =2.25 per unit
For above 1000 units, Rate =5.00 per unit
Additional Tax =0.25** Bill Amount
Write a C Program to read the type of the customer (String), Previous month reading (Integer) and Current month reading (Integer) and to calculate the Bill amount for the Customer.
7. Write a C program that takes the user's name, BITS ID and email from the user. Check if the length of the name contains at least 10 alphabets, BITS ID must contain both alphabets and digits and email contains alphabets, digits, @ and .(dot) symbols. If the conditions are satisfied for the user data, then print you have been successfully registered. Else go back and ask the user to enter the correct details. Validate the data immediately after entering each detail.
8. Write a C program that takes n numbers as input. If the successive number is the previous number or next n
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

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

More Books

Students also viewed these Databases questions

Question

What is sensitivity analysis?

Answered: 1 week ago

Question

=+ (c) Show by example that f need not be constant.

Answered: 1 week ago