...;stdlib.h> int CalculatePhoneCharge(void) { float min; float Charge ; printf( 請輸入電話使用分鐘數: ); scanf( %f , &min); if(min<...
分類:電腦與網際網路 > 程式設計 2006年12月27日
...;stdlib.h> int main(void) { int hr; float charge ; printf("請輸入停車時間(小時):"); scanf...printf("第%d台車需收費%.2f n", i+1, charge [i]); system("pause"); return 0; }
分類:電腦與網際網路 > 程式設計 2012年04月11日
...時數,收費基本值自 0 起累算 // 否則自 2.0 累算 ( 也就是還在 3 小時內 ) float charge = over_base ? 0.0 : 2.0 ; // 由於未滿 1 小時以 1 小時計,因此只要超過 23...
分類:電腦與網際網路 > 程式設計 2007年09月05日
...limit: "; cin >> limit_; } void chk_exceed();private: int acct_; float balance_; float charges _; float credits_; float limit_;}Contents of Credit.cpp#include...
分類:電腦與網際網路 > 程式設計 2006年03月28日
...由3個 battery cell串聯構成的,而每個cell的標稱電壓為2V. 但實際上以 float charge 浮充方式,每個cell最高滿電電壓為2.3V,但cycle charge 循環充電方式每個...
...stat of charge (SOC) 4 Stages:equalization,PWM,Boost and Float ,temperature compensated charging 微型控制器數字式準確性充電的系列PWM &的类型; stat充電(SOC...
...include <stdio.h>#include <iostream>int main(){ int charge ,mil; float tmp=0; printf("輸入里程:"); scanf("%d",&mil); charge =70...
分類:電腦與網際網路 > 程式設計 2006年07月23日
..._balance ); printf( "輸入本月簽帳金額:" ); scanf( "%f", & charges ); printf( "輸入本月已付金額:" ); scanf( "%f", &credits...
分類:電腦與網際網路 > 程式設計 2009年01月28日
..., disc, fee[2][2]={{199,99},{299,149}}; float dsc; for(; scanf("%d",&am) &&... > 15) ? 0.75 : 1.0; printf("total charges = %d\n", (int)(dsc * (fee[am][0]*adult + fee...
分類:電腦與網際網路 > 程式設計 2016年11月12日