Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C program to do the number of calories burned per hour by bicycling, jogging and swimming is 200, 475, and 275 respectively. A person loses

C program to do the number of calories burned per hour by bicycling, jogging and swimming is 200, 475, and 275 respectively. A person loses 1 pound of weight for each 3500 calories burned. program with a function that accepts three real numbers that represent hours bicycling, hours jogging and hours swimming and returns the pounds lost as a type double.
Then a program How to initialize an array of size 5 using an initializer list and to compute its sum
How to initialize an array of size 5 with even numbers starting from 2 using for loop and to compute its sum
Using scan set with scanf to input vowels and consonants
A scan set scans the characters in the input stream, looking only for those characters that match the characters contained in the scan set. Each time a character is matched, it is stored in the scan sets corresponding argument a pointer to a character array. The scan set stops inputting characters when a character that is not contained in the scan set is encountered.
To read vowels,
scanf(%[aeiou],char_array);
To read consonants,
scanf(%[^aeiou],char_array); ( the caret symbol ^ is used for negation.
And a c Program to compute the car insurance premium for a person based on their age and the number of tickets they have received. The following table explains how to perform the ticket computation:
If Person's Age Is
Then Insurance Cost Is
Less than 21
$1500 + $250 x number of tickets
From 21 through 24
$1200 + $250 x number of tickets
25 or older
$1000 + $200 x number of tickets
Print the persons age, number of tickets and the computed insurance cost.

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

Refactoring Databases Evolutionary Database Design

Authors: Scott Ambler, Pramod Sadalage

1st Edition

0321774515, 978-0321774514

More Books

Students also viewed these Databases questions