Anyone have idea on this...Please help and explain to me...
In this option you need to model a forest as a square point lattice in which each lattice point
represents either a tree or a treeless location. This can be done by using a two-dimensional
array in which each dimension has the same size. A tree occupies a given lattice point with
probability P. The ignition of all trees in the first row...
User Profile
Collapse
-
Bushfire spread simulation
-
Sort alphabetic into lower n in ascending order
Sort line
-----------------
Enter a string (1-40 characters): CBA123fde[]aa
Output: aaabcdef
Above is the output i need..but i have done some code...and i dun have idea how to make it...could anyone help show me some easy example...
below is my code...i dont think is correct..please correct me
#include <stdio.h>
#include <stdlib.h>
#define... -
changwl8888 started a topic Updating price information and displaying previous price for restaurant menuin JavaUpdating price information and displaying previous price for restaurant menu
I have a program with restaurant menu and 3 food items..
in the program i can choose the food and update the price for multiple times..
And at the same time, i have sales report reporting price of each units and total..
But the program allow to update price at any time, i need the program to show previous price and show recent price...How is it? What functions should i use?
the sales report should look like this..... -
#include "assign1.h"
/* This source file contains important functions to be developed and
* used by various menu options, as indicated. Note that every
* function has as its first parameter the optionsStats array, which
* will be appropriately updated for later reporting of menu option 6.
* You may ignore this parameter and its relevance to each function
* until you develop the sessionSummary( )... -
it is error on this line
for (phoneNumber[x];phoneNumber[x].length;phoneNu mber++)
request for member "length" in something not a structure or union...
when compile error....
help pleaseLeave a comment:
-
it is error on this line
for (phoneNumber[x];phoneNumber[x].length;phoneNu mber++)
request for member "length" in something not a structure or union...
help pleaseLeave a comment:
-
is it correct way to print?
please correct me if i m wrong...thanks. ..
Code:#define SIZE 30 void translateNumber(int * optionStats, char * phoneNumber) { phoneNumber[SIZE]; int x=0; int length; printf("Translating alphatic number:\n"); printf("Enter Phone Number:\n"); while (fgets(phoneNumber, SIZE, stdin) != NULL) /* fetch up to
Leave a comment:
-
Code:#define SIZE 30 void translateNumber(int * optionStats, char * phoneNumber) { char phoneNumber[SIZE]; int x=0; int length; printf("Translating alphatic number:\n"); printf("Enter Phone Number:\n"); while (fgets(phoneNumber, SIZE, stdin) != NULL) /* fetch up to 30 chars */ { switch (toupper(phoneNumber[x]))
Leave a comment:
-
-
hi..sorry i don't really understand how to convert and store and show all number back...can u please show more details of code...i am really new to c programmingLeave a comment:
-
Converting alphabetic phone number to numeric
How do i convert an alphabetic phone number to a numeric phone number?
Translating alphabetic number:
Enter phone number:1-800-COL-LECT
1-800-265-5328
No activity results to display
Show More
Leave a comment: