Course Solutions Uncategorized (Solved) : Need Write C Code Loop Keeps Returning Name Wavelength Entering Value Sentinel Value Teach Q35962205 . . . .

(Solved) : Need Write C Code Loop Keeps Returning Name Wavelength Entering Value Sentinel Value Teach Q35962205 . . . .

 

I need to write a C code of a loop that keeps returning me thename of wavelength by entering value until a sentinel value.

Teacher require to create a subfunction for prompting value fromuser and I am confuse how to pass both of my two value: wavelengthand power into other functions. How do I do a pointer or pass byreference?

#include<stdio.h>

#include<stdlib.h>

#include<math.h>

#include “../include/cis1057.h”

int prompt_data();

int printf_value(int *w, int *p);

char *region(int *wavelength,int *power);

int main()

{

int *wavelength,*power;

prompt_data(&wavelength,&power);

printf_value (&wavelength,&power);

*region(&wavelength,&power);

return EXIT_SUCCESS;

}

int printf_value(int *w, int *p)

{

printf(“You haved enter the wavelength of %d x10^%d”,*w,*p);

return;

}

char *region(int *wavelength,int *power)

{

int error;

int i = 1;

do{

if(*wavelength <= 3 && *power >= -11 &&*power <= -9)

printf(“nYour region

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

(Solved) : 5 Exactly Next Algorithm Array N Elements Cost Algorithm Function Algorithm Z Y Y 1 Return Q28482076 . . . .(Solved) : 5 Exactly Next Algorithm Array N Elements Cost Algorithm Function Algorithm Z Y Y 1 Return Q28482076 . . . .

<br/><img src="https://media.cheggcdn.com/media%2F58b%2F58bb20f0-2313-4233-874a-cc60c1d43fd8%2Fimage" alt="5. What exactly does the next algorithm? A is an array of n elements. What is the cost of the algorithm? function algorithm (z,y) if y- 1 then