Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1) Write a C Program which converts Binary Number to Decimal and vice-versa. Your program must contain two functions. You have to ask the choice

1) Write a C Program which converts Binary Number to Decimal and vice-versa. Your program must contain two functions. You have to ask the choice for the user if he/she enter 1 you have to work with BinToDec function if the choice is 2 you have to work with DecToBin function. Both functions take the number in int main part and you have to print the answer in int main part.

2) Wrte a program to define a structure called a car. The member elements of the car structure are Model(like BMW, Fordetc), production year(1999,2020,), and lastly price. Create an array of 10 cars. Get input for all 10 cars from the user. Then the program display complete information(Model, Year, Price) of those cars only which are above 250000 in price or production date bigger than 2000

please solve all questions using c program

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

Database Processing Fundamentals Design And Implementation

Authors: David M. Kroenke

5th Edition

B000CSIH5A, 978-0023668814

More Books

Students also viewed these Databases questions

Question

What is a verb?

Answered: 1 week ago