Database System Concepts
Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
expand_more
expand_more
format_list_bulleted
Bartleby Related Questions Icon
Related questions
Question
can you help me to solve this problem?
Transcribed Image Text:%^•
●くろまる
то
This program inserts 10 floating point values into an array using for loop, the start
value for the array must be read from the user, and the increment between each two
values is 1.20
1. Prints out the second, fourth, sixth, eighth and tenth members of the array using
pointers to access the members of the array.
2. then print and sum of the first, third, fifth, seventh, and ninth using pointers to
access the members of the array.
#include<stdio.h>
int main() {
float a [10];
float *p;
float sum=0;
float t;
printf("Enter Number to start with: ");
scanf("%f",&t);
for(int i=0; i<10; i++) {
a[i] = t;
t+=1.20; }
// print second, fourth, sixth, eighth and tenth members
// print the first, third, fifth, seventh, and ninth members
// print the sum of the first, third, fifth, seventh, and ninth
members
الخميس ٢٧ أكتوبر
+ :
2
11:1
Transcribed Image Text:٪۹۰
Order
Array Value
index
T
The output must be in this format: (You can use any starting value)
Enter Number to start with: 5.00
This is number (2): 6.20
This is number (4): 8.60
This is number (6): 11.00
This is number (8): 13.40
This is number (10): 15.80
this is number (1): 5.00
this is number (3) : 7.40
this is number (5): 9.80
this is number (7): 12.20
this is number (9): 14.60
Sum is 49.00
Pictorial Presentation:
first
5.00
0
second third fourth fifth
6.20 7.40
9.80
4
8.60
3
1
2
sixth seventh eighth | ninth
11.00 12.20 13.40 14.60
5
6
7
8
tenth
15.80
9
الخميس ٢٧ أكتوبر م
+ :
:00
<
2
1
2
Expert Solution
Check MarkThis question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
bartleby
Step by stepSolved in 3 steps with 3 images
Knowledge Booster
Background pattern image
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
- True or false? NP-complete problems are ones for which no solutions exist, Explain your answer Please help with written work!!!arrow_forwardIn general, does playing video games on a computer have a positive or negative impact on people's health? Are you able to back up your allegation with any evidence?arrow_forwardThe existence of insects begs the question, why? So where does a bug get in there? Please provide some examples.arrow_forward
- Robots may be programmed to do tasks that humans may find harmful, offensive, or tedious. I'd want you to give me an example of anything you believe a robot could accomplish better than a human. Assigning this task to a machine rather than a human seems to be better in what ways?arrow_forwardThis is due to the exponential growth in computing power over the last several decades. How can we demonstrate that computer use in classrooms has increased over the previous couple decades?arrow_forwardIn general, does playing video games on a computer have a positive or negative impact on a person's health? Are you able to substantiate your allegation with any supporting evidence?arrow_forward
arrow_back_ios
arrow_forward_ios
Recommended textbooks for you
- Text book imageDatabase System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationText book imageStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONText book imageDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- Text book imageC How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONText book imageDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningText book imageProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education
Text book image
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Text book image
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Text book image
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
Text book image
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Text book image
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Text book image
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education